diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-21 07:31:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-21 09:17:32 +0200 |
commit | a69f8ea61ce274a5839f1904d1eba9ea91ce6676 (patch) | |
tree | eb7693e3cca148c3013220bcbc4c3b322b0f8123 /drawinglayer | |
parent | 46bf3068de40192e0b69ef5f6ab3b2f43c71ef71 (diff) |
vcl: convert push flags to type-safe enum-like class
Change-Id: Ib49a0dd5ecee0225f51bea2ff1c0ab5326595a47
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/metafileprimitive2d.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx index 8f77949f4adb..052d43a5f3ba 100644 --- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx @@ -91,7 +91,7 @@ namespace RasterOp maRasterOp; ComplexTextLayoutMode mnLayoutMode; LanguageType maLanguageType; - sal_uInt16 mnPushFlags; + PushFlags mnPushFlags; /// bitfield /// contains all active markers @@ -118,7 +118,7 @@ namespace maRasterOp(ROP_OVERPAINT), mnLayoutMode(TEXT_LAYOUT_DEFAULT), maLanguageType(0), - mnPushFlags(0), + mnPushFlags(PUSH_NONE), mbLineColor(false), mbFillColor(false), mbTextColor(true), @@ -190,8 +190,8 @@ namespace LanguageType getLanguageType() const { return maLanguageType; } void setLanguageType(LanguageType aNew) { if(aNew != maLanguageType) maLanguageType = aNew; } - sal_uInt16 getPushFlags() const { return mnPushFlags; } - void setPushFlags(sal_uInt16 nNew) { if(nNew != mnPushFlags) mnPushFlags = nNew; } + PushFlags getPushFlags() const { return mnPushFlags; } + void setPushFlags(PushFlags nNew) { if(nNew != mnPushFlags) mnPushFlags = nNew; } bool getLineOrFillActive() const { return (mbLineColor || mbFillColor); } }; @@ -227,7 +227,7 @@ namespace maPropertyHolders.push_back(pNew); } - void Push(sal_uInt16 nPushFlags) + void Push(PushFlags nPushFlags) { if(nPushFlags) { @@ -249,9 +249,9 @@ namespace if(nSize) { const PropertyHolder* pTip = maPropertyHolders.back(); - const sal_uInt16 nPushFlags(pTip->getPushFlags()); + const PushFlags nPushFlags(pTip->getPushFlags()); - if(nPushFlags) + if(nPushFlags != PUSH_NONE) { if(nSize > 1) { |