diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-02-26 13:00:31 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-02-26 13:00:31 +0000 |
commit | 09c918f5fab7f74fed0497257dc2c8e7de629eb3 (patch) | |
tree | 82017680e096df508205b28b8ef1031822a66491 /sw/inc/docufld.hxx | |
parent | b4b5cb2fc86686995c4a4bf9d54212ce040eefea (diff) |
INTEGRATION: CWS custommeta (1.12.30); FILE MERGED
2008/02/26 10:35:11 mst 1.12.30.2: RESYNC: (1.12-1.13); FILE MERGED
2008/01/18 10:24:09 mst 1.12.30.1: remove support for field types DI_INFO[1-4]
- sw/inc/docufld.hxx, sw/source/core/fields/docufld.cxx:
+ nsSwDocInfoSubType: removed constants DI_INFO[1-4]
+ use XDocumentProperties instead of SfxDocumentInfo
+ adapt to SwDoc interface change
- sw/source/ui/fldui/{flddinf.cxx,fldedt.cxx,fldmgr.cxx,fldtdlg.cxx}:
+ remove support for field types DI_INFO[1-4]
+ use XDocumentProperties instead of SfxDocumentInfo
+ fix bug in SwFldDokInfPage::FillItemSet: name of custom property was lost
- sw/source/ui/fldui/makefile.mk:
+ enable exceptions for fldedt.cxx, fldtdlg.cxx
- sw/source/ui/inc/utlui.hrc, sw/source/ui/utlui/initui.src:
+ remove FLD_DOCINFO_INFO[1-4]
Diffstat (limited to 'sw/inc/docufld.hxx')
-rw-r--r-- | sw/inc/docufld.hxx | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index 1fd5bd0e47b5..0c3ef47683d6 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -4,9 +4,9 @@ * * $RCSfile: docufld.hxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2008-02-19 13:34:02 $ + * last change: $Author: obo $ $Date: 2008-02-26 14:00:31 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -87,22 +87,23 @@ enum SwDocStatSubType typedef sal_uInt16 SwDocInfoSubType; namespace nsSwDocInfoSubType { + // NB: these must denote consecutive integers! + // NB2: these are extended by 4 DI_INFO values for backward compatibility + // in filter/html/htmlfld.cxx, so make sure that DI_SUBTYPE_END + // really is the end, and is at least 4 less than DI_SUB_*! const SwDocInfoSubType DI_SUBTYPE_BEGIN = 0; const SwDocInfoSubType DI_TITEL = DI_SUBTYPE_BEGIN; const SwDocInfoSubType DI_THEMA = 1; const SwDocInfoSubType DI_KEYS = 2; const SwDocInfoSubType DI_COMMENT = 3; - const SwDocInfoSubType DI_INFO1 = 4; - const SwDocInfoSubType DI_INFO2 = 5; - const SwDocInfoSubType DI_INFO3 = 6; - const SwDocInfoSubType DI_INFO4 = 7; - const SwDocInfoSubType DI_CREATE = 8; - const SwDocInfoSubType DI_CHANGE = 9; - const SwDocInfoSubType DI_PRINT = 10; - const SwDocInfoSubType DI_DOCNO = 11; - const SwDocInfoSubType DI_EDIT = 12; - const SwDocInfoSubType DI_CUSTOM = 13; - const SwDocInfoSubType DI_SUBTYPE_END = 14; + const SwDocInfoSubType DI_CREATE = 4; + const SwDocInfoSubType DI_CHANGE = 5; + const SwDocInfoSubType DI_PRINT = 6; + const SwDocInfoSubType DI_DOCNO = 7; + const SwDocInfoSubType DI_EDIT = 8; + const SwDocInfoSubType DI_CUSTOM = 9; + const SwDocInfoSubType DI_SUBTYPE_END = 10; + const SwDocInfoSubType DI_SUB_AUTHOR = 0x0100; const SwDocInfoSubType DI_SUB_TIME = 0x0200; @@ -591,7 +592,7 @@ public: virtual String Expand() const; virtual String GetCntnt(BOOL bName = FALSE) const; virtual SwField* Copy() const; - String GetName() { return aName; } + String GetName() const { return aName; } inline void SetExpansion(const String& rStr) { aContent = rStr; } virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); |