diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-18 11:22:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-18 12:46:35 +0200 |
commit | 1c73135493e844c04446f58e7001920381787317 (patch) | |
tree | 99bef7055d1af5d64d9b3556834ac8409bead81d /cui | |
parent | 0d3d8af033fa11730abf6a0fac13f23eb0b0403b (diff) |
convert SvLBoxButtonKind to scoped enum
Change-Id: Ia8e19473132cf95837acc499c5831b5ca8786a68
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/fontsubs.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optfltr.cxx | 8 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 4 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index c6f906902987..80b11f4dc149 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -126,8 +126,8 @@ SvTreeListEntry* SvxFontSubstTabPage::CreateEntry(OUString& rFont1, OUString& rF pEntry->AddItem(o3tl::make_unique<SvLBoxContextBmp>(Image(), Image(), false)); // otherwise boom! - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); pEntry->AddItem(o3tl::make_unique<SvLBoxString>(rFont1)); pEntry->AddItem(o3tl::make_unique<SvLBoxString>(rFont2)); diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx index 03262fb2bb53..5280ae3930df 100644 --- a/cui/source/options/optfltr.cxx +++ b/cui/source/options/optfltr.cxx @@ -339,12 +339,12 @@ void OfaMSFilterTabPage2::InsertEntry( const OUString& _rTxt, sal_IntPtr _nType, pEntry->AddItem(std::unique_ptr<SvLBoxContextBmp>( new SvLBoxContextBmp(Image(), Image(), false))); pEntry->AddItem(std::unique_ptr<SvLBoxButton>( - new SvLBoxButton(loadEnabled ? SvLBoxButtonKind_enabledCheckbox - : SvLBoxButtonKind_disabledCheckbox, + new SvLBoxButton(loadEnabled ? SvLBoxButtonKind::EnabledCheckbox + : SvLBoxButtonKind::DisabledCheckbox, pCheckButtonData))); pEntry->AddItem(std::unique_ptr<SvLBoxButton>( - new SvLBoxButton(saveEnabled ? SvLBoxButtonKind_enabledCheckbox - : SvLBoxButtonKind_disabledCheckbox, + new SvLBoxButton(saveEnabled ? SvLBoxButtonKind::EnabledCheckbox + : SvLBoxButtonKind::DisabledCheckbox, pCheckButtonData))); pEntry->AddItem(std::unique_ptr<SvLBoxString>(new SvLBoxString(_rTxt))); diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index e25312724918..450f0eca0526 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1783,7 +1783,7 @@ SvTreeListEntry* SvxLinguTabPage::CreateEntry( OUString& rTxt, sal_uInt16 nCol ) pCheckButtonData = new SvLBoxButtonData(m_pLinguOptionsCLB); if (CBCOL_FIRST == nCol) - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); if (CBCOL_SECOND == nCol) pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); // empty column pEntry->AddItem(o3tl::make_unique<SvLBoxContextBmp>(Image(), Image(), false)); @@ -1912,7 +1912,7 @@ SvTreeListEntry* SvxEditModulesDlg::CreateEntry( OUString& rTxt, sal_uInt16 nCol } if (CBCOL_FIRST == nCol) - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); if (CBCOL_SECOND == nCol) pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); // empty column pEntry->AddItem(o3tl::make_unique<SvLBoxContextBmp>(Image(), Image(), false)); diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index e5b29cfe6814..543341a8d281 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -477,12 +477,12 @@ SvTreeListEntry* OfaSwAutoFmtOptionsPage::CreateEntry(OUString& rTxt, sal_uInt16 if (nCol == CBCOL_SECOND) pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); else - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); if (nCol == CBCOL_FIRST) pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); else - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); pEntry->AddItem(o3tl::make_unique<OfaImpBrwString>(rTxt)); return pEntry; @@ -1806,12 +1806,12 @@ SvTreeListEntry* OfaQuoteTabPage::CreateEntry(OUString& rTxt, sal_uInt16 nCol) if (nCol == CBCOL_SECOND) pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); else - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); if (nCol == CBCOL_FIRST) pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); else - pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind_enabledCheckbox, pCheckButtonData)); + pEntry->AddItem(o3tl::make_unique<SvLBoxButton>(SvLBoxButtonKind::EnabledCheckbox, pCheckButtonData)); pEntry->AddItem(o3tl::make_unique<OfaImpBrwString>(rTxt)); |