summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 09:21:47 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commit492a8c34cc71c7becb59e90ffde71b9072ebab2c (patch)
tree16d0aecf763e2e87c0c05115bd2bd928b9d35a0c /svx/source/fmcomp/gridctrl.cxx
parentb8064bdf7fabdbfd2546830f6fb8f0de6b8d4329 (diff)
convert InitWindowFacet to typed_flags
Change-Id: I9bd230997aa58672114dffc42a22ad2802bbeaf8
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r--svx/source/fmcomp/gridctrl.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index b70e8790a726..f652781e9c9c 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -975,7 +975,7 @@ DbGridControl::DbGridControl(
OUString sName(SVX_RESSTR(RID_STR_NAVIGATIONBAR));
m_aBar->SetAccessibleName(sName);
m_aBar->Show();
- ImplInitWindow( InitAll );
+ ImplInitWindow( InitWindowFacet::All );
}
void DbGridControl::InsertHandleColumn()
@@ -1050,13 +1050,13 @@ void DbGridControl::StateChanged( StateChangedType nType )
switch (nType)
{
case StateChangedType::Mirroring:
- ImplInitWindow( InitWritingMode );
+ ImplInitWindow( InitWindowFacet::WritingMode );
Invalidate();
break;
case StateChangedType::Zoom:
{
- ImplInitWindow( InitFontFacet );
+ ImplInitWindow( InitWindowFacet::Font );
// and give it a chance to rearrange
Point aPoint = GetControlArea().TopLeft();
@@ -1066,15 +1066,15 @@ void DbGridControl::StateChanged( StateChangedType nType )
}
break;
case StateChangedType::ControlFont:
- ImplInitWindow( InitFontFacet );
+ ImplInitWindow( InitWindowFacet::Font );
Invalidate();
break;
case StateChangedType::ControlForeground:
- ImplInitWindow( InitForeground );
+ ImplInitWindow( InitWindowFacet::Foreground );
Invalidate();
break;
case StateChangedType::ControlBackground:
- ImplInitWindow( InitBackground );
+ ImplInitWindow( InitWindowFacet::Background );
Invalidate();
break;
default:;
@@ -1087,7 +1087,7 @@ void DbGridControl::DataChanged( const DataChangedEvent& rDCEvt )
if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS ) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
- ImplInitWindow( InitAll );
+ ImplInitWindow( InitWindowFacet::All );
Invalidate();
}
}
@@ -1111,7 +1111,7 @@ void DbGridControl::ImplInitWindow( const InitWindowFacet _eInitWhat )
pCol->ImplInitWindow( GetDataWindow(), _eInitWhat );
}
- if ( ( _eInitWhat & InitWritingMode ) != 0 )
+ if ( _eInitWhat & InitWindowFacet::WritingMode )
{
if ( m_bNavigationBar )
{
@@ -1119,7 +1119,7 @@ void DbGridControl::ImplInitWindow( const InitWindowFacet _eInitWhat )
}
}
- if ( ( _eInitWhat & InitFontFacet ) != 0 )
+ if ( _eInitWhat & InitWindowFacet::Font )
{
if ( m_bNavigationBar )
{
@@ -1133,7 +1133,7 @@ void DbGridControl::ImplInitWindow( const InitWindowFacet _eInitWhat )
}
}
- if ( ( _eInitWhat & InitBackground ) != 0 )
+ if ( _eInitWhat & InitWindowFacet::Background )
{
if (IsControlBackground())
{