diff options
author | Oliver Specht <os@openoffice.org> | 2001-06-25 13:46:04 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-06-25 13:46:04 +0000 |
commit | cbde0661e8331f9f1653e21050db66ba4e278d5e (patch) | |
tree | efeb5eab5b6ec6d46e2a38e8cb8e69b9f2be093d /sw/source/ui/config/modcfg.cxx | |
parent | 2945248e24dea6c4a67890b1a0e71ff5fd2f7f10 (diff) |
#88352# enable ConfigItems to release their tree
Diffstat (limited to 'sw/source/ui/config/modcfg.cxx')
-rw-r--r-- | sw/source/ui/config/modcfg.cxx | 68 |
1 files changed, 10 insertions, 58 deletions
diff --git a/sw/source/ui/config/modcfg.cxx b/sw/source/ui/config/modcfg.cxx index 56439f33dc55..caa50a8089cb 100644 --- a/sw/source/ui/config/modcfg.cxx +++ b/sw/source/ui/config/modcfg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: modcfg.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: os $ $Date: 2001-05-22 11:12:40 $ + * last change: $Author: os $ $Date: 2001-06-25 14:46:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -345,7 +345,8 @@ const Sequence<OUString>& SwRevisionConfig::GetPropertyNames() -----------------------------------------------------------------------*/ SwRevisionConfig::SwRevisionConfig() : - ConfigItem(C2U("Office.Writer/Revision")) + ConfigItem(C2U("Office.Writer/Revision"), + CONFIG_MODE_DELAYED_UPDATE|CONFIG_MODE_RELEASE_TREE) { aInsertAttr.nItemId = SID_ATTR_CHAR_UNDERLINE; aInsertAttr.nAttr = UNDERLINE_SINGLE; @@ -357,12 +358,6 @@ SwRevisionConfig::SwRevisionConfig() : aFormatAttr.nAttr = WEIGHT_BOLD; aFormatAttr.nColor = COL_BLACK; -#if SUPD>615 - EnableNotification(GetPropertyNames()); -#else - Sequence <OUString> aNames(GetPropertyNames()); - EnableNotification(aNames); -#endif Load(); } /*-- 10.10.00 16:22:23--------------------------------------------------- @@ -374,13 +369,6 @@ SwRevisionConfig::~SwRevisionConfig() /*-- 10.10.00 16:22:56--------------------------------------------------- -----------------------------------------------------------------------*/ -void SwRevisionConfig::Notify( const Sequence<OUString>& aPropertyNames) -{ - Load(); -} -/*-- 10.10.00 16:22:56--------------------------------------------------- - - -----------------------------------------------------------------------*/ sal_Int32 lcl_ConvertAttrToCfg(const AuthorCharAttr& rAttr) { sal_Int32 nRet = 0; @@ -587,7 +575,8 @@ const Sequence<OUString>& SwInsertConfig::GetPropertyNames() -----------------------------------------------------------------------*/ SwInsertConfig::SwInsertConfig(sal_Bool bWeb) : - ConfigItem(bWeb ? C2U("Office.WriterWeb/Insert") : C2U("Office.Writer/Insert")), + ConfigItem(bWeb ? C2U("Office.WriterWeb/Insert") : C2U("Office.Writer/Insert"), + CONFIG_MODE_DELAYED_UPDATE|CONFIG_MODE_RELEASE_TREE), bIsWeb(bWeb), pCapOptions(0), pOLEMiscOpt(0) @@ -600,12 +589,6 @@ SwInsertConfig::SwInsertConfig(sal_Bool bWeb) : if(!bIsWeb) pCapOptions = new InsCaptionOptArr; -#if SUPD>615 - EnableNotification(GetPropertyNames()); -#else - Sequence <OUString> aNames(GetPropertyNames()); - EnableNotification(aNames); -#endif Load(); } /*-- 10.10.00 16:22:23--------------------------------------------------- @@ -619,13 +602,6 @@ SwInsertConfig::~SwInsertConfig() /*-- 10.10.00 16:22:56--------------------------------------------------- -----------------------------------------------------------------------*/ -void SwInsertConfig::Notify( const Sequence<OUString>& aPropertyNames) -{ - Load(); -} -/*-- 10.10.00 16:22:56--------------------------------------------------- - - -----------------------------------------------------------------------*/ void lcl_WriteOpt(const InsCaptionOpt& rOpt, Any* pValues, sal_Int32 nProp, sal_Int32 nOffset) { switch(nOffset) @@ -960,14 +936,9 @@ const Sequence<OUString>& SwTableConfig::GetPropertyNames() -----------------------------------------------------------------------*/ SwTableConfig::SwTableConfig(sal_Bool bWeb) : - ConfigItem(bWeb ? C2U("Office.WriterWeb/Table") : C2U("Office.Writer/Table")) + ConfigItem(bWeb ? C2U("Office.WriterWeb/Table") : C2U("Office.Writer/Table"), + CONFIG_MODE_DELAYED_UPDATE|CONFIG_MODE_RELEASE_TREE) { -#if SUPD>615 - EnableNotification(GetPropertyNames()); -#else - Sequence <OUString> aNames(GetPropertyNames()); - EnableNotification(aNames); -#endif Load(); } /*-- 10.10.00 16:22:23--------------------------------------------------- @@ -979,13 +950,6 @@ SwTableConfig::~SwTableConfig() /*-- 10.10.00 16:22:56--------------------------------------------------- -----------------------------------------------------------------------*/ -void SwTableConfig::Notify( const Sequence<OUString>& aPropertyNames) -{ - Load(); -} -/*-- 10.10.00 16:22:56--------------------------------------------------- - - -----------------------------------------------------------------------*/ void SwTableConfig::Commit() { const Sequence<OUString>& aNames = GetPropertyNames(); @@ -1045,7 +1009,8 @@ void SwTableConfig::Load() -----------------------------------------------------------------------*/ SwMiscConfig::SwMiscConfig() : - ConfigItem(C2U("Office.Writer")), + ConfigItem(C2U("Office.Writer"), + CONFIG_MODE_DELAYED_UPDATE|CONFIG_MODE_RELEASE_TREE), bDefaultFontsInCurrDocOnly(sal_False), bShowIndexPreview(sal_False), bGrfToGalleryAsLnk(sal_True), @@ -1054,12 +1019,6 @@ SwMiscConfig::SwMiscConfig() : bIsNameFromColumn(sal_True), nMailingFormats(0) { -#if SUPD>615 - EnableNotification(GetPropertyNames()); -#else - Sequence <OUString> aNames(GetPropertyNames()); - EnableNotification(aNames); -#endif Load(); } /*-- 18.01.01 17:02:47--------------------------------------------------- @@ -1101,13 +1060,6 @@ const Sequence<OUString>& SwMiscConfig::GetPropertyNames() /*-- 18.01.01 17:02:47--------------------------------------------------- -----------------------------------------------------------------------*/ -void SwMiscConfig::Notify( const Sequence<OUString>& rPropertyNames) -{ - Load(); -} -/*-- 18.01.01 17:02:47--------------------------------------------------- - - -----------------------------------------------------------------------*/ void SwMiscConfig::Commit() { const Sequence<OUString>& aNames = GetPropertyNames(); |