summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/unotools/itemholderbase.hxx71
-rw-r--r--svl/source/config/cjkoptions.cxx2
-rw-r--r--svl/source/config/ctloptions.cxx2
-rw-r--r--svl/source/config/itemholder2.cxx8
-rw-r--r--svtools/source/config/accessibilityoptions.cxx2
-rw-r--r--svtools/source/config/colorcfg.cxx2
-rw-r--r--svtools/source/config/helpopt.cxx2
-rw-r--r--svtools/source/config/itemholder2.cxx22
-rw-r--r--svtools/source/config/menuoptions.cxx2
-rw-r--r--svtools/source/config/miscopt.cxx2
-rw-r--r--svtools/source/config/printoptions.cxx4
-rw-r--r--unotools/source/config/cmdoptions.cxx2
-rw-r--r--unotools/source/config/compatibility.cxx2
-rw-r--r--unotools/source/config/defaultoptions.cxx2
-rw-r--r--unotools/source/config/dynamicmenuoptions.cxx2
-rw-r--r--unotools/source/config/eventcfg.cxx2
-rw-r--r--unotools/source/config/extendedsecurityoptions.cxx2
-rw-r--r--unotools/source/config/fontoptions.cxx2
-rw-r--r--unotools/source/config/historyoptions.cxx2
-rw-r--r--unotools/source/config/itemholder1.cxx52
-rw-r--r--unotools/source/config/lingucfg.cxx2
-rw-r--r--unotools/source/config/misccfg.cxx2
-rw-r--r--unotools/source/config/moduleoptions.cxx2
-rw-r--r--unotools/source/config/optionsdlg.cxx2
-rw-r--r--unotools/source/config/pathoptions.cxx2
-rw-r--r--unotools/source/config/printwarningoptions.cxx2
-rw-r--r--unotools/source/config/saveopt.cxx2
-rw-r--r--unotools/source/config/securityoptions.cxx2
-rw-r--r--unotools/source/config/syslocaleoptions.cxx2
-rw-r--r--unotools/source/config/useroptions.cxx2
-rw-r--r--unotools/source/config/viewoptions.cxx16
31 files changed, 99 insertions, 124 deletions
diff --git a/include/unotools/itemholderbase.hxx b/include/unotools/itemholderbase.hxx
index b8b075c21e19..13a11f7e5789 100644
--- a/include/unotools/itemholderbase.hxx
+++ b/include/unotools/itemholderbase.hxx
@@ -30,63 +30,58 @@ struct ItemHolderMutexBase
::osl::Mutex m_aLock;
};
-enum EItem
+enum class EItem
{
- E_ACCESSIBILITYOPTIONS , // 2
- E_APEARCFG , // 2
+ AccessibilityOptions , // 2
- E_CJKOPTIONS , // 2
- E_CMDOPTIONS ,
- E_COLORCFG , // 2
- E_COMPATIBILITY ,
- E_CTLOPTIONS , // 2
+ CJKOptions , // 2
+ CmdOptions ,
+ ColorConfig , // 2
+ Compatibility ,
+ CTLOptions , // 2
- E_DEFAULTOPTIONS ,
- E_DYNAMICMENUOPTIONS ,
+ DefaultOptions ,
+ DynamicMenuOptions ,
- E_EVENTCFG ,
- E_EXTENDEDSECURITYOPTIONS ,
+ EventConfig ,
+ ExtendedSecurityOptions ,
- E_FLTRCFG ,
- E_FONTOPTIONS ,
- E_FONTSUBSTCONFIG , // 2
+ FontOptions ,
- E_HELPOPTIONS , // 2
- E_HISTORYOPTIONS ,
+ HelpOptions , // 2
+ HistoryOptions ,
- E_LANGUAGEOPTIONS , // 2
- E_LINGUCFG ,
+ LinguConfig ,
- E_MENUOPTIONS ,
- E_MISCCFG , // 2
- E_MISCOPTIONS ,
- E_MODULEOPTIONS ,
+ MenuOptions ,
+ MiscConfig , // 2
+ MiscOptions ,
+ ModuleOptions ,
- E_OPTIONSDLGOPTIONS ,
+ OptionsDialogOptions ,
- E_PATHOPTIONS ,
- E_PRINTOPTIONS , // 2
- E_PRINTFILEOPTIONS , // 2
- E_PRINTWARNINGOPTIONS ,
+ PathOptions ,
+ PrintOptions , // 2
+ PrintFileOptions , // 2
+ PrintWarningOptions ,
- E_SAVEOPTIONS ,
- E_SEARCHOPT ,
- E_SECURITYOPTIONS ,
- E_SYSLOCALEOPTIONS , // 2
+ SaveOptions ,
+ SecurityOptions ,
+ SysLocaleOptions , // 2
- E_USEROPTIONS , // 2
+ UserOptions , // 2
- E_VIEWOPTIONS_DIALOG ,
- E_VIEWOPTIONS_TABDIALOG ,
- E_VIEWOPTIONS_TABPAGE ,
- E_VIEWOPTIONS_WINDOW
+ ViewOptionsDialog ,
+ ViewOptionsTabDialog ,
+ ViewOptionsTabPage ,
+ ViewOptionsWindow
};
struct TItemInfo
{
TItemInfo()
: pItem(nullptr)
- , eItem(E_USEROPTIONS)
+ , eItem(EItem::UserOptions)
{
}
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx
index c1dede974434..405e8b93eb7c 100644
--- a/svl/source/config/cjkoptions.cxx
+++ b/svl/source/config/cjkoptions.cxx
@@ -389,7 +389,7 @@ SvtCJKOptions::SvtCJKOptions(bool bDontLoad)
{
pImpl = std::make_shared<SvtCJKOptions_Impl>();
g_pCJKOptions = pImpl;
- ItemHolder2::holdConfigItem(E_CJKOPTIONS);
+ ItemHolder2::holdConfigItem(EItem::CJKOptions);
}
if( !bDontLoad && !pImpl->IsLoaded())
diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx
index 3160af3651c1..c4fffc504560 100644
--- a/svl/source/config/ctloptions.cxx
+++ b/svl/source/config/ctloptions.cxx
@@ -354,7 +354,7 @@ SvtCTLOptions::SvtCTLOptions( bool bDontLoad )
{
m_pImpl = std::make_shared<SvtCTLOptions_Impl>();
g_pCTLOptions = m_pImpl;
- ItemHolder2::holdConfigItem(E_CTLOPTIONS);
+ ItemHolder2::holdConfigItem(EItem::CTLOptions);
}
if( !bDontLoad && !m_pImpl->IsLoaded() )
diff --git a/svl/source/config/itemholder2.cxx b/svl/source/config/itemholder2.cxx
index 27344aa60878..fc12e7681ce4 100644
--- a/svl/source/config/itemholder2.cxx
+++ b/svl/source/config/itemholder2.cxx
@@ -118,18 +118,14 @@ void ItemHolder2::impl_newItem(TItemInfo& rItem)
{
switch(rItem.eItem)
{
- case E_CJKOPTIONS :
+ case EItem::CJKOptions :
rItem.pItem = new SvtCJKOptions();
break;
- case E_CTLOPTIONS :
+ case EItem::CTLOptions :
rItem.pItem = new SvtCTLOptions();
break;
- case E_LANGUAGEOPTIONS :
-// capsulate CTL and CJL options ! rItem.pItem = new SvtLanguageOptions();
- break;
-
default:
OSL_ASSERT(false);
break;
diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx
index 5c2fc3366acc..3b9873df8dd3 100644
--- a/svtools/source/config/accessibilityoptions.cxx
+++ b/svtools/source/config/accessibilityoptions.cxx
@@ -363,7 +363,7 @@ SvtAccessibilityOptions::SvtAccessibilityOptions()
if(!sm_pSingleImplConfig)
{
sm_pSingleImplConfig = new SvtAccessibilityOptions_Impl;
- svtools::ItemHolder2::holdConfigItem(E_ACCESSIBILITYOPTIONS);
+ svtools::ItemHolder2::holdConfigItem(EItem::AccessibilityOptions);
}
++sm_nAccessibilityRefCount;
}
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index 73a7339d5c1d..02389ddd4601 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -376,7 +376,7 @@ ColorConfig::ColorConfig()
if ( !m_pImpl )
{
m_pImpl = new ColorConfig_Impl;
- svtools::ItemHolder2::holdConfigItem(E_COLORCFG);
+ svtools::ItemHolder2::holdConfigItem(EItem::ColorConfig);
}
++nColorRefCount_Impl;
m_pImpl->AddListener(this);
diff --git a/svtools/source/config/helpopt.cxx b/svtools/source/config/helpopt.cxx
index b3d93847a7e8..3f34fa1ba25d 100644
--- a/svtools/source/config/helpopt.cxx
+++ b/svtools/source/config/helpopt.cxx
@@ -266,7 +266,7 @@ SvtHelpOptions::SvtHelpOptions()
{
pImpl = std::make_shared<SvtHelpOptions_Impl>();
g_pHelpOptions = pImpl;
- svtools::ItemHolder2::holdConfigItem(E_HELPOPTIONS);
+ svtools::ItemHolder2::holdConfigItem(EItem::HelpOptions);
}
}
diff --git a/svtools/source/config/itemholder2.cxx b/svtools/source/config/itemholder2.cxx
index 81cc65621965..638120cf1515 100644
--- a/svtools/source/config/itemholder2.cxx
+++ b/svtools/source/config/itemholder2.cxx
@@ -133,39 +133,31 @@ void ItemHolder2::impl_newItem(TItemInfo& rItem)
{
switch(rItem.eItem)
{
- case E_ACCESSIBILITYOPTIONS :
+ case EItem::AccessibilityOptions :
rItem.pItem = new SvtAccessibilityOptions();
break;
- case E_APEARCFG :
-// no ref count rItem.pItem = new SvtTabAppearanceCfg();
- break;
-
- case E_COLORCFG :
+ case EItem::ColorConfig :
rItem.pItem = new ::svtools::ColorConfig();
break;
- case E_FONTSUBSTCONFIG :
-// no ref count rItem.pItem = new SvtFontSubstConfig();
- break;
-
- case E_HELPOPTIONS :
+ case EItem::HelpOptions :
rItem.pItem = new SvtHelpOptions();
break;
- case E_MENUOPTIONS :
+ case EItem::MenuOptions :
rItem.pItem = new SvtMenuOptions();
break;
- case E_PRINTOPTIONS :
+ case EItem::PrintOptions :
rItem.pItem = new SvtPrinterOptions();
break;
- case E_PRINTFILEOPTIONS :
+ case EItem::PrintFileOptions :
rItem.pItem = new SvtPrintFileOptions();
break;
- case E_MISCOPTIONS :
+ case EItem::MiscOptions :
rItem.pItem = new SvtMiscOptions();
break;
diff --git a/svtools/source/config/menuoptions.cxx b/svtools/source/config/menuoptions.cxx
index d00632515ab1..cc8b64b760bc 100644
--- a/svtools/source/config/menuoptions.cxx
+++ b/svtools/source/config/menuoptions.cxx
@@ -358,7 +358,7 @@ SvtMenuOptions::SvtMenuOptions()
{
m_pImpl = std::make_shared<SvtMenuOptions_Impl>();
g_pMenuOptions = m_pImpl;
- svtools::ItemHolder2::holdConfigItem(E_MENUOPTIONS);
+ svtools::ItemHolder2::holdConfigItem(EItem::MenuOptions);
}
}
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index e0cc26f1eb1f..f7e4e98f8c66 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -754,7 +754,7 @@ SvtMiscOptions::SvtMiscOptions()
{
m_pImpl = std::make_shared<SvtMiscOptions_Impl>();
g_pMiscOptions = m_pImpl;
- svtools::ItemHolder2::holdConfigItem(E_MISCOPTIONS);
+ svtools::ItemHolder2::holdConfigItem(EItem::MiscOptions);
}
}
diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx
index 34f2bb96a9e4..be4a73644d4d 100644
--- a/svtools/source/config/printoptions.cxx
+++ b/svtools/source/config/printoptions.cxx
@@ -721,7 +721,7 @@ SvtPrinterOptions::SvtPrinterOptions()
OUString aRootPath( ROOTNODE_START );
m_pStaticDataContainer = new SvtPrintOptions_Impl( aRootPath += "/Printer" );
pPrinterOptionsDataContainer = m_pStaticDataContainer;
- svtools::ItemHolder2::holdConfigItem(E_PRINTOPTIONS);
+ svtools::ItemHolder2::holdConfigItem(EItem::PrintOptions);
}
SetDataContainer( m_pStaticDataContainer );
@@ -756,7 +756,7 @@ SvtPrintFileOptions::SvtPrintFileOptions()
m_pStaticDataContainer = new SvtPrintOptions_Impl( aRootPath += "/File" );
pPrintFileOptionsDataContainer = m_pStaticDataContainer;
- svtools::ItemHolder2::holdConfigItem(E_PRINTFILEOPTIONS);
+ svtools::ItemHolder2::holdConfigItem(EItem::PrintFileOptions);
}
SetDataContainer( m_pStaticDataContainer );
diff --git a/unotools/source/config/cmdoptions.cxx b/unotools/source/config/cmdoptions.cxx
index 91b62a5dfd01..ff2f6445424c 100644
--- a/unotools/source/config/cmdoptions.cxx
+++ b/unotools/source/config/cmdoptions.cxx
@@ -305,7 +305,7 @@ SvtCommandOptions::SvtCommandOptions()
{
m_pImpl = std::make_shared<SvtCommandOptions_Impl>();
g_pCommandOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_CMDOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::CmdOptions);
}
}
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx
index f5767900c8f2..d96947c5eb42 100644
--- a/unotools/source/config/compatibility.cxx
+++ b/unotools/source/config/compatibility.cxx
@@ -321,7 +321,7 @@ SvtCompatibilityOptions::SvtCompatibilityOptions()
{
m_pImpl = std::make_shared<SvtCompatibilityOptions_Impl>();
theOptions = m_pImpl;
- ItemHolder1::holdConfigItem( E_COMPATIBILITY );
+ ItemHolder1::holdConfigItem( EItem::Compatibility );
}
}
diff --git a/unotools/source/config/defaultoptions.cxx b/unotools/source/config/defaultoptions.cxx
index 160df5fa8ec6..47f1ce54e291 100644
--- a/unotools/source/config/defaultoptions.cxx
+++ b/unotools/source/config/defaultoptions.cxx
@@ -335,7 +335,7 @@ SvtDefaultOptions::SvtDefaultOptions()
{
pImpl = std::make_shared<SvtDefaultOptions_Impl>();
g_pOptions = pImpl;
- ItemHolder1::holdConfigItem(E_DEFAULTOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::DefaultOptions);
}
}
diff --git a/unotools/source/config/dynamicmenuoptions.cxx b/unotools/source/config/dynamicmenuoptions.cxx
index fefc9202b979..f0337ad37cf6 100644
--- a/unotools/source/config/dynamicmenuoptions.cxx
+++ b/unotools/source/config/dynamicmenuoptions.cxx
@@ -581,7 +581,7 @@ SvtDynamicMenuOptions::SvtDynamicMenuOptions()
{
m_pImpl = std::make_shared<SvtDynamicMenuOptions_Impl>();
g_pDynamicMenuOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_DYNAMICMENUOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::DynamicMenuOptions);
}
}
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index 0965269b44e6..138df08a62f2 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -328,7 +328,7 @@ GlobalEventConfig::GlobalEventConfig()
if( m_pImpl == nullptr )
{
m_pImpl = new GlobalEventConfig_Impl;
- ItemHolder1::holdConfigItem(E_EVENTCFG);
+ ItemHolder1::holdConfigItem(EItem::EventConfig);
}
}
diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx
index 1e3b8236a7b9..fccc785a2003 100644
--- a/unotools/source/config/extendedsecurityoptions.cxx
+++ b/unotools/source/config/extendedsecurityoptions.cxx
@@ -255,7 +255,7 @@ SvtExtendedSecurityOptions::SvtExtendedSecurityOptions()
{
m_pImpl = std::make_shared<SvtExtendedSecurityOptions_Impl>();
g_pExtendedSecurityOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_EXTENDEDSECURITYOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::ExtendedSecurityOptions);
}
}
diff --git a/unotools/source/config/fontoptions.cxx b/unotools/source/config/fontoptions.cxx
index fef4ddedb4f6..194dff8e4417 100644
--- a/unotools/source/config/fontoptions.cxx
+++ b/unotools/source/config/fontoptions.cxx
@@ -259,7 +259,7 @@ SvtFontOptions::SvtFontOptions()
{
m_pImpl = std::make_shared<SvtFontOptions_Impl>();
g_pFontOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_FONTOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::FontOptions);
}
}
diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx
index 759e7b414d0c..45cce2ab9f4a 100644
--- a/unotools/source/config/historyoptions.cxx
+++ b/unotools/source/config/historyoptions.cxx
@@ -527,7 +527,7 @@ SvtHistoryOptions::SvtHistoryOptions()
{
m_pImpl = std::make_shared<SvtHistoryOptions_Impl>();
g_pHistoryOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_HISTORYOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::HistoryOptions);
}
}
diff --git a/unotools/source/config/itemholder1.cxx b/unotools/source/config/itemholder1.cxx
index 76e06437bf5e..d8c9af0d3dd3 100644
--- a/unotools/source/config/itemholder1.cxx
+++ b/unotools/source/config/itemholder1.cxx
@@ -133,99 +133,91 @@ void ItemHolder1::impl_newItem(TItemInfo& rItem)
{
switch(rItem.eItem)
{
- case E_CMDOPTIONS :
+ case EItem::CmdOptions :
rItem.pItem = new SvtCommandOptions();
break;
- case E_COMPATIBILITY :
+ case EItem::Compatibility :
rItem.pItem = new SvtCompatibilityOptions();
break;
- case E_DEFAULTOPTIONS :
+ case EItem::DefaultOptions :
rItem.pItem = new SvtDefaultOptions();
break;
- case E_DYNAMICMENUOPTIONS :
+ case EItem::DynamicMenuOptions :
rItem.pItem = new SvtDynamicMenuOptions();
break;
- case E_EVENTCFG :
+ case EItem::EventConfig :
//rItem.pItem = new GlobalEventConfig();
break;
- case E_EXTENDEDSECURITYOPTIONS :
+ case EItem::ExtendedSecurityOptions :
rItem.pItem = new SvtExtendedSecurityOptions();
break;
- case E_FLTRCFG :
-// no ref count rItem.pItem = new SvtFilterOptions();
- break;
-
- case E_FONTOPTIONS :
+ case EItem::FontOptions :
rItem.pItem = new SvtFontOptions();
break;
- case E_HISTORYOPTIONS :
+ case EItem::HistoryOptions :
rItem.pItem = new SvtHistoryOptions();
break;
- case E_LINGUCFG :
+ case EItem::LinguConfig :
rItem.pItem = new SvtLinguConfig();
break;
- case E_MODULEOPTIONS :
+ case EItem::ModuleOptions :
rItem.pItem = new SvtModuleOptions();
break;
- case E_OPTIONSDLGOPTIONS :
+ case EItem::OptionsDialogOptions :
rItem.pItem = new SvtOptionsDialogOptions();
break;
- case E_PATHOPTIONS :
+ case EItem::PathOptions :
rItem.pItem = new SvtPathOptions();
break;
- case E_PRINTWARNINGOPTIONS :
+ case EItem::PrintWarningOptions :
rItem.pItem = new SvtPrintWarningOptions();
break;
- case E_MISCCFG :
+ case EItem::MiscConfig :
rItem.pItem = new ::utl::MiscCfg();
break;
- case E_SAVEOPTIONS :
+ case EItem::SaveOptions :
rItem.pItem = new SvtSaveOptions();
break;
- case E_SEARCHOPT :
-// no ref count rItem.pItem = new SvtSearchOptions();
- break;
-
- case E_SECURITYOPTIONS :
+ case EItem::SecurityOptions :
rItem.pItem = new SvtSecurityOptions();
break;
- case E_VIEWOPTIONS_DIALOG :
+ case EItem::ViewOptionsDialog :
rItem.pItem = new SvtViewOptions(E_DIALOG, OUString());
break;
- case E_VIEWOPTIONS_TABDIALOG :
+ case EItem::ViewOptionsTabDialog :
rItem.pItem = new SvtViewOptions(E_TABDIALOG, OUString());
break;
- case E_VIEWOPTIONS_TABPAGE :
+ case EItem::ViewOptionsTabPage :
rItem.pItem = new SvtViewOptions(E_TABPAGE, OUString());
break;
- case E_VIEWOPTIONS_WINDOW :
+ case EItem::ViewOptionsWindow :
rItem.pItem = new SvtViewOptions(E_WINDOW, OUString());
break;
- case E_USEROPTIONS :
+ case EItem::UserOptions :
rItem.pItem = new SvtUserOptions();
break;
- case E_SYSLOCALEOPTIONS :
+ case EItem::SysLocaleOptions :
rItem.pItem = new SvtSysLocaleOptions();
break;
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index f89ae28b26b9..95f64c1a922f 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -809,7 +809,7 @@ SvtLinguConfigItem & SvtLinguConfig::GetConfigItem()
if (!pCfgItem)
{
pCfgItem = new SvtLinguConfigItem;
- ItemHolder1::holdConfigItem(E_LINGUCFG);
+ ItemHolder1::holdConfigItem(EItem::LinguConfig);
}
return *pCfgItem;
}
diff --git a/unotools/source/config/misccfg.cxx b/unotools/source/config/misccfg.cxx
index c36630c02349..b11b9c499d31 100644
--- a/unotools/source/config/misccfg.cxx
+++ b/unotools/source/config/misccfg.cxx
@@ -194,7 +194,7 @@ MiscCfg::MiscCfg( )
{
m_pImpl = std::make_shared<SfxMiscCfg>();
g_pOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_MISCCFG);
+ ItemHolder1::holdConfigItem(EItem::MiscConfig);
}
m_pImpl->AddListener(this);
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx
index 525523ca7924..0c759de4accd 100644
--- a/unotools/source/config/moduleoptions.cxx
+++ b/unotools/source/config/moduleoptions.cxx
@@ -801,7 +801,7 @@ SvtModuleOptions::SvtModuleOptions()
{
m_pImpl = std::make_shared<SvtModuleOptions_Impl>();
g_pModuleOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_MODULEOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::ModuleOptions);
}
}
diff --git a/unotools/source/config/optionsdlg.cxx b/unotools/source/config/optionsdlg.cxx
index 0b819111b0b6..7d1f1846b0bf 100644
--- a/unotools/source/config/optionsdlg.cxx
+++ b/unotools/source/config/optionsdlg.cxx
@@ -208,7 +208,7 @@ SvtOptionsDialogOptions::SvtOptionsDialogOptions()
{
pOptions = new SvtOptionsDlgOptions_Impl;
- ItemHolder1::holdConfigItem( E_OPTIONSDLGOPTIONS );
+ ItemHolder1::holdConfigItem( EItem::OptionsDialogOptions );
}
m_pImp = pOptions;
}
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index 5accec7861a4..6bdf6e0606d5 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -459,7 +459,7 @@ SvtPathOptions::SvtPathOptions()
{
pImpl = std::make_shared<SvtPathOptions_Impl>();
g_pOptions = pImpl;
- ItemHolder1::holdConfigItem(E_PATHOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::PathOptions);
}
}
diff --git a/unotools/source/config/printwarningoptions.cxx b/unotools/source/config/printwarningoptions.cxx
index 49363aab3322..885e588e0bb8 100644
--- a/unotools/source/config/printwarningoptions.cxx
+++ b/unotools/source/config/printwarningoptions.cxx
@@ -233,7 +233,7 @@ SvtPrintWarningOptions::SvtPrintWarningOptions()
{
m_pImpl = std::make_shared<SvtPrintWarningOptions_Impl>();
g_pPrintWarningOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_PRINTWARNINGOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::PrintWarningOptions);
}
}
diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx
index 64db684a7ff1..1dff44cee452 100644
--- a/unotools/source/config/saveopt.cxx
+++ b/unotools/source/config/saveopt.cxx
@@ -806,7 +806,7 @@ SvtSaveOptions::SvtSaveOptions()
pOptions->pSaveOpt = new SvtSaveOptions_Impl;
pOptions->pLoadOpt = new SvtLoadOptions_Impl;
- ItemHolder1::holdConfigItem(E_SAVEOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::SaveOptions);
}
++nRefCount;
pImp = pOptions;
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index f2b57ed701dd..7c51561d75eb 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -944,7 +944,7 @@ SvtSecurityOptions::SvtSecurityOptions()
m_pImpl = std::make_shared<SvtSecurityOptions_Impl>();
g_pSecurityOptions = m_pImpl;
- ItemHolder1::holdConfigItem(E_SECURITYOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::SecurityOptions);
}
}
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx
index 08a1e7ba7aec..30ddad1c06fc 100644
--- a/unotools/source/config/syslocaleoptions.cxx
+++ b/unotools/source/config/syslocaleoptions.cxx
@@ -513,7 +513,7 @@ SvtSysLocaleOptions::SvtSysLocaleOptions()
pImpl = std::make_shared<SvtSysLocaleOptions_Impl>();
g_pSysLocaleOptions = pImpl;
if (!utl::ConfigManager::IsAvoidConfig())
- ItemHolder1::holdConfigItem(E_SYSLOCALEOPTIONS);
+ ItemHolder1::holdConfigItem(EItem::SysLocaleOptions);
}
pImpl->AddListener(this);
}
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx
index 6459495157f7..e9c20cfd0abd 100644
--- a/unotools/source/config/useroptions.cxx
+++ b/unotools/source/config/useroptions.cxx
@@ -238,7 +238,7 @@ SvtUserOptions::SvtUserOptions ()
{
xImpl.reset(new Impl);
xSharedImpl = xImpl;
- ItemHolder1::holdConfigItem(E_USEROPTIONS);
+ ItemHolder1::holdConfigItem(EItem::UserOptions);
}
xImpl = xSharedImpl.lock();
xImpl->AddListener(this);
diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx
index 2b1c845cc524..e37d98d97b9b 100644
--- a/unotools/source/config/viewoptions.cxx
+++ b/unotools/source/config/viewoptions.cxx
@@ -589,7 +589,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
{
//m_pDataContainer_Dialogs = new SvtViewDialogOptions_Impl( LIST_DIALOGS );
m_pDataContainer_Dialogs = new SvtViewOptionsBase_Impl( LIST_DIALOGS );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_DIALOG);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsDialog);
}
}
break;
@@ -600,7 +600,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
if( m_nRefCount_TabDialogs == 1 )
{
m_pDataContainer_TabDialogs = new SvtViewOptionsBase_Impl( LIST_TABDIALOGS );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_TABDIALOG);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsTabDialog);
}
}
break;
@@ -611,7 +611,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
if( m_nRefCount_TabPages == 1 )
{
m_pDataContainer_TabPages = new SvtViewOptionsBase_Impl( LIST_TABPAGES );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_TABPAGE);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsTabPage);
}
}
break;
@@ -622,7 +622,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
if( m_nRefCount_Windows == 1 )
{
m_pDataContainer_Windows = new SvtViewOptionsBase_Impl( LIST_WINDOWS );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_WINDOW);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsWindow);
}
}
break;
@@ -1005,22 +1005,22 @@ void SvtViewOptions::AcquireOptions()
if( ++m_nRefCount_Dialogs == 1 )
{
m_pDataContainer_Dialogs = new SvtViewOptionsBase_Impl( LIST_DIALOGS );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_DIALOG);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsDialog);
}
if( ++m_nRefCount_TabDialogs == 1 )
{
m_pDataContainer_TabDialogs = new SvtViewOptionsBase_Impl( LIST_TABDIALOGS );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_TABDIALOG);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsTabDialog);
}
if( ++m_nRefCount_TabPages == 1 )
{
m_pDataContainer_TabPages = new SvtViewOptionsBase_Impl( LIST_TABPAGES );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_TABPAGE);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsTabPage);
}
if( ++m_nRefCount_Windows == 1 )
{
m_pDataContainer_Windows = new SvtViewOptionsBase_Impl( LIST_WINDOWS );
- ItemHolder1::holdConfigItem(E_VIEWOPTIONS_WINDOW);
+ ItemHolder1::holdConfigItem(EItem::ViewOptionsWindow);
}
}