summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/graphic/ndgrf.cxx16
-rw-r--r--sw/source/ui/frmdlg/frmpage.cxx6
2 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 8a5833c7e058..b3b3d13f731e 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -997,22 +997,22 @@ GraphicAttr& SwGrfNode::GetGraphicAttr( GraphicAttr& rGA,
rGA.SetDrawMode( (GraphicDrawMode)rSet.GetDrawModeGrf().GetValue() );
const SwMirrorGrf & rMirror = rSet.GetMirrorGrf();
- sal_uLong nMirror = BMP_MIRROR_NONE;
+ BmpMirrorFlags nMirror = BmpMirrorFlags::NONE;
if( rMirror.IsGrfToggle() && pFrm && !pFrm->FindPageFrm()->OnRightPage() )
{
switch( rMirror.GetValue() )
{
case RES_MIRROR_GRAPH_DONT:
- nMirror = BMP_MIRROR_HORZ;
+ nMirror = BmpMirrorFlags::Horizontal;
break;
case RES_MIRROR_GRAPH_VERT:
- nMirror = BMP_MIRROR_NONE;
+ nMirror = BmpMirrorFlags::NONE;
break;
case RES_MIRROR_GRAPH_HOR:
- nMirror = BMP_MIRROR_HORZ|BMP_MIRROR_VERT;
+ nMirror = BmpMirrorFlags::Horizontal|BmpMirrorFlags::Vertical;
break;
default:
- nMirror = BMP_MIRROR_VERT;
+ nMirror = BmpMirrorFlags::Vertical;
break;
}
}
@@ -1020,13 +1020,13 @@ GraphicAttr& SwGrfNode::GetGraphicAttr( GraphicAttr& rGA,
switch( rMirror.GetValue() )
{
case RES_MIRROR_GRAPH_BOTH:
- nMirror = BMP_MIRROR_HORZ|BMP_MIRROR_VERT;
+ nMirror = BmpMirrorFlags::Horizontal|BmpMirrorFlags::Vertical;
break;
case RES_MIRROR_GRAPH_VERT:
- nMirror = BMP_MIRROR_HORZ;
+ nMirror = BmpMirrorFlags::Horizontal;
break;
case RES_MIRROR_GRAPH_HOR:
- nMirror = BMP_MIRROR_VERT;
+ nMirror = BmpMirrorFlags::Vertical;
break;
}
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
index f8a8a500a8d0..7da73f230dd8 100644
--- a/sw/source/ui/frmdlg/frmpage.cxx
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -2702,11 +2702,11 @@ void BmpWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle&
if (bHorz || bVert)
{
BitmapEx aTmpBmp(bGraphic ? aGraphic.GetBitmapEx() : aBmp);
- sal_uLong nMirrorFlags(BMP_MIRROR_NONE);
+ BmpMirrorFlags nMirrorFlags(BmpMirrorFlags::NONE);
if (bHorz)
- nMirrorFlags |= BMP_MIRROR_VERT;
+ nMirrorFlags |= BmpMirrorFlags::Vertical;
if (bVert)
- nMirrorFlags |= BMP_MIRROR_HORZ;
+ nMirrorFlags |= BmpMirrorFlags::Horizontal;
aTmpBmp.Mirror(nMirrorFlags);
DrawBitmapEx( aPntPos, aPntSz, aTmpBmp );
}