diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 18:24:40 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 18:24:40 +0000 |
commit | f7187f2359d50739c5ba055e72915963e1c4a3a1 (patch) | |
tree | b3911e63d7232b98f7868481d92e8945f4a07609 /svx/source/items/flditem.cxx | |
parent | a057874d307f61e0a55969380d61906944f060a4 (diff) |
INTEGRATION: CWS dialogdiet (1.11.480); FILE MERGED
2004/01/19 20:46:48 mba 1.11.480.2: RESYNC: (1.11-1.13); FILE MERGED
2003/11/28 17:49:54 mba 1.11.480.1: #i22972#: let class manager init svx fields itself
Diffstat (limited to 'svx/source/items/flditem.cxx')
-rw-r--r-- | svx/source/items/flditem.cxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/svx/source/items/flditem.cxx b/svx/source/items/flditem.cxx index ef3a073ac788..0e702a070695 100644 --- a/svx/source/items/flditem.cxx +++ b/svx/source/items/flditem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: flditem.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: vg $ $Date: 2004-01-06 15:35:15 $ + * last change: $Author: hr $ $Date: 2004-02-03 19:24:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,6 +83,8 @@ #include "flditem.hxx" #include "adritem.hxx" +#include "svdfield.hxx" + // #90477# #ifndef _TOOLS_TENCCVT_HXX #include <tools/tenccvt.hxx> @@ -1164,4 +1166,23 @@ XubString SvxAuthorField::GetFormatted() const return( aString ); } +static SvClassManager* pClassMgr=0; + +SvClassManager& SvxFieldItem::GetClassManager() +{ + if ( !pClassMgr ) + { + pClassMgr = new SvClassManager; + pClassMgr->SV_CLASS_REGISTER( SvxFieldData ); + pClassMgr->SV_CLASS_REGISTER( SvxURLField ); + pClassMgr->SV_CLASS_REGISTER( SvxDateField ); + pClassMgr->SV_CLASS_REGISTER( SvxPageField ); + pClassMgr->SV_CLASS_REGISTER( SvxTimeField ); + pClassMgr->SV_CLASS_REGISTER( SvxExtTimeField ); + pClassMgr->SV_CLASS_REGISTER( SvxExtFileField ); + pClassMgr->SV_CLASS_REGISTER( SvxAuthorField ); + } + + return *pClassMgr; +} |