clean-up of existing comments in tools/inc

This is a follow-up patch of c8b7aa5513.

Change-Id: Ie220db245c08a6144f74a3727db3d6bdc2786495
This commit is contained in:
Philipp Riemer
2012-08-13 22:51:30 +02:00
parent 7dfba55bfd
commit 731f3ce64a
46 changed files with 257 additions and 601 deletions

View File

@@ -25,10 +25,6 @@
typedef void* PVOID; typedef void* PVOID;
// ----------
// - CBlock -
// ----------
class CBlock class CBlock
{ {
private: private:

View File

@@ -22,10 +22,6 @@
#include <tools/gen.hxx> #include <tools/gen.hxx>
// -------------------
// - ImplPolygonData -
// -------------------
class ImplPolygonData class ImplPolygonData
{ {
public: public:
@@ -35,10 +31,6 @@ public:
sal_uIntPtr mnRefCount; sal_uIntPtr mnRefCount;
}; };
// ---------------
// - ImplPolygon -
// ---------------
class ImplPolygon : public ImplPolygonData class ImplPolygon : public ImplPolygonData
{ {
public: public:
@@ -52,10 +44,6 @@ public:
void ImplSplit( sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon* pInitPoly = NULL ); void ImplSplit( sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon* pInitPoly = NULL );
}; };
// -------------------
// - ImplPolyPolygon -
// -------------------
#define MAX_POLYGONS ((sal_uInt16)0x3FF0) #define MAX_POLYGONS ((sal_uInt16)0x3FF0)
class Polygon; class Polygon;

View File

@@ -31,10 +31,6 @@ struct SbxUINT64;
namespace binfilter { class SbxINT64Converter; } namespace binfilter { class SbxINT64Converter; }
#endif #endif
// ----------
// - BigInt -
// ----------
#define MAX_DIGITS 8 #define MAX_DIGITS 8
class Fraction; class Fraction;
@@ -49,9 +45,9 @@ private:
long nVal; long nVal;
unsigned short nNum[MAX_DIGITS]; unsigned short nNum[MAX_DIGITS];
sal_uInt8 nLen : 5; // current length sal_uInt8 nLen : 5; // current length
sal_Bool bIsNeg : 1, // Is Sign negative sal_Bool bIsNeg : 1, // Is Sign negative?
bIsBig : 1, // sal_True == BigInt bIsBig : 1, // sal_True == BigInt
bIsSet : 1; // Not "Null" (not not 0) bIsSet : 1; // Not "Null" (not "not 0")
TOOLS_DLLPRIVATE void MakeBigInt(BigInt const &); TOOLS_DLLPRIVATE void MakeBigInt(BigInt const &);
TOOLS_DLLPRIVATE void Normalize(); TOOLS_DLLPRIVATE void Normalize();

View File

@@ -16,7 +16,6 @@
* except in compliance with the License. You may obtain a copy of * except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef _CACHESTR_HXX #ifndef _CACHESTR_HXX
#define _CACHESTR_HXX #define _CACHESTR_HXX
@@ -24,11 +23,8 @@
#include <tools/string.hxx> #include <tools/string.hxx>
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
// -----------------
// - SvCacheStream -
// -----------------
class TempFile; class TempFile;
class TOOLS_DLLPUBLIC SvCacheStream : public SvStream class TOOLS_DLLPUBLIC SvCacheStream : public SvStream
{ {
private: private:
@@ -40,8 +36,10 @@ private:
SvStream* pCurrentStream; SvStream* pCurrentStream;
TempFile* pTempFile; TempFile* pTempFile;
TOOLS_DLLPRIVATE virtual sal_uIntPtr GetData( void* pData, sal_uIntPtr nSize ); TOOLS_DLLPRIVATE virtual sal_uIntPtr GetData( void* pData,
TOOLS_DLLPRIVATE virtual sal_uIntPtr PutData( const void* pData, sal_uIntPtr nSize ); sal_uIntPtr nSize );
TOOLS_DLLPRIVATE virtual sal_uIntPtr PutData( const void* pData,
sal_uIntPtr nSize );
TOOLS_DLLPRIVATE virtual sal_uIntPtr SeekPos( sal_uIntPtr nPos ); TOOLS_DLLPRIVATE virtual sal_uIntPtr SeekPos( sal_uIntPtr nPos );
TOOLS_DLLPRIVATE virtual void FlushData(); TOOLS_DLLPRIVATE virtual void FlushData();
TOOLS_DLLPRIVATE virtual void SetSize( sal_uIntPtr nSize ); TOOLS_DLLPRIVATE virtual void SetSize( sal_uIntPtr nSize );

View File

@@ -27,10 +27,7 @@ class ResId;
#include <basegfx/color/bcolor.hxx> #include <basegfx/color/bcolor.hxx>
// --------------- // Color types
// - Color-Types -
// ---------------
typedef sal_uInt32 ColorData; typedef sal_uInt32 ColorData;
#define RGB_COLORDATA( r,g,b ) ((ColorData)(((sal_uInt32)((sal_uInt8)(b))))|(((sal_uInt32)((sal_uInt8)(g)))<<8)|(((sal_uInt32)((sal_uInt8)(r)))<<16)) #define RGB_COLORDATA( r,g,b ) ((ColorData)(((sal_uInt32)((sal_uInt8)(b))))|(((sal_uInt32)((sal_uInt8)(g)))<<8)|(((sal_uInt32)((sal_uInt8)(r)))<<16))
#define TRGB_COLORDATA( t,r,g,b ) ((ColorData)(((sal_uInt32)((sal_uInt8)(b))))|(((sal_uInt32)((sal_uInt8)(g)))<<8)|(((sal_uInt32)((sal_uInt8)(r)))<<16)|(((sal_uInt32)((sal_uInt8)(t)))<<24)) #define TRGB_COLORDATA( t,r,g,b ) ((ColorData)(((sal_uInt32)((sal_uInt8)(b))))|(((sal_uInt32)((sal_uInt8)(g)))<<8)|(((sal_uInt32)((sal_uInt8)(r)))<<16)|(((sal_uInt32)((sal_uInt8)(t)))<<24))
@@ -90,9 +87,7 @@ typedef sal_uInt32 ColorData;
#define COLOR_CHANNEL_MERGE( _def_cDst, _def_cSrc, _def_cSrcTrans ) \ #define COLOR_CHANNEL_MERGE( _def_cDst, _def_cSrc, _def_cSrcTrans ) \
((sal_uInt8)((((long)(_def_cDst)-(_def_cSrc))*(_def_cSrcTrans)+(((_def_cSrc)<<8L)|(_def_cDst)))>>8L)) ((sal_uInt8)((((long)(_def_cDst)-(_def_cSrc))*(_def_cSrcTrans)+(((_def_cSrc)<<8L)|(_def_cDst)))>>8L))
// --------- // Color
// - Color -
// ---------
class TOOLS_DLLPUBLIC Color class TOOLS_DLLPUBLIC Color
{ {

View File

@@ -25,10 +25,6 @@
struct ImplConfigData; struct ImplConfigData;
struct ImplGroupData; struct ImplGroupData;
// ----------
// - Config -
// ----------
class TOOLS_DLLPUBLIC Config class TOOLS_DLLPUBLIC Config
{ {
private: private:

View File

@@ -26,12 +26,7 @@
class CBlock; class CBlock;
// -------------
// - Container -
// -------------
#define CONTAINER_MAXBLOCKSIZE ((sal_uInt16)0x3FF0) #define CONTAINER_MAXBLOCKSIZE ((sal_uInt16)0x3FF0)
#define CONTAINER_APPEND ULONG_MAX #define CONTAINER_APPEND ULONG_MAX
#define CONTAINER_ENTRY_NOTFOUND ULONG_MAX #define CONTAINER_ENTRY_NOTFOUND ULONG_MAX

View File

@@ -24,17 +24,9 @@
class ResId; class ResId;
// --------------
// - Date-Types -
// --------------
enum DayOfWeek { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, enum DayOfWeek { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, SUNDAY }; SATURDAY, SUNDAY };
// --------
// - Date -
// --------
class TOOLS_DLLPUBLIC Date class TOOLS_DLLPUBLIC Date
{ {
private: private:
@@ -46,7 +38,8 @@ public:
{ {
SYSTEM SYSTEM
}; };
// temporary until all uses are inspected and resolved
// TODO temporary until all uses are inspected and resolved
enum DateInitEmpty enum DateInitEmpty
{ {
EMPTY EMPTY

View File

@@ -24,10 +24,6 @@
#include <tools/date.hxx> #include <tools/date.hxx>
#include <tools/time.hxx> #include <tools/time.hxx>
// ------------
// - DateTime -
// ------------
class TOOLS_DLLPUBLIC DateTime : public Date, public Time class TOOLS_DLLPUBLIC DateTime : public Date, public Time
{ {
public: public:
@@ -36,7 +32,8 @@ public:
{ {
SYSTEM SYSTEM
}; };
// temporary until all uses are inspected and resolved
// TODO temporary until all uses are inspected and resolved
enum DateTimeInitEmpty enum DateTimeInitEmpty
{ {
EMPTY EMPTY

View File

@@ -40,10 +40,6 @@
SAL_INFO. SAL_INFO.
*/ */
// ------------
// - DBG_UITL -
// ------------
#ifdef DBG_UTIL #ifdef DBG_UTIL
typedef void (*DbgPrintLine)( const sal_Char* pLine ); typedef void (*DbgPrintLine)( const sal_Char* pLine );
@@ -460,10 +456,7 @@ do \
} while(0) } while(0)
#else #else
// NO DBG_UITL
// ---------------
// - NO DBG_UITL -
// ---------------
struct DbgData; struct DbgData;
struct DbgDataType; struct DbgDataType;

View File

@@ -36,7 +36,7 @@ Warning || || |
| || | | || |
| || | | || |
| || | | || |
Class | Class| |
| | | |
| | | |
| | | |

View File

@@ -32,10 +32,6 @@ class EDcr_Impl;
class ErrHdl_Impl; class ErrHdl_Impl;
class Window; class Window;
// -------------
// - ErrorInfo -
// -------------
class ErrorInfo class ErrorInfo
{ {
private: private:
@@ -53,11 +49,6 @@ public:
static ErrorInfo* GetErrorInfo(sal_uIntPtr); static ErrorInfo* GetErrorInfo(sal_uIntPtr);
}; };
// --------------------
// - DynamicErrorInfo -
// --------------------
class TOOLS_DLLPUBLIC DynamicErrorInfo : public ErrorInfo class TOOLS_DLLPUBLIC DynamicErrorInfo : public ErrorInfo
{ {
friend class EDcr_Impl; friend class EDcr_Impl;
@@ -75,11 +66,6 @@ public:
sal_uInt16 GetDialogMask() const; sal_uInt16 GetDialogMask() const;
}; };
// -------------------
// - StringErrorInfo -
// -------------------
class TOOLS_DLLPUBLIC StringErrorInfo : public DynamicErrorInfo class TOOLS_DLLPUBLIC StringErrorInfo : public DynamicErrorInfo
{ {
private: private:
@@ -94,7 +80,6 @@ public:
const String& GetErrorString() const { return aString; } const String& GetErrorString() const { return aString; }
}; };
//=============================================================================
class TOOLS_DLLPUBLIC TwoStringErrorInfo: public DynamicErrorInfo class TOOLS_DLLPUBLIC TwoStringErrorInfo: public DynamicErrorInfo
{ {
private: private:
@@ -113,14 +98,9 @@ public:
String GetArg2() const { return aArg2; } String GetArg2() const { return aArg2; }
}; };
// -------------------
// - MessageInfo -
// -------------------
class TOOLS_DLLPUBLIC MessageInfo : public DynamicErrorInfo class TOOLS_DLLPUBLIC MessageInfo : public DynamicErrorInfo
{ {
public: public:
TYPEINFO(); TYPEINFO();
MessageInfo(sal_uIntPtr UserId, sal_uInt16 nFlags = 0) : MessageInfo(sal_uIntPtr UserId, sal_uInt16 nFlags = 0) :
DynamicErrorInfo(UserId, nFlags){} DynamicErrorInfo(UserId, nFlags){}
@@ -130,15 +110,9 @@ class TOOLS_DLLPUBLIC MessageInfo : public DynamicErrorInfo
const String& GetMessageArg() const { return aArg; } const String& GetMessageArg() const { return aArg; }
private: private:
String aArg; String aArg;
}; };
// ----------------
// - ErrorContext -
// ----------------
class TOOLS_DLLPUBLIC ErrorContext class TOOLS_DLLPUBLIC ErrorContext
{ {
friend class ErrorHandler; friend class ErrorHandler;
@@ -157,11 +131,6 @@ public:
static ErrorContext* GetContext(); static ErrorContext* GetContext();
}; };
// ----------------
// - ErrorHandler -
// ----------------
typedef sal_uInt16 WindowDisplayErrorFunc( typedef sal_uInt16 WindowDisplayErrorFunc(
Window *, sal_uInt16 nMask, const String &rErr, const String &rAction); Window *, sal_uInt16 nMask, const String &rErr, const String &rAction);
@@ -194,11 +163,6 @@ public:
static void RegisterDisplay( WindowDisplayErrorFunc* ); static void RegisterDisplay( WindowDisplayErrorFunc* );
}; };
// ----------------------
// - SimpleErrorHandler -
// ----------------------
class TOOLS_DLLPUBLIC SimpleErrorHandler : private ErrorHandler class TOOLS_DLLPUBLIC SimpleErrorHandler : private ErrorHandler
{ {
protected: protected:
@@ -207,7 +171,6 @@ protected:
public: public:
SimpleErrorHandler(); SimpleErrorHandler();
}; };
#endif #endif

View File

@@ -20,10 +20,6 @@
#ifndef _TOOLS_FLDUNIT_HXX #ifndef _TOOLS_FLDUNIT_HXX
#define _TOOLS_FLDUNIT_HXX #define _TOOLS_FLDUNIT_HXX
// --------------
// - FieldTypes -
// --------------
enum FieldUnit { FUNIT_NONE, FUNIT_MM, FUNIT_CM, FUNIT_M, FUNIT_KM, enum FieldUnit { FUNIT_NONE, FUNIT_MM, FUNIT_CM, FUNIT_M, FUNIT_KM,
FUNIT_TWIP, FUNIT_POINT, FUNIT_PICA, FUNIT_TWIP, FUNIT_POINT, FUNIT_PICA,
FUNIT_INCH, FUNIT_FOOT, FUNIT_MILE, FUNIT_CHAR, FUNIT_LINE, FUNIT_CUSTOM, FUNIT_INCH, FUNIT_FOOT, FUNIT_MILE, FUNIT_CHAR, FUNIT_LINE, FUNIT_CUSTOM,

View File

@@ -23,9 +23,6 @@
#include <tools/solar.h> #include <tools/solar.h>
class SvStream; class SvStream;
// ------------
// - Fraction -
// ------------
class TOOLS_DLLPUBLIC Fraction class TOOLS_DLLPUBLIC Fraction
{ {

View File

@@ -32,10 +32,7 @@
#define FEAT_FSYS_DOUBLESPEED #define FEAT_FSYS_DOUBLESPEED
// -------------- // FSys-Types
// - FSys-Types -
// --------------
class DirEntry; class DirEntry;
class FileStat; class FileStat;
struct FileCopier_Impl; struct FileCopier_Impl;
@@ -134,10 +131,7 @@ enum FSysExact
FSYS_EXACT FSYS_EXACT
}; };
// ------------ // FileStat
// - FileStat -
// ------------
struct dirent; struct dirent;
class TOOLS_DLLPUBLIC FileStat class TOOLS_DLLPUBLIC FileStat
{ {
@@ -191,9 +185,7 @@ public:
static sal_Bool GetReadOnlyFlag( const DirEntry &rEntry ); static sal_Bool GetReadOnlyFlag( const DirEntry &rEntry );
}; };
// ------------ // DirEntry
// - DirEntry -
// ------------
class DirEntryStack; class DirEntryStack;
@@ -314,9 +306,7 @@ public:
static String GetSearchDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST ); static String GetSearchDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
}; };
// ----------------------------------------------------- // FileCopier (a private impl. detail of tools/)
// - FileCopier - a private impl. detail of tools/ ... -
// -----------------------------------------------------
class FileCopier class FileCopier
{ {
@@ -364,9 +354,7 @@ public:
const Link& GetProgressHdl() const { return aProgressLink; } const Link& GetProgressHdl() const { return aProgressLink; }
}; };
// ------- // Dir
// - Dir -
// -------
struct DirReader_Impl; struct DirReader_Impl;
class TOOLS_DLLPUBLIC Dir : public DirEntry class TOOLS_DLLPUBLIC Dir : public DirEntry

View File

@@ -26,10 +26,7 @@
class SvStream; class SvStream;
// Pair
// --------
// - Pair -
// --------
class Pair class Pair
{ {
@@ -74,9 +71,7 @@ inline sal_Bool Pair::operator != ( const Pair& rPair ) const
return ((nA != rPair.nA) || (nB != rPair.nB)); return ((nA != rPair.nA) || (nB != rPair.nB));
} }
// --------- // Point
// - Point -
// ---------
class Point : public Pair class Point : public Pair
{ {
@@ -194,9 +189,7 @@ inline Point operator/( const Point &rVal1, const long nVal2 )
return Point( rVal1.nA/nVal2, rVal1.nB/nVal2 ); return Point( rVal1.nA/nVal2, rVal1.nB/nVal2 );
} }
// -------- // Size
// - Size -
// --------
class Size : public Pair class Size : public Pair
{ {
@@ -225,9 +218,7 @@ inline Size::Size( long nWidth, long nHeight ) :
{ {
} }
// --------- // Range
// - Range -
// ---------
#define RANGE_MAX LONG_MAX #define RANGE_MAX LONG_MAX
@@ -272,9 +263,7 @@ inline void Range::Justify()
} }
} }
// ------------- // Selection
// - Selection -
// -------------
#define SELECTION_MIN LONG_MIN #define SELECTION_MIN LONG_MIN
#define SELECTION_MAX LONG_MAX #define SELECTION_MAX LONG_MAX
@@ -333,9 +322,7 @@ inline void Selection::Justify()
} }
} }
// ------------- // Rectangle
// - Rectangle -
// -------------
#define RECT_EMPTY ((short)-32767) #define RECT_EMPTY ((short)-32767)

View File

@@ -31,11 +31,6 @@
class DateTime; class DateTime;
/*=======================================================================
*
* INetMessageHeader Interface.
*
*=====================================================================*/
class INetMessageHeader class INetMessageHeader
{ {
rtl::OString m_aName; rtl::OString m_aName;
@@ -85,11 +80,6 @@ public:
} }
}; };
/*=======================================================================
*
* INetMessage Interface.
*
*=====================================================================*/
typedef ::std::vector< INetMessageHeader* > HeaderList_impl; typedef ::std::vector< INetMessageHeader* > HeaderList_impl;
class INetMessage class INetMessage
{ {
@@ -217,11 +207,6 @@ public:
} }
}; };
/*=======================================================================
*
* INetRFC822Message Interface.
*
*=====================================================================*/
#define INETMSG_RFC822_BCC 0 #define INETMSG_RFC822_BCC 0
#define INETMSG_RFC822_CC 1 #define INETMSG_RFC822_CC 1
#define INETMSG_RFC822_COMMENTS 2 #define INETMSG_RFC822_COMMENTS 2
@@ -266,8 +251,8 @@ public:
sal_uIntPtr nIndex = ((sal_uIntPtr)-1) sal_uIntPtr nIndex = ((sal_uIntPtr)-1)
); );
/** Header fields. // Header fields.
*/
rtl::OUString GetBCC() const rtl::OUString GetBCC() const
{ {
return GetHeaderValue_Impl ( return GetHeaderValue_Impl (
@@ -373,8 +358,8 @@ public:
INetMIME::HEADER_FIELD_TEXT); INetMIME::HEADER_FIELD_TEXT);
} }
/** Stream operators. // Stream operators.
*/
friend SvStream& operator<< ( friend SvStream& operator<< (
SvStream& rStrm, const INetRFC822Message& rMsg) SvStream& rStrm, const INetRFC822Message& rMsg)
{ {
@@ -388,11 +373,6 @@ public:
} }
}; };
/*=======================================================================
*
* INetMIMEMessage Interface.
*
*=====================================================================*/
#define INETMSG_MIME_VERSION 0 #define INETMSG_MIME_VERSION 0
#define INETMSG_MIME_CONTENT_DESCRIPTION 1 #define INETMSG_MIME_CONTENT_DESCRIPTION 1
#define INETMSG_MIME_CONTENT_DISPOSITION 2 #define INETMSG_MIME_CONTENT_DISPOSITION 2
@@ -455,8 +435,8 @@ public:
sal_uIntPtr nIndex = ((sal_uIntPtr)-1) sal_uIntPtr nIndex = ((sal_uIntPtr)-1)
); );
/** Header fields. // Header fields.
*/
void SetMIMEVersion (const UniString& rVersion); void SetMIMEVersion (const UniString& rVersion);
UniString GetMIMEVersion() const UniString GetMIMEVersion() const
{ {
@@ -493,8 +473,8 @@ public:
rtl::OUString GetDefaultContentType (); rtl::OUString GetDefaultContentType ();
/** Message container methods. // Message container methods.
*/
sal_Bool IsContainer() const sal_Bool IsContainer() const
{ {
return (IsMessage() || IsMultipart()); return (IsMessage() || IsMultipart());
@@ -521,8 +501,8 @@ public:
sal_Bool AttachChild ( sal_Bool AttachChild (
INetMIMEMessage& rChildMsg, sal_Bool bOwner = sal_True); INetMIMEMessage& rChildMsg, sal_Bool bOwner = sal_True);
/** Stream operators. // Stream operators.
*/
friend SvStream& operator<< ( friend SvStream& operator<< (
SvStream& rStrm, const INetMIMEMessage& rMsg) SvStream& rStrm, const INetMIMEMessage& rMsg)
{ {

View File

@@ -28,11 +28,6 @@ class INetMIMEMessage;
class SvMemoryStream; class SvMemoryStream;
class SvStream; class SvStream;
/*=========================================================================
*
* INetStream Interface.
*
*=======================================================================*/
enum INetStreamStatus enum INetStreamStatus
{ {
INETSTREAM_STATUS_LOADED = -4, INETSTREAM_STATUS_LOADED = -4,
@@ -41,9 +36,6 @@ enum INetStreamStatus
INETSTREAM_STATUS_ERROR = -1 INETSTREAM_STATUS_ERROR = -1
}; };
/*
* INetIStream.
*/
class TOOLS_DLLPUBLIC INetIStream class TOOLS_DLLPUBLIC INetIStream
{ {
// Not implemented. // Not implemented.
@@ -60,9 +52,6 @@ public:
int Read (sal_Char *pData, sal_uIntPtr nSize); int Read (sal_Char *pData, sal_uIntPtr nSize);
}; };
/*
* INetOStream.
*/
class INetOStream class INetOStream
{ {
// Not implemented. // Not implemented.
@@ -80,11 +69,6 @@ public:
int Write (const sal_Char *pData, sal_uIntPtr nSize); int Write (const sal_Char *pData, sal_uIntPtr nSize);
}; };
/*=========================================================================
*
* INetMessageStream Interface.
*
*=======================================================================*/
enum INetMessageStreamState enum INetMessageStreamState
{ {
INETMSG_EOL_BEGIN, INETMSG_EOL_BEGIN,
@@ -162,9 +146,6 @@ public:
sal_Bool IsHeaderParsed (void) const { return bHeaderParsed; } sal_Bool IsHeaderParsed (void) const { return bHeaderParsed; }
}; };
/*
* INetMessageIOStream Interface.
*/
class INetMessageIOStream class INetMessageIOStream
: public INetMessageIStream, : public INetMessageIStream,
public INetMessageOStream public INetMessageOStream
@@ -178,11 +159,6 @@ public:
virtual ~INetMessageIOStream (void); virtual ~INetMessageIOStream (void);
}; };
/*=========================================================================
*
* INetMIMEMessageStream Interface.
*
*=======================================================================*/
enum INetMessageEncoding enum INetMessageEncoding
{ {
INETMSG_ENCODING_7BIT, INETMSG_ENCODING_7BIT,

View File

@@ -24,10 +24,6 @@
class Link; class Link;
// --------
// - Line -
// --------
class TOOLS_DLLPUBLIC Line class TOOLS_DLLPUBLIC Line
{ {
private: private:

View File

@@ -24,10 +24,6 @@
#include "sal/types.h" #include "sal/types.h"
#include <tools/solar.h> #include <tools/solar.h>
// ---------------
// - Link-Makros -
// ---------------
typedef long (*PSTUB)( void*, void* ); typedef long (*PSTUB)( void*, void* );
#define DECL_LINK( Method, ArgType ) \ #define DECL_LINK( Method, ArgType ) \
@@ -89,10 +85,6 @@ typedef long (*PSTUB)( void*, void* );
#define EMPTYARG #define EMPTYARG
// --------
// - Link -
// --------
class TOOLS_DLLPUBLIC Link class TOOLS_DLLPUBLIC Link
{ {
void* pInst; void* pInst;

View File

@@ -23,10 +23,7 @@
#include <tools/solar.h> #include <tools/solar.h>
#include <tools/contnr.hxx> #include <tools/contnr.hxx>
// -------- #define LIST_APPEND CONTAINER_APPEND
// - List -
// --------
#define LIST_ENTRY_NOTFOUND CONTAINER_ENTRY_NOTFOUND #define LIST_ENTRY_NOTFOUND CONTAINER_ENTRY_NOTFOUND
class List : private Container class List : private Container

View File

@@ -20,10 +20,6 @@
#ifndef _TOOLS_MAPUNIT_HXX #ifndef _TOOLS_MAPUNIT_HXX
#define _TOOLS_MAPUNIT_HXX #define _TOOLS_MAPUNIT_HXX
// -----------------
// - MapMode-Types -
// -----------------
enum MapUnit { MAP_100TH_MM, MAP_10TH_MM, MAP_MM, MAP_CM, enum MapUnit { MAP_100TH_MM, MAP_10TH_MM, MAP_MM, MAP_CM,
MAP_1000TH_INCH, MAP_100TH_INCH, MAP_10TH_INCH, MAP_INCH, MAP_1000TH_INCH, MAP_100TH_INCH, MAP_10TH_INCH, MAP_INCH,
MAP_POINT, MAP_TWIP, MAP_PIXEL, MAP_SYSFONT, MAP_APPFONT, MAP_POINT, MAP_TWIP, MAP_PIXEL, MAP_SYSFONT, MAP_APPFONT,

View File

@@ -25,10 +25,6 @@
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
#include "tools/solar.h" #include "tools/solar.h"
// ----------------
// - FixedMemPool -
// ----------------
struct FixedMemPool_Impl; struct FixedMemPool_Impl;
class TOOLS_DLLPUBLIC FixedMemPool class TOOLS_DLLPUBLIC FixedMemPool
@@ -45,10 +41,6 @@ public:
void Free( void* p ); void Free( void* p );
}; };
// ----------------------------
// - DECL_FIXEDMEMPOOL_NEWDEL -
// ----------------------------
#define DECL_FIXEDMEMPOOL_NEW_DECL() \ #define DECL_FIXEDMEMPOOL_NEW_DECL() \
static void * operator new( size_t n ) static void * operator new( size_t n )

View File

@@ -34,10 +34,6 @@ typedef ::std::vector< Range* > ImpSelList;
//------------------------------------------------------------------ //------------------------------------------------------------------
// ------------------
// - MultiSelection -
// ------------------
class TOOLS_DLLPUBLIC MultiSelection class TOOLS_DLLPUBLIC MultiSelection
{ {
private: private:

View File

@@ -25,10 +25,6 @@
#include <vector> #include <vector>
// -----------
// - Defines -
// -----------
#define POLY_APPEND (0xFFFF) #define POLY_APPEND (0xFFFF)
#define POLYPOLY_APPEND (0xFFFF) #define POLYPOLY_APPEND (0xFFFF)
@@ -41,10 +37,6 @@
#define POLY_OPTIMIZE_REDUCE 0x00000008UL #define POLY_OPTIMIZE_REDUCE 0x00000008UL
#define POLY_OPTIMIZE_EDGES 0x00000010UL #define POLY_OPTIMIZE_EDGES 0x00000010UL
// -------------
// - PolyStyle -
// -------------
enum PolyStyle enum PolyStyle
{ {
POLY_ARC = 1, POLY_ARC = 1,
@@ -52,10 +44,6 @@ enum PolyStyle
POLY_CHORD = 3 POLY_CHORD = 3
}; };
// -------------
// - PolyFlags -
// -------------
#ifndef ENUM_POLYFLAGS_DECLARED #ifndef ENUM_POLYFLAGS_DECLARED
#define ENUM_POLYFLAGS_DECLARED #define ENUM_POLYFLAGS_DECLARED
enum PolyFlags enum PolyFlags
@@ -67,10 +55,6 @@ enum PolyFlags
}; };
#endif #endif
// ----------------
// - PolyOptimize -
// ----------------
class PolyOptimizeData class PolyOptimizeData
{ {
private: private:
@@ -89,10 +73,6 @@ public:
sal_uInt16 GetPercentValue() const { DBG_ASSERT( eType == DATA_PERCENT, "Wrong data type" ); return mnPercent; } sal_uInt16 GetPercentValue() const { DBG_ASSERT( eType == DATA_PERCENT, "Wrong data type" ); return mnPercent; }
}; };
// -----------
// - Polygon -
// -----------
class SvStream; class SvStream;
class ImplPolygon; class ImplPolygon;
class ImplPolyPolygon; class ImplPolyPolygon;
@@ -219,10 +199,6 @@ public:
explicit Polygon(const ::basegfx::B2DPolygon& rPolygon); explicit Polygon(const ::basegfx::B2DPolygon& rPolygon);
}; };
// ---------------
// - PolyPolygon -
// ---------------
class TOOLS_DLLPUBLIC PolyPolygon class TOOLS_DLLPUBLIC PolyPolygon
{ {
private: private:

View File

@@ -21,7 +21,6 @@
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
#include <tools/unqidx.hxx> #include <tools/unqidx.hxx>
#include <tools/ref.hxx> #include <tools/ref.hxx>
#include <tools/rtti.hxx> #include <tools/rtti.hxx>
@@ -30,10 +29,10 @@
#define ERRCODE_IO_NOFACTORY ERRCODE_IO_WRONGFORMAT #define ERRCODE_IO_NOFACTORY ERRCODE_IO_WRONGFORMAT
/*************************************************************************
*************************************************************************/
class SvPersistBase; class SvPersistBase;
typedef void * (*SvCreateInstancePersist)( SvPersistBase ** ); typedef void * (*SvCreateInstancePersist)( SvPersistBase ** );
#define SV_CLASS_REGISTER( Class ) \ #define SV_CLASS_REGISTER( Class ) \
Register( Class::StaticClassId(), Class::CreateInstance ) Register( Class::StaticClassId(), Class::CreateInstance )
@@ -41,13 +40,12 @@ class TOOLS_DLLPUBLIC SvClassManager
{ {
typedef boost::unordered_map<sal_Int32, SvCreateInstancePersist> Map; typedef boost::unordered_map<sal_Int32, SvCreateInstancePersist> Map;
Map aAssocTable; Map aAssocTable;
public: public:
void Register( sal_Int32 nClassId, SvCreateInstancePersist pFunc ); void Register( sal_Int32 nClassId, SvCreateInstancePersist pFunc );
SvCreateInstancePersist Get( sal_Int32 nClassId ); SvCreateInstancePersist Get( sal_Int32 nClassId );
}; };
/************************** S v R t t i B a s e **************************/
class TOOLS_DLLPUBLIC SvRttiBase : public SvRefBase class TOOLS_DLLPUBLIC SvRttiBase : public SvRefBase
{ {
public: public:
@@ -55,7 +53,6 @@ public:
}; };
SV_DECL_IMPL_REF(SvRttiBase) SV_DECL_IMPL_REF(SvRttiBase)
/*************************************************************************/
#define SV_DECL_PERSIST( Class, CLASS_ID ) \ #define SV_DECL_PERSIST( Class, CLASS_ID ) \
TYPEINFO(); \ TYPEINFO(); \
static sal_Int32 StaticClassId() { return CLASS_ID; } \ static sal_Int32 StaticClassId() { return CLASS_ID; } \
@@ -90,8 +87,8 @@ SV_DECL_IMPL_REF(SvRttiBase)
TYPEINIT1( Class, Super1 ) \ TYPEINIT1( Class, Super1 ) \
PRV_SV_IMPL_PERSIST( Class ) PRV_SV_IMPL_PERSIST( Class )
/*************************************************************************/
class SvPersistStream; class SvPersistStream;
class SvPersistBase : public SvRttiBase class SvPersistBase : public SvRttiBase
{ {
public: public:
@@ -103,8 +100,6 @@ public:
}; };
SV_DECL_IMPL_REF(SvPersistBase) SV_DECL_IMPL_REF(SvPersistBase)
/*************************************************************************/
class SvPersistListWriteable class SvPersistListWriteable
{ {
public: public:
@@ -112,6 +107,7 @@ public:
virtual size_t size() const = 0; virtual size_t size() const = 0;
virtual SvPersistBase* GetPersistBase(size_t idx) const = 0; virtual SvPersistBase* GetPersistBase(size_t idx) const = 0;
}; };
class SvPersistListReadable class SvPersistListReadable
{ {
public: public:
@@ -123,9 +119,11 @@ void TOOLS_DLLPUBLIC WritePersistListObjects(const SvPersistListWriteable& rList
void TOOLS_DLLPUBLIC ReadObjects( SvPersistListReadable& rLst, SvPersistStream & rStm); void TOOLS_DLLPUBLIC ReadObjects( SvPersistListReadable& rLst, SvPersistStream & rStm);
// T has to be a subtype of "SvPersistBase*" // <T> has to be a subtype of "SvPersistBase*"
template<typename T> template<typename T>
class SvDeclPersistList : public SvRefMemberList<T>, public SvPersistListWriteable, public SvPersistListReadable class SvDeclPersistList : public SvRefMemberList<T>,
public SvPersistListWriteable,
public SvPersistListReadable
{ {
public: public:
// implement the reader/writer adapter methods // implement the reader/writer adapter methods
@@ -150,10 +148,8 @@ SvPersistStream& operator >> (SvPersistStream &rStm, SvDeclPersistList<T> &rLst)
}; };
typedef UniqueIndex<SvPersistBase> SvPersistUIdx; typedef UniqueIndex<SvPersistBase> SvPersistUIdx;
typedef std::map<SvPersistBase*, sal_uIntPtr> PersistBaseMap; typedef std::map<SvPersistBase*, sal_uIntPtr> PersistBaseMap;
//=========================================================================
class SvStream; class SvStream;
/** Persistent Stream /** Persistent Stream
@@ -203,10 +199,11 @@ class TOOLS_DLLPUBLIC SvPersistStream : public SvStream
virtual sal_uIntPtr PutData( const void* pData, sal_uIntPtr nSize ); virtual sal_uIntPtr PutData( const void* pData, sal_uIntPtr nSize );
virtual sal_uIntPtr SeekPos( sal_uIntPtr nPos ); virtual sal_uIntPtr SeekPos( sal_uIntPtr nPos );
virtual void FlushData(); virtual void FlushData();
protected: protected:
void WriteObj( sal_uInt8 nHdr, SvPersistBase * pObj ); void WriteObj( sal_uInt8 nHdr, SvPersistBase * pObj );
sal_uInt32 ReadObj( SvPersistBase * & rpObj, sal_uInt32 ReadObj( SvPersistBase * & rpObj, sal_Bool bRegister );
sal_Bool bRegister );
public: public:
sal_Bool IsStreamed( SvPersistBase * pObj ) const sal_Bool IsStreamed( SvPersistBase * pObj ) const
{ return 0 != GetIndex( pObj ); } { return 0 != GetIndex( pObj ); }
@@ -243,6 +240,6 @@ public:
friend SvStream& operator << ( SvStream &, SvPersistStream & ); friend SvStream& operator << ( SvStream &, SvPersistStream & );
}; };
#endif // _PSTM_HXX #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -89,7 +89,7 @@ typedef short RSWND_STYLE;
#define NUMERICFORMATTER_MIN 0x01 #define NUMERICFORMATTER_MIN 0x01
#define NUMERICFORMATTER_MAX 0x02 #define NUMERICFORMATTER_MAX 0x02
#define NUMERICFORMATTER_STRICTFORMAT 0x04 #define NUMERICFORMATTER_STRICTFORMAT 0x04
//#define NUMERICFORMATTER_I12 0x08 // erAck: got rid of class International (2005-06-17) //#define NUMERICFORMATTER_I12 0x08 // removed (2005-06-17)
#define NUMERICFORMATTER_DECIMALDIGITS 0x10 #define NUMERICFORMATTER_DECIMALDIGITS 0x10
#define NUMERICFORMATTER_VALUE 0x20 #define NUMERICFORMATTER_VALUE 0x20
#define NUMERICFORMATTER_NOTHOUSANDSEP 0x40 #define NUMERICFORMATTER_NOTHOUSANDSEP 0x40
@@ -101,7 +101,7 @@ typedef short RSWND_STYLE;
#define DATEFORMATTER_MAX 0x02 #define DATEFORMATTER_MAX 0x02
#define DATEFORMATTER_LONGFORMAT 0x04 #define DATEFORMATTER_LONGFORMAT 0x04
#define DATEFORMATTER_STRICTFORMAT 0x08 #define DATEFORMATTER_STRICTFORMAT 0x08
//#define DATEFORMATTER_I12 0x10 // erAck: got rid of class International (2005-06-17) //#define DATEFORMATTER_I12 0x10 // removed (2005-06-17)
#define DATEFORMATTER_VALUE 0x20 #define DATEFORMATTER_VALUE 0x20
#define TIMEFORMATTER_MIN 0x01 #define TIMEFORMATTER_MIN 0x01
@@ -109,7 +109,7 @@ typedef short RSWND_STYLE;
#define TIMEFORMATTER_TIMEFIELDFORMAT 0x04 #define TIMEFORMATTER_TIMEFIELDFORMAT 0x04
#define TIMEFORMATTER_DURATION 0x08 #define TIMEFORMATTER_DURATION 0x08
#define TIMEFORMATTER_STRICTFORMAT 0x10 #define TIMEFORMATTER_STRICTFORMAT 0x10
//#define TIMEFORMATTER_I12 0x20 // erAck: got rid of class International (2005-06-17) //#define TIMEFORMATTER_I12 0x20 // removed (2005-06-17)
#define TIMEFORMATTER_VALUE 0x40 #define TIMEFORMATTER_VALUE 0x40
#define NUMERICFIELD_FIRST 0x01 #define NUMERICFIELD_FIRST 0x01
@@ -200,7 +200,7 @@ typedef short RSWND_STYLE;
#define RSC_IMAGELIST_IDLIST 0x08 #define RSC_IMAGELIST_IDLIST 0x08
#define RSC_IMAGELIST_IDCOUNT 0x10 #define RSC_IMAGELIST_IDCOUNT 0x10
// obsolete, should be removed by MM // FIXME obsolete, should be removed by MM
#define RSC_COLOR (RSC_NOTYPE + 0x16) #define RSC_COLOR (RSC_NOTYPE + 0x16)
#define TIME_HOUR 0x01 #define TIME_HOUR 0x01
#define TIME_MINUTE 0x02 #define TIME_MINUTE 0x02

View File

@@ -24,10 +24,6 @@
#include <tools/string.hxx> #include <tools/string.hxx>
#include <tools/resmgr.hxx> #include <tools/resmgr.hxx>
// ------------
// - Resource -
// ------------
class TOOLS_DLLPUBLIC Resource class TOOLS_DLLPUBLIC Resource
{ {
protected: protected:

View File

@@ -43,7 +43,7 @@
#define RSC_KEYCODE (RSC_NOTYPE + 0x1f) #define RSC_KEYCODE (RSC_NOTYPE + 0x1f)
#define RSC_TIME (RSC_NOTYPE + 0x20) #define RSC_TIME (RSC_NOTYPE + 0x20)
#define RSC_DATE (RSC_NOTYPE + 0x21) #define RSC_DATE (RSC_NOTYPE + 0x21)
//#define RSC_INTERNATIONAL (RSC_NOTYPE + 0x22) // erAck: got rid of class International (2005-06-17) //#define RSC_INTERNATIONAL (RSC_NOTYPE + 0x22) // removed (2005-06-17)
#define RSC_IMAGE (RSC_NOTYPE + 0x23) #define RSC_IMAGE (RSC_NOTYPE + 0x23)
#define RSC_IMAGELIST (RSC_NOTYPE + 0x24) #define RSC_IMAGELIST (RSC_NOTYPE + 0x24)

View File

@@ -22,8 +22,6 @@
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
#include <vector> #include <vector>
//=========================================================================
#define PRV_SV_IMPL_REF_COUNTERS( ClassName, Ref, AddRef, AddNextRef, ReleaseRef, Init, pRefbase ) \ #define PRV_SV_IMPL_REF_COUNTERS( ClassName, Ref, AddRef, AddNextRef, ReleaseRef, Init, pRefbase ) \
inline ClassName##Ref::ClassName##Ref( const ClassName##Ref & rObj ) \ inline ClassName##Ref::ClassName##Ref( const ClassName##Ref & rObj ) \
{ pObj = rObj.pObj; if( pObj ) { Init pRefbase->AddNextRef; } } \ { pObj = rObj.pObj; if( pObj ) { Init pRefbase->AddNextRef; } } \
@@ -99,13 +97,12 @@ PRV_SV_IMPL_REF_COUNTERS( ClassName, Lock, OwnerLock( sal_True ), \
SV_DECL_REF(ClassName) \ SV_DECL_REF(ClassName) \
SV_IMPL_REF(ClassName) SV_IMPL_REF(ClassName)
/************************** S v R e f L i s t ****************************/
template<typename T> template<typename T>
class SvRefMemberList : private std::vector<T> class SvRefMemberList : private std::vector<T>
{ {
private: private:
typedef typename std::vector<T> base_t; typedef typename std::vector<T> base_t;
public: public:
using base_t::size; using base_t::size;
using base_t::front; using base_t::front;
@@ -131,11 +128,13 @@ public:
} }
base_t::clear(); base_t::clear();
} }
inline void push_back( T p ) inline void push_back( T p )
{ {
base_t::push_back( p ); base_t::push_back( p );
p->AddRef(); p->AddRef();
} }
inline void insert(const SvRefMemberList& rOther) inline void insert(const SvRefMemberList& rOther)
{ {
for( typename base_t::const_iterator it = rOther.begin(); it != rOther.end(); ++it ) for( typename base_t::const_iterator it = rOther.begin(); it != rOther.end(); ++it )
@@ -143,6 +142,7 @@ public:
push_back(*it); push_back(*it);
} }
} }
inline T pop_back() inline T pop_back()
{ {
T p = base_t::back(); T p = base_t::back();
@@ -153,15 +153,16 @@ public:
} }
}; };
/************************** S v R e f B a s e ****************************/
#define SV_NO_DELETE_REFCOUNT 0x80000000 #define SV_NO_DELETE_REFCOUNT 0x80000000
class TOOLS_DLLPUBLIC SvRefBase class TOOLS_DLLPUBLIC SvRefBase
{ {
sal_uIntPtr nRefCount; sal_uIntPtr nRefCount;
protected: protected:
virtual ~SvRefBase(); virtual ~SvRefBase();
virtual void QueryDelete(); virtual void QueryDelete();
public: public:
SvRefBase() { nRefCount = SV_NO_DELETE_REFCOUNT; } SvRefBase() { nRefCount = SV_NO_DELETE_REFCOUNT; }
SvRefBase( const SvRefBase & /* rObj */ ) SvRefBase( const SvRefBase & /* rObj */ )
@@ -207,6 +208,7 @@ class SvCompatWeakHdl : public SvRefBase
friend class SvCompatWeakBase; friend class SvCompatWeakBase;
void* _pObj; void* _pObj;
SvCompatWeakHdl( void* pObj ) : _pObj( pObj ) {} SvCompatWeakHdl( void* pObj ) : _pObj( pObj ) {}
public: public:
void ResetWeakBase( ) { _pObj = 0; } void ResetWeakBase( ) { _pObj = 0; }
void* GetObj() { return _pObj; } void* GetObj() { return _pObj; }
@@ -217,6 +219,7 @@ SV_DECL_IMPL_REF( SvCompatWeakHdl )
class SvCompatWeakBase class SvCompatWeakBase
{ {
SvCompatWeakHdlRef _xHdl; SvCompatWeakHdlRef _xHdl;
public: public:
SvCompatWeakHdl* GetHdl() { return _xHdl; } SvCompatWeakHdl* GetHdl() { return _xHdl; }
@@ -248,6 +251,6 @@ public: \
return (ClassName*) (_xHdl.Is() ? _xHdl->GetObj() : 0 ); } \ return (ClassName*) (_xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
}; };
#endif // _Weak_HXX #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -25,18 +25,11 @@
#include <tools/string.hxx> #include <tools/string.hxx>
#include <tools/resid.hxx> #include <tools/resid.hxx>
// ------------------
// - ResStringArray -
// ------------------
#define RESARRAY_INDEX_NOTFOUND (0xffffffff) #define RESARRAY_INDEX_NOTFOUND (0xffffffff)
class TOOLS_DLLPUBLIC ResStringArray : private boost::noncopyable class TOOLS_DLLPUBLIC ResStringArray : private boost::noncopyable
{ {
private: private:
// ---------------------
// - ImplResStringItem -
// ---------------------
struct ImplResStringItem struct ImplResStringItem
{ {
rtl::OUString m_aStr; rtl::OUString m_aStr;

View File

@@ -32,10 +32,6 @@ typedef sal_uInt32 RESOURCE_TYPE;
class ResMgr; class ResMgr;
//---------
//- ResId -
//---------
class ResId class ResId
{ {
/* /*

View File

@@ -30,10 +30,6 @@
class SvStream; class SvStream;
class InternalResMgr; class InternalResMgr;
// -----------------
// - RSHEADER_TYPE -
// -----------------
/// Defines structure used to build resource /// Defines structure used to build resource
struct RSHEADER_TYPE struct RSHEADER_TYPE
{ {
@@ -50,16 +46,8 @@ public:
inline sal_uInt32 GetLocalOff(); ///< Local offset inline sal_uInt32 GetLocalOff(); ///< Local offset
}; };
// ----------
// - ResMgr -
// ----------
typedef rtl::OUString (*ResHookProc)( const rtl::OUString& rStr ); typedef rtl::OUString (*ResHookProc)( const rtl::OUString& rStr );
// ----------
// - ResMgr -
// ----------
// Initialization // Initialization
#define RC_NOTYPE 0x00 #define RC_NOTYPE 0x00
// Global resource // Global resource
@@ -130,7 +118,7 @@ private:
static ResMgr* ImplCreateResMgr( InternalResMgr* pImpl ) { return new ResMgr( pImpl ); } static ResMgr* ImplCreateResMgr( InternalResMgr* pImpl ) { return new ResMgr( pImpl ); }
//No copying // no copying
ResMgr(const ResMgr&); ResMgr(const ResMgr&);
ResMgr& operator=(const ResMgr&); ResMgr& operator=(const ResMgr&);
public: public:

View File

@@ -23,9 +23,7 @@
#include <tools/solar.h> #include <tools/solar.h>
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
// ---------------- // GetAppData()
// - GetAppData() -
// ----------------
#define SHL_SHL1 0 #define SHL_SHL1 0
#define SHL_SHL2 1 #define SHL_SHL2 1
@@ -84,7 +82,7 @@
// #110743# // #110743#
// #define SHL_COUNT 53 // #define SHL_COUNT 53
// the following added for binary filter project // the following added for binary filter project
// Sice an array is created for that values, it is necessary to // Since an array is created for that values, it is necessary to
// put them directly behind the defined ones. Else, some space is // put them directly behind the defined ones. Else, some space is
// wasted. // wasted.
#define BF_SHL_SVX 53 #define BF_SHL_SVX 53

View File

@@ -17,10 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
// ----------------
// - SimpleResMgr -
// ----------------
// a simple resource manager : no stacks, no sharing of the impl class, only loading of strings and blobs // a simple resource manager : no stacks, no sharing of the impl class, only loading of strings and blobs
// but thread-safety !! :) // but thread-safety !! :)
@@ -44,10 +40,11 @@ protected:
public: public:
/** creates a new SimpleResManager /** creates a new SimpleResManager
@param pPrefixName @param pPrefixName
denotes the prefix of the resource file name, in ThreadTextEncoding denotes the prefix of the resource file name,
in ThreadTextEncoding
@param rLocale @param rLocale
denotes the locale of the resource file to load. If empty, a default locale denotes the locale of the resource file to
will be used. load. If empty, a default locale will be used.
*/ */
SimpleResMgr( const sal_Char* pPrefixName, SimpleResMgr( const sal_Char* pPrefixName,
const ::com::sun::star::lang::Locale& _rLocale); const ::com::sun::star::lang::Locale& _rLocale);

View File

@@ -24,8 +24,6 @@
#include <osl/endian.h> #include <osl/endian.h>
#include <comphelper/fileformat.h> #include <comphelper/fileformat.h>
/*** common solar defines ***********************************/
#ifdef _SOLAR__PRIVATE #ifdef _SOLAR__PRIVATE
#undef _SOLAR__PRIVATE #undef _SOLAR__PRIVATE
#endif #endif
@@ -38,7 +36,7 @@
used for data exchange or for similiar method args. */ used for data exchange or for similiar method args. */
typedef sal_uIntPtr sal_uLong; /* Replaces type ULONG */ typedef sal_uIntPtr sal_uLong; /* Replaces type ULONG */
/*** misc. macros to leverage platform and compiler differences ********/ // misc. macros to leverage platform and compiler differences
#define DELETEZ( p ) ( delete p,p = 0 ) #define DELETEZ( p ) ( delete p,p = 0 )
@@ -58,7 +56,7 @@ typedef sal_uIntPtr sal_uLong; /* Replaces type ULONG */
#define ILLEGAL_POINTER NULL #define ILLEGAL_POINTER NULL
#endif #endif
/*** solar binary types **********************************************/ // solar binary types
/* Solar (portable) Binary (exchange) Type; OSI 6 subset /* Solar (portable) Binary (exchange) Type; OSI 6 subset
always little endian; always little endian;
@@ -130,8 +128,6 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((sal_uInt8*)&n)[7
#endif #endif
#endif #endif
/*** standard macros *****************************************/
#ifndef __cplusplus #ifndef __cplusplus
#ifndef min #ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b))
@@ -141,28 +137,18 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((sal_uInt8*)&n)[7
#endif #endif
#endif #endif
/*** standard inline functions *****************************************/
#ifdef __cplusplus #ifdef __cplusplus
template<typename T> inline T Min(T a, T b) { return (a<b?a:b); } template<typename T> inline T Min(T a, T b) { return (a<b?a:b); }
template<typename T> inline T Max(T a, T b) { return (a>b?a:b); } template<typename T> inline T Max(T a, T b) { return (a>b?a:b); }
template<typename T> inline T Abs(T a) { return (a>=0?a:-a); } template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
#endif #endif
/*** C / C++ - macros **************************************************/
#ifdef __cplusplus #ifdef __cplusplus
#define EXTERN_C extern "C" #define EXTERN_C extern "C"
#else #else
#define EXTERN_C #define EXTERN_C
#endif #endif
/*** macros ************************************************************/
#ifdef NOHACKS #ifdef NOHACKS
#define HACK( comment ) #error hack: comment #define HACK( comment ) #error hack: comment
#else #else
@@ -172,8 +158,7 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
#define _LF ((char)0x0A) #define _LF ((char)0x0A)
#define _CR ((char)0x0D) #define _CR ((char)0x0D)
// pragmas
/*** pragmas ************************************************************/
#if defined _MSC_VER #if defined _MSC_VER
/* deletion of pointer to incomplete type '...'; no destructor called /* deletion of pointer to incomplete type '...'; no destructor called
@@ -184,8 +169,7 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
#pragma warning(error : 4002 4003) #pragma warning(error : 4002 4003)
#endif #endif
// dll file extensions
/* dll file extensions *******************************************************/
#if defined WNT #if defined WNT
#define __DLLEXTENSION "lo" #define __DLLEXTENSION "lo"
@@ -197,15 +181,11 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
#error unknown platform #error unknown platform
#endif #endif
// -----------------------------------------------------------------------
#define UniString String #define UniString String
#define XubString String #define XubString String
#define xub_Unicode sal_Unicode #define xub_Unicode sal_Unicode
#define xub_StrLen sal_uInt16 #define xub_StrLen sal_uInt16
// -- moved here from libcall.hxx ----------------------------------------
#define LIBRARY_CONCAT3( s1, s2, s3 ) \ #define LIBRARY_CONCAT3( s1, s2, s3 ) \
s1 s2 s3 s1 s2 s3
#define LIBRARY_CONCAT4( s1, s2, s3, s4 ) \ #define LIBRARY_CONCAT4( s1, s2, s3, s4 ) \

View File

@@ -31,10 +31,6 @@
class FileCopier; class FileCopier;
class StreamData; class StreamData;
// ------------------------
// - FileFormat-Functions -
// ------------------------
inline rtl_TextEncoding GetStoreCharSet( rtl_TextEncoding eEncoding ) inline rtl_TextEncoding GetStoreCharSet( rtl_TextEncoding eEncoding )
{ {
if ( eEncoding == RTL_TEXTENCODING_ISO_8859_1 ) if ( eEncoding == RTL_TEXTENCODING_ISO_8859_1 )
@@ -43,9 +39,7 @@ inline rtl_TextEncoding GetStoreCharSet( rtl_TextEncoding eEncoding )
return eEncoding; return eEncoding;
} }
// --------------- // StreamTypes
// - StreamTypes -
// ---------------
typedef sal_uInt16 StreamMode; typedef sal_uInt16 StreamMode;
@@ -100,12 +94,9 @@ typedef sal_uInt16 StreamMode;
class SvStream; class SvStream;
typedef SvStream& (*SvStrPtr)( SvStream& ); typedef SvStream& (*SvStrPtr)( SvStream& );
// forward declaration with internal linkage
inline SvStream& operator<<( SvStream& rStr, SvStrPtr f ); inline SvStream& operator<<( SvStream& rStr, SvStrPtr f );
// --------------- // SvLockBytes
// - SvLockBytes -
// ---------------
enum LockType {}; enum LockType {};
@@ -162,9 +153,7 @@ public:
SV_DECL_IMPL_REF(SvLockBytes); SV_DECL_IMPL_REF(SvLockBytes);
// ------------------- // SvOpenLockBytes
// - SvOpenLockBytes -
// -------------------
class TOOLS_DLLPUBLIC SvOpenLockBytes: public SvLockBytes class TOOLS_DLLPUBLIC SvOpenLockBytes: public SvLockBytes
{ {
@@ -188,9 +177,7 @@ public:
SV_DECL_IMPL_REF(SvOpenLockBytes); SV_DECL_IMPL_REF(SvOpenLockBytes);
// -------------------- // SvAsyncLockBytes
// - SvAsyncLockBytes -
// --------------------
class SvAsyncLockBytes: public SvOpenLockBytes class SvAsyncLockBytes: public SvOpenLockBytes
{ {
@@ -221,9 +208,7 @@ public:
SV_DECL_IMPL_REF(SvAsyncLockBytes); SV_DECL_IMPL_REF(SvAsyncLockBytes);
// ---------- // SvStream
// - Stream -
// ----------
class TOOLS_DLLPUBLIC SvStream class TOOLS_DLLPUBLIC SvStream
{ {
@@ -376,11 +361,12 @@ public:
Maximum of bytes to read, if line is longer it will be Maximum of bytes to read, if line is longer it will be
truncated. truncated.
NOTE that the default is one character less than @note NOTE that the default is one character less than STRING_MAXLEN to
STRING_MAXLEN to prevent problems after conversion to prevent problems after conversion to String that may be lurking
String that may be lurking in various places doing in various places doing something like
something like @code
for (sal_uInt16 i=0; i < aString.Len(); ++i) for (sal_uInt16 i=0; i < aString.Len(); ++i)
@endcode
causing endless loops ... causing endless loops ...
*/ */
sal_Bool ReadLine( rtl::OString& rStr, sal_Int32 nMaxBytesToRead = 0xFFFE ); sal_Bool ReadLine( rtl::OString& rStr, sal_Int32 nMaxBytesToRead = 0xFFFE );
@@ -392,11 +378,12 @@ public:
Maximum of bytes to read, if line is longer it will be Maximum of bytes to read, if line is longer it will be
truncated. truncated.
NOTE that the default is one character less than @note NOTE that the default is one character less than STRING_MAXLEN to
STRING_MAXLEN to prevent problems after conversion to prevent problems after conversion to String that may be lurking
String that may be lurking in various places doing in various places doing something like
something like @code
for (sal_uInt16 i=0; i < aString.Len(); ++i) for (sal_uInt16 i=0; i < aString.Len(); ++i)
@endcode
causing endless loops ... causing endless loops ...
*/ */
sal_Bool ReadByteStringLine( rtl::OUString& rStr, rtl_TextEncoding eSrcCharSet, sal_Bool ReadByteStringLine( rtl::OUString& rStr, rtl_TextEncoding eSrcCharSet,
@@ -407,39 +394,39 @@ public:
/// Switch to no endian swapping and write 0xfeff /// Switch to no endian swapping and write 0xfeff
sal_Bool StartWritingUnicodeText(); sal_Bool StartWritingUnicodeText();
/** If eReadBomCharSet==RTL_TEXTENCODING_DONTKNOW: read 16bit, /** If eReadBomCharSet==RTL_TEXTENCODING_DONTKNOW: read 16bit, if 0xfeff do
if 0xfeff do nothing (UTF-16), if 0xfffe switch endian nothing (UTF-16), if 0xfffe switch endian swapping (UTF-16), if 0xefbb
swapping (UTF-16), if 0xefbb or 0xbbef read another byte or 0xbbef read another byte and check for UTF-8. If no UTF-* BOM was
and check for UTF-8. If no UTF-* BOM was detected put all detected put all read bytes back. This means that if 2 bytes were read
read bytes back. This means that if 2 bytes were read it it was an UTF-16 BOM, if 3 bytes were read it was an UTF-8 BOM. There
was an UTF-16 BOM, if 3 bytes were read it was an UTF-8 is no UTF-7, UTF-32 or UTF-EBCDIC BOM detection!
BOM. There is no UTF-7, UTF-32 or UTF-EBCDIC BOM detection!
If eReadBomCharSet!=RTL_TEXTENCODING_DONTKNOW: only read a If eReadBomCharSet!=RTL_TEXTENCODING_DONTKNOW: only read a BOM of that
BOM of that encoding and switch endian swapping if UTF-16 encoding and switch endian swapping if UTF-16 and 0xfffe. */
and 0xfffe.
*/
sal_Bool StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet ); sal_Bool StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet );
/** Read a line of Unicode. /** Read a line of Unicode.
@param nMaxCodepointsToRead @param nMaxCodepointsToRead
Maximum of codepoints (UCS-2 or UTF-16 pairs, not Maximum of codepoints (UCS-2 or UTF-16 pairs, not bytes) to
bytes) to read, if line is longer it will be truncated. read, if line is longer it will be truncated.
NOTE that the default is one character less than @note NOTE that the default is one character less than STRING_MAXLEN to
STRING_MAXLEN to prevent problems after conversion to prevent problems after conversion to String that may be lurking in
String that may be lurking in various places doing various places doing something like
something like @code
for (sal_uInt16 i=0; i < aString.Len(); ++i) for (sal_uInt16 i=0; i < aString.Len(); ++i)
@endcode
causing endless loops ... causing endless loops ...
*/ */
sal_Bool ReadUniStringLine( rtl::OUString& rStr, sal_Int32 nMaxCodepointsToRead = 0xFFFE ); sal_Bool ReadUniStringLine( rtl::OUString& rStr, sal_Int32 nMaxCodepointsToRead = 0xFFFE );
/// Read a 32bit length prefixed sequence of utf-16 if eSrcCharSet==RTL_TEXTENCODING_UNICODE, /** Read a 32bit length prefixed sequence of utf-16 if
/// otherwise read a 16bit length prefixed sequence of bytes and convert from eSrcCharSet eSrcCharSet==RTL_TEXTENCODING_UNICODE, otherwise read a 16bit length
prefixed sequence of bytes and convert from eSrcCharSet */
rtl::OUString ReadUniOrByteString(rtl_TextEncoding eSrcCharSet); rtl::OUString ReadUniOrByteString(rtl_TextEncoding eSrcCharSet);
/// Write a 32bit length prefixed sequence of utf-16 if eSrcCharSet==RTL_TEXTENCODING_UNICODE, /** Write a 32bit length prefixed sequence of utf-16 if
/// otherwise convert to eSrcCharSet and write a 16bit length prefixed sequence of bytes eSrcCharSet==RTL_TEXTENCODING_UNICODE, otherwise convert to eSrcCharSet
and write a 16bit length prefixed sequence of bytes */
SvStream& WriteUniOrByteString( const rtl::OUString& rStr, rtl_TextEncoding eDestCharSet ); SvStream& WriteUniOrByteString( const rtl::OUString& rStr, rtl_TextEncoding eDestCharSet );
/** Read a line of Unicode if eSrcCharSet==RTL_TEXTENCODING_UNICODE, /** Read a line of Unicode if eSrcCharSet==RTL_TEXTENCODING_UNICODE,
@@ -447,28 +434,30 @@ public:
@param nMaxCodepointsToRead @param nMaxCodepointsToRead
Maximum of codepoints (2 bytes if Unicode, bytes if not Maximum of codepoints (2 bytes if Unicode, bytes if not
Unicode) to read, if line is longer it will be Unicode) to read, if line is longer it will be truncated.
truncated.
NOTE that the default is one character less than @note NOTE that the default is one character less than STRING_MAXLEN to
STRING_MAXLEN to prevent problems after conversion to prevent problems after conversion to String that may be lurking in
String that may be lurking in various places doing various places doing something like
something like @code
for (sal_uInt16 i=0; i < aString.Len(); ++i) for (sal_uInt16 i=0; i < aString.Len(); ++i)
@endcode
causing endless loops ... causing endless loops ...
*/ */
sal_Bool ReadUniOrByteStringLine( rtl::OUString& rStr, rtl_TextEncoding eSrcCharSet, sal_Bool ReadUniOrByteStringLine( rtl::OUString& rStr, rtl_TextEncoding eSrcCharSet,
sal_Int32 nMaxCodepointsToRead = 0xFFFE ); sal_Int32 nMaxCodepointsToRead = 0xFFFE );
/// Write a sequence of Unicode characters if eDestCharSet==RTL_TEXTENCODING_UNICODE, /** Write a sequence of Unicode characters if
/// otherwise write a sequence of Bytecodes converted to eDestCharSet eDestCharSet==RTL_TEXTENCODING_UNICODE, otherwise write a sequence of
Bytecodes converted to eDestCharSet */
sal_Bool WriteUnicodeOrByteText( const String& rStr, rtl_TextEncoding eDestCharSet ); sal_Bool WriteUnicodeOrByteText( const String& rStr, rtl_TextEncoding eDestCharSet );
sal_Bool WriteUnicodeOrByteText( const String& rStr ) sal_Bool WriteUnicodeOrByteText( const String& rStr )
{ return WriteUnicodeOrByteText( rStr, GetStreamCharSet() ); } { return WriteUnicodeOrByteText( rStr, GetStreamCharSet() ); }
/// Write a Unicode character if eDestCharSet==RTL_TEXTENCODING_UNICODE, /** Write a Unicode character if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write as Bytecode converted to eDestCharSet. otherwise write as Bytecode converted to eDestCharSet.
/// This may result in more than one byte being written
/// if a multi byte encoding (e.g. UTF7, UTF8) is chosen. This may result in more than one byte being written if a multi byte
encoding (e.g. UTF7, UTF8) is chosen. */
sal_Bool WriteUniOrByteChar( sal_Unicode ch, rtl_TextEncoding eDestCharSet ); sal_Bool WriteUniOrByteChar( sal_Unicode ch, rtl_TextEncoding eDestCharSet );
sal_Bool WriteUniOrByteChar( sal_Unicode ch ) sal_Bool WriteUniOrByteChar( sal_Unicode ch )
{ return WriteUniOrByteChar( ch, GetStreamCharSet() ); } { return WriteUniOrByteChar( ch, GetStreamCharSet() ); }
@@ -488,22 +477,25 @@ public:
friend SvStream& operator<<( SvStream& rStr, SvStrPtr f ); // for Manips friend SvStream& operator<<( SvStream& rStr, SvStrPtr f ); // for Manips
//end of input seen during previous i/o operation /// end of input seen during previous i/o operation
bool eof() const { return bIsEof; } bool eof() const { return bIsEof; }
// stream is broken /// stream is broken
bool bad() const { return GetError() != 0; } bool bad() const { return GetError() != 0; }
//If the state is good() the previous i/o operation succeeded. /** Get state
//
//If the state is good(), the next input operation might succeed; If the state is good() the previous i/o operation succeeded.
//otherwise, it will fail.
// If the state is good(), the next input operation might succeed;
//Applying an input operation to a stream that is not in the good() state otherwise, it will fail.
//is a null operation as far as the variable being read into is concerned.
// Applying an input operation to a stream that is not in the good() state
//If we try to read into a variable v and the operation fails, the value of is a null operation as far as the variable being read into is concerned.
//v should be unchanged,
If we try to read into a variable v and the operation fails, the value
of v should be unchanged,
*/
bool good() const { return !(eof() || bad()); } bool good() const { return !(eof() || bad()); }
}; };
@@ -643,27 +635,25 @@ TOOLS_DLLPUBLIC inline sal_Size write_uInt8s_FromOString(SvStream& rStrm, const
return write_uInt8s_FromOString(rStrm, rStr, rStr.getLength()); return write_uInt8s_FromOString(rStrm, rStr, rStr.getLength());
} }
//Attempt to write a pascal-style length (of type prefix) prefixed sequence of /// Attempt to write a pascal-style length (of type prefix) prefixed sequence
//8bit units from an OString, returned value is number of bytes written (including /// of 8bit units from an OString, returned value is number of bytes written
//byte-count of prefix) /// (including byte-count of prefix)
template<typename prefix> sal_Size write_lenPrefixed_uInt8s_FromOString(SvStream& rStrm, template<typename prefix> sal_Size write_lenPrefixed_uInt8s_FromOString(SvStream& rStrm,
const rtl::OString &rStr) const rtl::OString &rStr)
{ {
return streamdetail::write_lenPrefixed_seq_From_str<prefix, rtl::OString, write_uInt8s_FromOString>(rStrm, rStr); return streamdetail::write_lenPrefixed_seq_From_str<prefix, rtl::OString, write_uInt8s_FromOString>(rStrm, rStr);
} }
//Attempt to write a pascal-style length (of type prefix) prefixed sequence of /// Attempt to write a pascal-style length (of type prefix) prefixed sequence
//8bit units from an OUString, returned value is number of bytes written (including /// of 8bit units from an OUString, returned value is number of bytes written
//byte-count of prefix) /// (including byte-count of prefix)
template<typename prefix> sal_Size write_lenPrefixed_uInt8s_FromOUString(SvStream& rStrm, template<typename prefix> sal_Size write_lenPrefixed_uInt8s_FromOUString(SvStream& rStrm,
const rtl::OUString &rStr, rtl_TextEncoding eEnc) const rtl::OUString &rStr, rtl_TextEncoding eEnc)
{ {
return write_lenPrefixed_uInt8s_FromOString<prefix>(rStrm, rtl::OUStringToOString(rStr, eEnc)); return write_lenPrefixed_uInt8s_FromOString<prefix>(rStrm, rtl::OUStringToOString(rStr, eEnc));
} }
// -------------- // FileStream
// - FileStream -
// --------------
class TOOLS_DLLPUBLIC SvFileStream : public SvStream class TOOLS_DLLPUBLIC SvFileStream : public SvStream
{ {
@@ -709,9 +699,7 @@ public:
const String& GetFileName() const { return aFilename; } const String& GetFileName() const { return aFilename; }
}; };
// ---------------- // MemoryStream
// - MemoryStream -
// ----------------
class TOOLS_DLLPUBLIC SvMemoryStream : public SvStream class TOOLS_DLLPUBLIC SvMemoryStream : public SvStream
{ {

View File

@@ -56,9 +56,7 @@ class UniString;
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// ----------- // CharSet
// - CharSet -
// -----------
#ifndef ENUM_CHARSET_DECLARED #ifndef ENUM_CHARSET_DECLARED
#define ENUM_CHARSET_DECLARED #define ENUM_CHARSET_DECLARED
@@ -69,9 +67,7 @@ typedef rtl_TextEncoding CharSet;
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// ---------------- // String-Types
// - String-Types -
// ----------------
#ifdef STRING32 #ifdef STRING32
#define STRING_NOTFOUND ((xub_StrLen)0x7FFFFFFF) #define STRING_NOTFOUND ((xub_StrLen)0x7FFFFFFF)
@@ -89,9 +85,7 @@ enum StringCompare { COMPARE_LESS = -1, COMPARE_EQUAL = 0, COMPARE_GREATER = 1 }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// ------------------------
//Internal String data //Internal String data
// ------------------------
// Data used for the management of this String // Data used for the management of this String
// use only for debugging purposes (never assign to String directly!) // use only for debugging purposes (never assign to String directly!)
@@ -111,9 +105,7 @@ typedef struct _UniStringData
#pragma pack(pop) #pragma pack(pop)
#endif #endif
// ------------- // UniString
// - UniString -
// -------------
class TOOLS_DLLPUBLIC UniString class TOOLS_DLLPUBLIC UniString
{ {

View File

@@ -22,9 +22,7 @@
#include <rtl/textenc.h> #include <rtl/textenc.h>
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
// ---------------------------------------- // Functions for handling Import/Export
// - Functions for handling Import/Export -
// ----------------------------------------
/// return an encoding which has more defined Characters as the given /// return an encoding which has more defined Characters as the given
/// encoding, but have the same definition for the defined characters /// encoding, but have the same definition for the defined characters

View File

@@ -24,14 +24,10 @@
class ResId; class ResId;
// --------
// - Time -
// --------
/** /**
WARNING: This class can serve both as call clock time and time duration, and the mixing @WARNING: This class can serve both as call clock time and time duration, and
of these concepts leads to problems such as there being 25 hours the mixing of these concepts leads to problems such as there being
or 10 minus 20 seconds being (non-negative) 10 seconds. 25 hours or 10 minus 20 seconds being (non-negative) 10 seconds.
*/ */
class TOOLS_DLLPUBLIC Time class TOOLS_DLLPUBLIC Time

View File

@@ -24,10 +24,6 @@
#include <tools/contnr.hxx> #include <tools/contnr.hxx>
#include <map> #include <map>
// ---------------
// - UniqueIndex -
// ---------------
#define UNIQUEINDEX_ENTRY_NOTFOUND CONTAINER_ENTRY_NOTFOUND #define UNIQUEINDEX_ENTRY_NOTFOUND CONTAINER_ENTRY_NOTFOUND
class TOOLS_DLLPUBLIC UniqueIndexImpl : public std::map<sal_uInt32, void*> class TOOLS_DLLPUBLIC UniqueIndexImpl : public std::map<sal_uInt32, void*>

View File

@@ -22,20 +22,12 @@
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
#include <tools/solar.h> #include <tools/solar.h>
// -----------
// - Defines -
// -----------
#define COMPAT_FORMAT( char1, char2, char3, char4 ) \ #define COMPAT_FORMAT( char1, char2, char3, char4 ) \
((sal_uInt32)((((sal_uInt32)(char)(char1)))| \ ((sal_uInt32)((((sal_uInt32)(char)(char1)))| \
(((sal_uInt32)(char)(char2))<<8UL)| \ (((sal_uInt32)(char)(char2))<<8UL)| \
(((sal_uInt32)(char)(char3))<<16UL)| \ (((sal_uInt32)(char)(char3))<<16UL)| \
((sal_uInt32)(char)(char4))<<24UL)) ((sal_uInt32)(char)(char4))<<24UL))
// --------------
// - ImplCompat -
// --------------
class SvStream; class SvStream;
class TOOLS_DLLPUBLIC VersionCompat class TOOLS_DLLPUBLIC VersionCompat

View File

@@ -23,10 +23,6 @@
#include <math.h> #include <math.h>
#include <tools/gen.hxx> #include <tools/gen.hxx>
// ------------
// - Vector2D -
// ------------
class Vector2D class Vector2D
{ {
private: private:

View File

@@ -22,9 +22,7 @@
#include <tools/solar.h> #include <tools/solar.h>
#include <sal/types.h> #include <sal/types.h>
// ---------------- // Window-Types
// - Window-Types -
// ----------------
typedef sal_uInt16 WindowType; typedef sal_uInt16 WindowType;
#define WINDOW_BASE 0x0100 #define WINDOW_BASE 0x0100
@@ -112,10 +110,7 @@ typedef sal_uInt16 WindowType;
#define WINDOW_CALCINPUTLINE (WINDOW_FIRST + 0x52) #define WINDOW_CALCINPUTLINE (WINDOW_FIRST + 0x52)
#define WINDOW_LAST (WINDOW_CALCINPUTLINE) #define WINDOW_LAST (WINDOW_CALCINPUTLINE)
// Window-Bits
// ---------------
// - Window-Bits -
// ---------------
typedef sal_Int64 WinBits; typedef sal_Int64 WinBits;
@@ -138,11 +133,11 @@ typedef sal_Int64 WinBits;
#define WB_PINABLE ((WinBits)0x00002000) #define WB_PINABLE ((WinBits)0x00002000)
#define WB_SYSTEMWINDOW ((WinBits)SAL_CONST_INT64(0x40000000)) #define WB_SYSTEMWINDOW ((WinBits)SAL_CONST_INT64(0x40000000))
// warning: do not confuse WB_SYSTEMCHILDWINDOW with the SystemChildWindow class // warning: do not confuse WB_SYSTEMCHILDWINDOW with the SystemChildWindow class
//
// the SystemChildWindow class was there first and is a very specialized // the SystemChildWindow class was there first and is a very specialized
// sytem child window type for plugged applications. The SystemChildWindow class // sytem child window type for plugged applications. The SystemChildWindow class
// explicitly should never use the WB_SYSTEMCHILDWINDOW WinBit // explicitly should never use the WB_SYSTEMCHILDWINDOW WinBit
//
// WB_SYSTEMCHILDWINDOW on the other hand is to be used on system windows // WB_SYSTEMCHILDWINDOW on the other hand is to be used on system windows
// which should be created as system child windows with (more or less) // which should be created as system child windows with (more or less)
// normal event handling // normal event handling
@@ -285,16 +280,11 @@ typedef sal_Int64 WinBits;
// Window-Bits for TabControl // Window-Bits for TabControl
#define WB_SLIDERSET ((WinBits)0x02000000) #define WB_SLIDERSET ((WinBits)0x02000000)
// extended WinBits
// --------------------
// - extended WinBits -
// --------------------
#define WB_EXT_DOCUMENT ((WinBits)0x00000001) #define WB_EXT_DOCUMENT ((WinBits)0x00000001)
#define WB_EXT_DOCMODIFIED ((WinBits)0x00000002) #define WB_EXT_DOCMODIFIED ((WinBits)0x00000002)
// --------------- // WindowAlign
// - WindowAlign -
// ---------------
enum WindowAlign { WINDOWALIGN_LEFT, WINDOWALIGN_TOP, WINDOWALIGN_RIGHT, WINDOWALIGN_BOTTOM }; enum WindowAlign { WINDOWALIGN_LEFT, WINDOWALIGN_TOP, WINDOWALIGN_RIGHT, WINDOWALIGN_BOTTOM };
enum ImageAlign { IMAGEALIGN_LEFT, IMAGEALIGN_TOP, IMAGEALIGN_RIGHT, IMAGEALIGN_BOTTOM, enum ImageAlign { IMAGEALIGN_LEFT, IMAGEALIGN_TOP, IMAGEALIGN_RIGHT, IMAGEALIGN_BOTTOM,
@@ -303,16 +293,12 @@ enum ImageAlign { IMAGEALIGN_LEFT, IMAGEALIGN_TOP, IMAGEALIGN_RIGHT, IMAGEALIGN_
IMAGEALIGN_BOTTOM_LEFT, IMAGEALIGN_BOTTOM_RIGHT, IMAGEALIGN_CENTER }; IMAGEALIGN_BOTTOM_LEFT, IMAGEALIGN_BOTTOM_RIGHT, IMAGEALIGN_CENTER };
enum SymbolAlign { SYMBOLALIGN_LEFT, SYMBOLALIGN_RIGHT }; enum SymbolAlign { SYMBOLALIGN_LEFT, SYMBOLALIGN_RIGHT };
// ------------ // TriState
// - TriState -
// ------------
enum TriState { STATE_NOCHECK, STATE_CHECK, STATE_DONTKNOW }; enum TriState { STATE_NOCHECK, STATE_CHECK, STATE_DONTKNOW };
// ---------------------- // ButtonDialog-Types
// - ButtonDialog-Types -
// ----------------------
typedef sal_uInt16 StandardButtonType; typedef sal_uInt16 StandardButtonType;
#define BUTTON_OK ((StandardButtonType)0) #define BUTTON_OK ((StandardButtonType)0)
@@ -328,9 +314,7 @@ typedef sal_uInt16 StandardButtonType;
#define BUTTON_LESS ((StandardButtonType)10) #define BUTTON_LESS ((StandardButtonType)10)
#define BUTTON_COUNT 11 #define BUTTON_COUNT 11
// -------------------------------------------- // prominent place for ListBox window types
// - prominent place for ListBox window types -
// --------------------------------------------
enum ProminentEntry { PROMINENT_TOP, PROMINENT_MIDDLE }; enum ProminentEntry { PROMINENT_TOP, PROMINENT_MIDDLE };

View File

@@ -23,10 +23,6 @@
#include <tools/string.hxx> #include <tools/string.hxx>
#include <osl/thread.h> #include <osl/thread.h>
// ------------
// - WildCard -
// ------------
class TOOLS_DLLPUBLIC WildCard class TOOLS_DLLPUBLIC WildCard
{ {
private: private:

View File

@@ -23,22 +23,17 @@
#include "tools/toolsdllapi.h" #include "tools/toolsdllapi.h"
#include <tools/solar.h> #include <tools/solar.h>
// ----------- // Defines
// - Defines -
// -----------
#define DEFAULT_IN_BUFSIZE (0x00008000UL) #define DEFAULT_IN_BUFSIZE (0x00008000UL)
#define DEFAULT_OUT_BUFSIZE (0x00008000UL) #define DEFAULT_OUT_BUFSIZE (0x00008000UL)
#define MAX_MEM_USAGE 8 #define MAX_MEM_USAGE 8
//
// memory requirement using compress: // memory requirement using compress:
// [ INBUFFER ] + [ OUTBUFFER ] + 128KB + 1 << (MEM_USAGE+9) // [ INBUFFER ] + [ OUTBUFFER ] + 128KB + 1 << (MEM_USAGE+9)
//
// memory requirement using decompress: // memory requirement using decompress:
// [ INBUFFER ] + [ OUTBUFFER ] + 32KB // [ INBUFFER ] + [ OUTBUFFER ] + 32KB
//
#define ZCODEC_NO_COMPRESSION (0x00000000UL) #define ZCODEC_NO_COMPRESSION (0x00000000UL)
#define ZCODEC_BEST_SPEED (0x00000001UL) #define ZCODEC_BEST_SPEED (0x00000001UL)
@@ -55,10 +50,6 @@
#define ZCODEC_PNG_DEFAULT ( ZCODEC_NO_COMPRESSION | ZCODEC_DEFAULT_STRATEGY | ZCODEC_UPDATE_CRC ) #define ZCODEC_PNG_DEFAULT ( ZCODEC_NO_COMPRESSION | ZCODEC_DEFAULT_STRATEGY | ZCODEC_UPDATE_CRC )
#define ZCODEC_DEFAULT ( ZCODEC_DEFAULT_COMPRESSION | ZCODEC_DEFAULT_STRATEGY ) #define ZCODEC_DEFAULT ( ZCODEC_DEFAULT_COMPRESSION | ZCODEC_DEFAULT_STRATEGY )
// ----------
// - ZCodec -
// ----------
class SvStream; class SvStream;
class TOOLS_DLLPUBLIC ZCodec class TOOLS_DLLPUBLIC ZCodec