summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridcell.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/gridcell.cxx
parentb8064bdf7fabdbfd2546830f6fb8f0de6b8d4329 (diff)
convert InitWindowFacet to typed_flags
Change-Id: I9bd230997aa58672114dffc42a22ad2802bbeaf8
Diffstat (limited to 'svx/source/fmcomp/gridcell.cxx')
-rw-r--r--svx/source/fmcomp/gridcell.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 2b63e5acbf10..90e019f8f969 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -710,7 +710,7 @@ void DbCellControl::ImplInitWindow( vcl::Window& rParent, const InitWindowFacet
{
vcl::Window* pWindows[] = { m_pPainter, m_pWindow };
- if ((_eInitWhat & InitWritingMode) != 0)
+ if (_eInitWhat & InitWindowFacet::WritingMode)
{
for (vcl::Window* pWindow : pWindows)
{
@@ -719,7 +719,7 @@ void DbCellControl::ImplInitWindow( vcl::Window& rParent, const InitWindowFacet
}
}
- if ((_eInitWhat & InitFontFacet) != 0)
+ if (_eInitWhat & InitWindowFacet::Font)
{
for (vcl::Window* pWindow : pWindows)
{
@@ -744,7 +744,7 @@ void DbCellControl::ImplInitWindow( vcl::Window& rParent, const InitWindowFacet
}
}
- if (((_eInitWhat & InitFontFacet) != 0) || ((_eInitWhat & InitForeground) != 0))
+ if ((_eInitWhat & InitWindowFacet::Font) || (_eInitWhat & InitWindowFacet::Foreground))
{
Color aTextColor(rParent.IsControlForeground() ? rParent.GetControlForeground() : rParent.GetTextColor());
@@ -767,7 +767,7 @@ void DbCellControl::ImplInitWindow( vcl::Window& rParent, const InitWindowFacet
}
}
- if ((_eInitWhat & InitBackground) != 0)
+ if (_eInitWhat & InitWindowFacet::Background)
{
if (rParent.IsControlBackground())
{
@@ -845,7 +845,7 @@ void DbCellControl::implAdjustEnabled( const Reference< XPropertySet >& _rxModel
void DbCellControl::Init( vcl::Window& rParent, const Reference< XRowSet >& _rxCursor )
{
- ImplInitWindow( rParent, InitAll );
+ ImplInitWindow( rParent, InitWindowFacet::All );
if ( m_pWindow )
{