summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/tplnedef.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-17 15:30:15 +0200
committerNoel Grandin <noel@peralex.com>2016-08-18 08:49:02 +0200
commitfde3facbc8bdeb820d828183948eceaec66e525a (patch)
treeb1794802326e6958267e308b04b1ba72f29c2c9d /cui/source/tabpages/tplnedef.cxx
parent65a4c406e9c0f2953547fbe006ff38644f489fc8 (diff)
convert PageType to scoped enum
and move it inside CUI, since it's only used there Change-Id: I83ac1afaa60da9fb34480363a351608b133154cb
Diffstat (limited to 'cui/source/tabpages/tplnedef.cxx')
-rw-r--r--cui/source/tabpages/tplnedef.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/cui/source/tabpages/tplnedef.cxx b/cui/source/tabpages/tplnedef.cxx
index b4282dfe7ba4..0620d442ab5e 100644
--- a/cui/source/tabpages/tplnedef.cxx
+++ b/cui/source/tabpages/tplnedef.cxx
@@ -43,6 +43,7 @@
#include <svx/dialmgr.hxx>
#include <svx/dialogs.hrc>
#include <o3tl/make_unique.hxx>
+#include "cuitabarea.hxx"
#define XOUT_WIDTH 150
@@ -192,7 +193,7 @@ void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
// ActivatePage() is called before the dialog receives PageCreated() !!!
if( pDashList.is() )
{
- if( *pPageType == 1 &&
+ if( *pPageType == PageType::Gradient &&
*pPosDashLb != LISTBOX_ENTRY_NOTFOUND )
{
m_pLbLineStyles->SelectEntryPos( *pPosDashLb );
@@ -209,7 +210,7 @@ void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
aURL.Append( pDashList->GetName() );
DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
- *pPageType = 0; // 2
+ *pPageType = PageType::Area; // 2
*pPosDashLb = LISTBOX_ENTRY_NOTFOUND;
}
}
@@ -284,7 +285,7 @@ bool SvxLineDefTabPage::FillItemSet( SfxItemSet* rAttrs )
{
if( nDlgType == 0 ) // line dialog
{
- if( *pPageType == 2 )
+ if( *pPageType == PageType::Hatch )
{
FillDash_Impl();
@@ -380,7 +381,7 @@ void SvxLineDefTabPage::SelectLinestyleHdl_Impl(ListBox* p)
// only if there was an entry selected in the ListBox.
// If it was called via Reset(), then p is == NULL
if( p )
- *pPageType = 2;
+ *pPageType = PageType::Hatch;
}
}
@@ -581,7 +582,7 @@ IMPL_LINK_NOARG_TYPED(SvxLineDefTabPage, ClickAddHdl_Impl, Button*, void)
*pnDashListState |= ChangeType::MODIFIED;
- *pPageType = 2;
+ *pPageType = PageType::Hatch;
// save values for changes recognition (-> method)
m_pNumFldNumber1->SaveValue();
@@ -655,7 +656,7 @@ IMPL_LINK_NOARG_TYPED(SvxLineDefTabPage, ClickModifyHdl_Impl, Button*, void)
*pnDashListState |= ChangeType::MODIFIED;
- *pPageType = 2;
+ *pPageType = PageType::Hatch;
// save values for changes recognition (-> method)
m_pNumFldNumber1->SaveValue();
@@ -695,7 +696,7 @@ IMPL_LINK_NOARG_TYPED(SvxLineDefTabPage, ClickDeleteHdl_Impl, Button*, void)
m_pLbLineStyles->SelectEntryPos( 0 );
SelectLinestyleHdl_Impl( nullptr );
- *pPageType = 0; // style should not be taken
+ *pPageType = PageType::Area; // style should not be taken
*pnDashListState |= ChangeType::MODIFIED;