diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-06-22 02:51:21 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-07-05 14:55:16 +0300 |
commit | 18992f308d7f1d9b972cb307666e4a4a18778eea (patch) | |
tree | 59c4feb67b847ebe750eb66e08b407b52decf227 /cui | |
parent | 4604a6a7cd66907fc29e01aacf2146f17fa19d34 (diff) |
Convert NUM_PAGETYPE_ to a scoped enum
Change-Id: Iddc194a0d8f77e307c05bd3dfef1fc30568173c1
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 569a006391fb..01e9d53ef63e 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -91,10 +91,6 @@ using namespace css::text; using namespace css::container; using namespace css::style; -#define NUM_PAGETYPE_BULLET 0 -#define NUM_PAGETYPE_SINGLENUM 1 -#define NUM_PAGETYPE_NUM 2 - #define SHOW_NUMBERING 0 #define SHOW_BULLET 1 #define SHOW_BITMAP 2 @@ -197,7 +193,7 @@ SvxSingleNumPickTabPage::SvxSingleNumPickTabPage(vcl::Window* pParent, { SetExchangeSupport(); get(m_pExamplesVS, "valueset"); - m_pExamplesVS->init(NUM_PAGETYPE_SINGLENUM); + m_pExamplesVS->init(NumberingPageType::SINGLENUM); m_pExamplesVS->SetSelectHdl(LINK(this, SvxSingleNumPickTabPage, NumSelectHdl_Impl)); m_pExamplesVS->SetDoubleClickHdl(LINK(this, SvxSingleNumPickTabPage, DoubleClickHdl_Impl)); @@ -394,7 +390,7 @@ SvxBulletPickTabPage::SvxBulletPickTabPage(vcl::Window* pParent, { SetExchangeSupport(); get(m_pExamplesVS, "valueset"); - m_pExamplesVS->init(NUM_PAGETYPE_BULLET), + m_pExamplesVS->init(NumberingPageType::BULLET), m_pExamplesVS->SetSelectHdl(LINK(this, SvxBulletPickTabPage, NumSelectHdl_Impl)); m_pExamplesVS->SetDoubleClickHdl(LINK(this, SvxBulletPickTabPage, DoubleClickHdl_Impl)); } @@ -567,7 +563,7 @@ SvxNumPickTabPage::SvxNumPickTabPage(vcl::Window* pParent, SetExchangeSupport(); get(m_pExamplesVS, "valueset"); - m_pExamplesVS->init(NUM_PAGETYPE_NUM); + m_pExamplesVS->init(NumberingPageType::OUTLINE); m_pExamplesVS->SetSelectHdl(LINK(this, SvxNumPickTabPage, NumSelectHdl_Impl)); m_pExamplesVS->SetDoubleClickHdl(LINK(this, SvxNumPickTabPage, DoubleClickHdl_Impl)); |