diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:52:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:52:55 +0100 |
commit | 70863f08d83dec5c9ee51d06b64bbca59e9daaef (patch) | |
tree | ee298b1dbec44ceb7231e7afeaa897b9c85d7fd9 /drawinglayer | |
parent | fdo#72005: Insert the border rectangle to the bottom of the stack. (diff) | |
download | core-70863f08d83dec5c9ee51d06b64bbca59e9daaef.tar.gz core-70863f08d83dec5c9ee51d06b64bbca59e9daaef.zip |
Use bool
Change-Id: I2d06ae03650b318a1318d0e2b026352e22404fdd
Diffstat (limited to 'drawinglayer')
10 files changed, 30 insertions, 30 deletions
diff --git a/drawinglayer/source/attribute/fillgraphicattribute.cxx b/drawinglayer/source/attribute/fillgraphicattribute.cxx index f92b06d5b080..2fc61e19dc2d 100644 --- a/drawinglayer/source/attribute/fillgraphicattribute.cxx +++ b/drawinglayer/source/attribute/fillgraphicattribute.cxx @@ -34,7 +34,7 @@ namespace drawinglayer basegfx::B2DRange maGraphicRange; // bitfield - unsigned mbTiling : 1; + bool mbTiling : 1; // tiling definitions, offsets in X/Y in percent for each 2nd row. // If both are set, Y is ignored (X has precedence) diff --git a/drawinglayer/source/attribute/fillhatchattribute.cxx b/drawinglayer/source/attribute/fillhatchattribute.cxx index 1d56badae5ee..fad8ca3702cb 100644 --- a/drawinglayer/source/attribute/fillhatchattribute.cxx +++ b/drawinglayer/source/attribute/fillhatchattribute.cxx @@ -38,7 +38,7 @@ namespace drawinglayer sal_uInt32 mnMinimalDiscreteDistance; // bitfield - unsigned mbFillBackground : 1; + bool mbFillBackground : 1; ImpFillHatchAttribute( HatchStyle eStyle, diff --git a/drawinglayer/source/attribute/fontattribute.cxx b/drawinglayer/source/attribute/fontattribute.cxx index 16f178518c3b..f0b438cf0212 100644 --- a/drawinglayer/source/attribute/fontattribute.cxx +++ b/drawinglayer/source/attribute/fontattribute.cxx @@ -36,13 +36,13 @@ namespace drawinglayer sal_uInt16 mnWeight; // Font weight /// bitfield - unsigned mbSymbol : 1; // Symbol Font Flag - unsigned mbVertical : 1; // Vertical Text Flag - unsigned mbItalic : 1; // Italic Flag - unsigned mbOutline : 1; // Outline Flag - unsigned mbRTL : 1; // RTL Flag - unsigned mbBiDiStrong : 1; // BiDi Flag - unsigned mbMonospaced : 1; + bool mbSymbol : 1; // Symbol Font Flag + bool mbVertical : 1; // Vertical Text Flag + bool mbItalic : 1; // Italic Flag + bool mbOutline : 1; // Outline Flag + bool mbRTL : 1; // RTL Flag + bool mbBiDiStrong : 1; // BiDi Flag + bool mbMonospaced : 1; ImpFontAttribute( const OUString& rFamilyName, diff --git a/drawinglayer/source/attribute/linestartendattribute.cxx b/drawinglayer/source/attribute/linestartendattribute.cxx index 0e3936157c08..bf5583736e44 100644 --- a/drawinglayer/source/attribute/linestartendattribute.cxx +++ b/drawinglayer/source/attribute/linestartendattribute.cxx @@ -36,7 +36,7 @@ namespace drawinglayer basegfx::B2DPolyPolygon maPolyPolygon; // the StartEndGeometry PolyPolygon // bitfield - unsigned mbCentered : 1; // use centered to ineStart/End point? + bool mbCentered : 1; // use centered to ineStart/End point? ImpLineStartEndAttribute( double fWidth, diff --git a/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx b/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx index 217e7abf4634..a2f4d9607129 100755 --- a/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx +++ b/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx @@ -40,9 +40,9 @@ namespace drawinglayer basegfx::B2DVector maRectPoint; // bitfield - unsigned mbTiling : 1; - unsigned mbStretch : 1; - unsigned mbLogSize : 1; + bool mbTiling : 1; + bool mbStretch : 1; + bool mbLogSize : 1; ImpSdrFillGraphicAttribute( const Graphic& rFillGraphic, diff --git a/drawinglayer/source/attribute/sdrlightattribute3d.cxx b/drawinglayer/source/attribute/sdrlightattribute3d.cxx index cc4f2f1d35b5..e16674b2470f 100644 --- a/drawinglayer/source/attribute/sdrlightattribute3d.cxx +++ b/drawinglayer/source/attribute/sdrlightattribute3d.cxx @@ -36,7 +36,7 @@ namespace drawinglayer basegfx::B3DVector maDirection; // bitfield - unsigned mbSpecular : 1; + bool mbSpecular : 1; ImpSdr3DLightAttribute( const basegfx::BColor& rColor, diff --git a/drawinglayer/source/attribute/sdrlinestartendattribute.cxx b/drawinglayer/source/attribute/sdrlinestartendattribute.cxx index c4851da75dd9..0d6e3985ceb9 100644 --- a/drawinglayer/source/attribute/sdrlinestartendattribute.cxx +++ b/drawinglayer/source/attribute/sdrlinestartendattribute.cxx @@ -37,10 +37,10 @@ namespace drawinglayer double mfEndWidth; // 1/100th mm // bitfield - unsigned mbStartActive : 1L; // start of Line is active - unsigned mbEndActive : 1L; // end of Line is active - unsigned mbStartCentered : 1L; // Line is centered on line start point - unsigned mbEndCentered : 1L; // Line is centered on line end point + bool mbStartActive : 1; // start of Line is active + bool mbEndActive : 1; // end of Line is active + bool mbStartCentered : 1; // Line is centered on line start point + bool mbEndCentered : 1; // Line is centered on line end point ImpSdrLineStartEndAttribute( const basegfx::B2DPolyPolygon& rStartPolyPolygon, diff --git a/drawinglayer/source/attribute/sdrobjectattribute3d.cxx b/drawinglayer/source/attribute/sdrobjectattribute3d.cxx index 7ecac3e574c9..f27f50234113 100644 --- a/drawinglayer/source/attribute/sdrobjectattribute3d.cxx +++ b/drawinglayer/source/attribute/sdrobjectattribute3d.cxx @@ -39,11 +39,11 @@ namespace drawinglayer MaterialAttribute3D maMaterial; // object, specular and emissive colors, SpecularIntensity // bitfield - unsigned mbNormalsInvert : 1; // invert normals - unsigned mbDoubleSided : 1; // surfaces are double sided - unsigned mbShadow3D : 1; // display shadow in 3D (if on), params for that are at scene - unsigned mbTextureFilter : 1; // filter texture to make more smooth - unsigned mbReducedLineGeometry : 1; // use reduced line geometry (object specific) + bool mbNormalsInvert : 1; // invert normals + bool mbDoubleSided : 1; // surfaces are double sided + bool mbShadow3D : 1; // display shadow in 3D (if on), params for that are at scene + bool mbTextureFilter : 1; // filter texture to make more smooth + bool mbReducedLineGeometry : 1; // use reduced line geometry (object specific) ImpSdr3DObjectAttribute( ::com::sun::star::drawing::NormalsKind aNormalsKind, diff --git a/drawinglayer/source/attribute/sdrsceneattribute3d.cxx b/drawinglayer/source/attribute/sdrsceneattribute3d.cxx index f5d0e82b4cec..aea1bba76abf 100644 --- a/drawinglayer/source/attribute/sdrsceneattribute3d.cxx +++ b/drawinglayer/source/attribute/sdrsceneattribute3d.cxx @@ -36,7 +36,7 @@ namespace drawinglayer ::com::sun::star::drawing::ShadeMode maShadeMode; // bitfield - unsigned mbTwoSidedLighting : 1; + bool mbTwoSidedLighting : 1; public: ImpSdrSceneAttribute( diff --git a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx index 31c96f8dd1ca..bce1797f007f 100644 --- a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx +++ b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx @@ -153,12 +153,12 @@ private: // bitfield // some boolean flags for line span interpolator usages - unsigned mbModifyColor : 1; - unsigned mbUseTex : 1; - unsigned mbHasTexCoor : 1; - unsigned mbHasInvTexCoor : 1; - unsigned mbUseNrm : 1; - unsigned mbUseCol : 1; + bool mbModifyColor : 1; + bool mbUseTex : 1; + bool mbHasTexCoor : 1; + bool mbHasInvTexCoor : 1; + bool mbUseNrm : 1; + bool mbUseCol : 1; void getTextureCoor(basegfx::B2DPoint& rTarget) const { |