diff options
author | Caolán McNamara <cmc@openoffice.org> | 2002-08-14 08:29:40 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2002-08-14 08:29:40 +0000 |
commit | 542a0d7260e4767d8aff839eb593e748a82ced48 (patch) | |
tree | 04ccb75acc8518c17b3a8e24719c292ce5280ac0 /sw/source/filter/ww8/ww8struc.hxx | |
parent | 01ecf5194778e4d91bb78b9c8dff99009a2f586e (diff) |
#100044# Cleanup for optimization defines->enums
Diffstat (limited to 'sw/source/filter/ww8/ww8struc.hxx')
-rw-r--r-- | sw/source/filter/ww8/ww8struc.hxx | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/sw/source/filter/ww8/ww8struc.hxx b/sw/source/filter/ww8/ww8struc.hxx index f2a3452d57a8..efc19d872358 100644 --- a/sw/source/filter/ww8/ww8struc.hxx +++ b/sw/source/filter/ww8/ww8struc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ww8struc.hxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: cmc $ $Date: 2002-08-12 10:53:13 $ + * last change: $Author: cmc $ $Date: 2002-08-14 09:29:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,10 +66,6 @@ #include <tools/string.hxx> #endif - -// max. Anzahl der Listen-Level in WW8: 1..9 -#define nWW8MaxListLevel 9 - inline void Set_UInt8( BYTE *& p, UINT8 n ) { ByteToSVBT8( n, *(SVBT8*)p ); @@ -137,6 +133,8 @@ struct WW8_STD // the UPEs are not stored on the file; they are a cache of the based-on // chain // char grupe[]; +public: + enum Limits {STI_USER = 0x0FFE}; }; /* @@ -209,24 +207,28 @@ struct WW8_BRC // Border Code typedef WW8_BRC WW8_BRC5[5]; // 5 * Border Code -#define WW8_TOP 0 -#define WW8_LEFT 1 -#define WW8_BOT 2 -#define WW8_RIGHT 3 -#define WW8_BETW 4 +enum BRC_Sides +{ + WW8_TOP = 0, WW8_LEFT = 1, WW8_BOT = 2, WW8_RIGHT = 3, WW8_BETW = 4 +}; -class WW8_BordersSO // fuer StarOffice-Border Code +class WW8_BordersSO // for StarOffice-Border Code { public: - USHORT Out; - USHORT In; - USHORT Dist; - static const WW8_BordersSO &Get0x01LineMatch(USHORT nIdx); + USHORT mnOut; + USHORT mnIn; + USHORT mnDist; +public: + enum eBorderCode + { + single0, single1, single2, single3, single4, + double0, double1, double2, double3, double4, double5, double6, + double7, double8, double9, double10, + none + }; + static const WW8_BordersSO &Get0x01LineMatch(eBorderCode nIdx); }; -// Beginn des DOUBLE_LINE Abschnitts in meiner Liste -#define WW8_DECL_LINETAB_OFS_DOUBLE 5 - /* Document Typography Info (DOPTYPOGRAPHY) These options are Far East only, and are accessible through the Typography tab of the Tools/Options dialog. |