summaryrefslogtreecommitdiff
path: root/vcl/source/control/imgctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-27 09:37:41 +0200
committerNoel Grandin <noel@peralex.com>2015-05-27 11:14:26 +0200
commit66854d697f973f36e1b878080999901e0936dae6 (patch)
tree118776c3cda5bbeb59ece7d9b33686a5a4163fc6 /vcl/source/control/imgctrl.cxx
parent9e3b1236b68069016d646b5682ce541335b5340c (diff)
convert WINDOW_DRAW flags to scoped enum
Change-Id: I9400a286fab18d683b4c109007961685f01b6da3
Diffstat (limited to 'vcl/source/control/imgctrl.cxx')
-rw-r--r--vcl/source/control/imgctrl.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/imgctrl.cxx b/vcl/source/control/imgctrl.cxx
index 8d9a5cbddff1..a41f3f4062c8 100644
--- a/vcl/source/control/imgctrl.cxx
+++ b/vcl/source/control/imgctrl.cxx
@@ -67,10 +67,10 @@ namespace
}
}
-void ImageControl::ImplDraw(OutputDevice& rDev, sal_uLong nDrawFlags, const Point& rPos, const Size& rSize) const
+void ImageControl::ImplDraw(OutputDevice& rDev, DrawFlags nDrawFlags, const Point& rPos, const Size& rSize) const
{
DrawImageFlags nStyle = DrawImageFlags::NONE;
- if ( !(nDrawFlags & WINDOW_DRAW_NODISABLE) )
+ if ( !(nDrawFlags & DrawFlags::NoDisable) )
{
if ( !IsEnabled() )
nStyle |= DrawImageFlags::Disable;
@@ -87,7 +87,7 @@ void ImageControl::ImplDraw(OutputDevice& rDev, sal_uLong nDrawFlags, const Poin
WinBits nWinStyle = GetStyle();
DrawTextFlags nTextStyle = FixedText::ImplGetTextStyle( nWinStyle );
- if ( !(nDrawFlags & WINDOW_DRAW_NODISABLE) )
+ if ( !(nDrawFlags & DrawFlags::NoDisable) )
if ( !IsEnabled() )
nTextStyle |= DrawTextFlags::Disable;
@@ -133,7 +133,7 @@ void ImageControl::ImplDraw(OutputDevice& rDev, sal_uLong nDrawFlags, const Poin
void ImageControl::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*rRect*/)
{
- ImplDraw(rRenderContext, 0, Point(), GetOutputSizePixel());
+ ImplDraw(rRenderContext, DrawFlags::NONE, Point(), GetOutputSizePixel());
if (HasFocus())
{
@@ -157,7 +157,7 @@ void ImageControl::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*
}
}
-void ImageControl::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
+void ImageControl::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags )
{
const Point aPos = pDev->LogicToPixel( rPos );
const Size aSize = pDev->LogicToPixel( rSize );
@@ -167,7 +167,7 @@ void ImageControl::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSiz
pDev->SetMapMode();
// Border
- if ( !(nFlags & WINDOW_DRAW_NOBORDER) && (GetStyle() & WB_BORDER) )
+ if ( !(nFlags & DrawFlags::NoBorder) && (GetStyle() & WB_BORDER) )
{
ImplDrawFrame( pDev, aRect );
}