summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 17:52:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:52:55 +0100
commit70863f08d83dec5c9ee51d06b64bbca59e9daaef (patch)
treeee298b1dbec44ceb7231e7afeaa897b9c85d7fd9
parent10840ad753b60886ea5175060cb0ec2a77e1579a (diff)
Use bool
Change-Id: I2d06ae03650b318a1318d0e2b026352e22404fdd
-rw-r--r--drawinglayer/source/attribute/fillgraphicattribute.cxx2
-rw-r--r--drawinglayer/source/attribute/fillhatchattribute.cxx2
-rw-r--r--drawinglayer/source/attribute/fontattribute.cxx14
-rw-r--r--drawinglayer/source/attribute/linestartendattribute.cxx2
-rwxr-xr-xdrawinglayer/source/attribute/sdrfillgraphicattribute.cxx6
-rw-r--r--drawinglayer/source/attribute/sdrlightattribute3d.cxx2
-rw-r--r--drawinglayer/source/attribute/sdrlinestartendattribute.cxx8
-rw-r--r--drawinglayer/source/attribute/sdrobjectattribute3d.cxx10
-rw-r--r--drawinglayer/source/attribute/sdrsceneattribute3d.cxx2
-rw-r--r--drawinglayer/source/processor3d/zbufferprocessor3d.cxx12
-rw-r--r--include/drawinglayer/primitive2d/animatedprimitive2d.hxx2
-rw-r--r--include/drawinglayer/primitive2d/embedded3dprimitive2d.hxx2
-rw-r--r--include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx2
-rw-r--r--include/drawinglayer/primitive2d/sceneprimitive2d.hxx2
-rw-r--r--include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx10
-rw-r--r--include/drawinglayer/primitive3d/polypolygonprimitive3d.hxx2
-rw-r--r--include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx12
-rw-r--r--include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx12
-rw-r--r--include/drawinglayer/primitive3d/shadowprimitive3d.hxx2
-rw-r--r--include/drawinglayer/primitive3d/textureprimitive3d.hxx4
-rw-r--r--include/drawinglayer/processor2d/hittestprocessor2d.hxx8
-rw-r--r--include/drawinglayer/processor2d/linegeometryextractor2d.hxx2
-rw-r--r--include/drawinglayer/processor3d/defaultprocessor3d.hxx6
-rw-r--r--include/drawinglayer/processor3d/shadow3dextractor.hxx6
-rw-r--r--include/drawinglayer/texture/texture3d.hxx2
25 files changed, 67 insertions, 67 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
{
diff --git a/include/drawinglayer/primitive2d/animatedprimitive2d.hxx b/include/drawinglayer/primitive2d/animatedprimitive2d.hxx
index edb3a7db12e2..4d0358d06555 100644
--- a/include/drawinglayer/primitive2d/animatedprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/animatedprimitive2d.hxx
@@ -65,7 +65,7 @@ namespace drawinglayer
/** flag if this is a text or graphic animation. Necessary since SdrViews need to differentiate
between both types if they are on/off
*/
- unsigned mbIsTextAnimation : 1;
+ bool mbIsTextAnimation : 1;
public:
/// constructor
diff --git a/include/drawinglayer/primitive2d/embedded3dprimitive2d.hxx b/include/drawinglayer/primitive2d/embedded3dprimitive2d.hxx
index ec20118a3cfc..d8ffc3fd3754 100644
--- a/include/drawinglayer/primitive2d/embedded3dprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/embedded3dprimitive2d.hxx
@@ -76,7 +76,7 @@ namespace drawinglayer
/** flag if given 3D geometry is already cheched for shadow definitions and 2d shadows
are created in maShadowPrimitives
*/
- unsigned mbShadow3DChecked : 1;
+ bool mbShadow3DChecked : 1;
/// private helpers
bool impGetShadow3D(const geometry::ViewInformation2D& rViewInformation) const;
diff --git a/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx b/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx
index 07ed5a1c75fe..318588f544e5 100644
--- a/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx
@@ -61,7 +61,7 @@ namespace drawinglayer
/// bitfield
/// flag to allow keeping the aspect ratio
- unsigned mbKeepAspectRatio : 1;
+ bool mbKeepAspectRatio : 1;
protected:
/// local decomposition. Implementation will just return children
diff --git a/include/drawinglayer/primitive2d/sceneprimitive2d.hxx b/include/drawinglayer/primitive2d/sceneprimitive2d.hxx
index c0c5144202db..6153674de1e5 100644
--- a/include/drawinglayer/primitive2d/sceneprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/sceneprimitive2d.hxx
@@ -78,7 +78,7 @@ namespace drawinglayer
/** flag if given 3D geometry is already cheched for shadow definitions and 2d shadows
are created in maShadowPrimitives
*/
- unsigned mbShadow3DChecked : 1;
+ bool mbShadow3DChecked : 1;
/// the last used NewDiscreteSize and NewUnitVisiblePart definitions for decomposition
double mfOldDiscreteSizeX;
diff --git a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
index 575678422360..e12b18608350 100644
--- a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
@@ -62,11 +62,11 @@ namespace drawinglayer
TextRelief meTextRelief;
/// bitfield
- unsigned mbUnderlineAbove : 1;
- unsigned mbWordLineMode : 1;
- unsigned mbEmphasisMarkAbove : 1;
- unsigned mbEmphasisMarkBelow : 1;
- unsigned mbShadow : 1;
+ bool mbUnderlineAbove : 1;
+ bool mbWordLineMode : 1;
+ bool mbEmphasisMarkAbove : 1;
+ bool mbEmphasisMarkBelow : 1;
+ bool mbShadow : 1;
/// helper methods
void impCreateGeometryContent(
diff --git a/include/drawinglayer/primitive3d/polypolygonprimitive3d.hxx b/include/drawinglayer/primitive3d/polypolygonprimitive3d.hxx
index cec15ed93b16..21a5baa98d1b 100644
--- a/include/drawinglayer/primitive3d/polypolygonprimitive3d.hxx
+++ b/include/drawinglayer/primitive3d/polypolygonprimitive3d.hxx
@@ -50,7 +50,7 @@ namespace drawinglayer
attribute::MaterialAttribute3D maMaterial;
/// bitfield
- unsigned mbDoubleSided : 1;
+ bool mbDoubleSided : 1;
public:
/// constructor
diff --git a/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx b/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx
index c790d99bfb40..a072db78481a 100644
--- a/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx
+++ b/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx
@@ -59,12 +59,12 @@ namespace drawinglayer
geometry::ViewInformation3D* mpLastRLGViewInformation;
/// bitfield
- unsigned mbSmoothNormals : 1; // Plane self
- unsigned mbSmoothHorizontalNormals : 1; // always
- unsigned mbSmoothLids : 1; // Front/back
- unsigned mbCharacterMode : 1;
- unsigned mbCloseFront : 1;
- unsigned mbCloseBack : 1;
+ bool mbSmoothNormals : 1; // Plane self
+ bool mbSmoothHorizontalNormals : 1; // always
+ bool mbSmoothLids : 1; // Front/back
+ bool mbCharacterMode : 1;
+ bool mbCloseFront : 1;
+ bool mbCloseBack : 1;
/// create slices
void impCreateSlices();
diff --git a/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx b/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx
index 8a9b98490005..2458294ba85c 100644
--- a/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx
+++ b/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx
@@ -61,12 +61,12 @@ namespace drawinglayer
geometry::ViewInformation3D* mpLastRLGViewInformation;
/// bitfield
- unsigned mbSmoothNormals : 1; // Plane self
- unsigned mbSmoothHorizontalNormals : 1; // always
- unsigned mbSmoothLids : 1; // Front/back
- unsigned mbCharacterMode : 1;
- unsigned mbCloseFront : 1;
- unsigned mbCloseBack : 1;
+ bool mbSmoothNormals : 1; // Plane self
+ bool mbSmoothHorizontalNormals : 1; // always
+ bool mbSmoothLids : 1; // Front/back
+ bool mbCharacterMode : 1;
+ bool mbCloseFront : 1;
+ bool mbCloseBack : 1;
/// create slices
void impCreateSlices();
diff --git a/include/drawinglayer/primitive3d/shadowprimitive3d.hxx b/include/drawinglayer/primitive3d/shadowprimitive3d.hxx
index a17d3f1ca2b4..67f716ba3149 100644
--- a/include/drawinglayer/primitive3d/shadowprimitive3d.hxx
+++ b/include/drawinglayer/primitive3d/shadowprimitive3d.hxx
@@ -51,7 +51,7 @@ namespace drawinglayer
double mfShadowTransparence;
/// bitfield
- unsigned mbShadow3D : 1;
+ bool mbShadow3D : 1;
public:
/// constructor
diff --git a/include/drawinglayer/primitive3d/textureprimitive3d.hxx b/include/drawinglayer/primitive3d/textureprimitive3d.hxx
index ab0798b0965b..3c8473d006db 100644
--- a/include/drawinglayer/primitive3d/textureprimitive3d.hxx
+++ b/include/drawinglayer/primitive3d/textureprimitive3d.hxx
@@ -48,10 +48,10 @@ namespace drawinglayer
/// bitfield
/// flag if texture shall be modulated with white interpolated color
- unsigned mbModulate : 1;
+ bool mbModulate : 1;
/// flag if texture shall be filtered
- unsigned mbFilter : 1;
+ bool mbFilter : 1;
public:
/// constructor
diff --git a/include/drawinglayer/processor2d/hittestprocessor2d.hxx b/include/drawinglayer/processor2d/hittestprocessor2d.hxx
index fc2ab3252558..6526d93ceedf 100644
--- a/include/drawinglayer/processor2d/hittestprocessor2d.hxx
+++ b/include/drawinglayer/processor2d/hittestprocessor2d.hxx
@@ -52,8 +52,8 @@ namespace drawinglayer
double mfDiscreteHitTolerance;
/// bitfield
- unsigned mbHit : 1;
- unsigned mbHitToleranceUsed : 1;
+ bool mbHit : 1;
+ bool mbHitToleranceUsed : 1;
/* this flag decides if primitives which are embedded to an
UnifiedTransparencePrimitive2D and are invisible will be taken into account for
@@ -61,10 +61,10 @@ namespace drawinglayer
completely invisible and normally their content exists of hairline
primitives describing the object's contour
*/
- unsigned mbUseInvisiblePrimitiveContent : 1;
+ bool mbUseInvisiblePrimitiveContent : 1;
/// flag to concentraze on text hits only
- unsigned mbHitTextOnly : 1;
+ bool mbHitTextOnly : 1;
/// tooling methods
void processBasePrimitive2D(const primitive2d::BasePrimitive2D& rCandidate);
diff --git a/include/drawinglayer/processor2d/linegeometryextractor2d.hxx b/include/drawinglayer/processor2d/linegeometryextractor2d.hxx
index 906dd9e11ec2..2fdc88dfbb76 100644
--- a/include/drawinglayer/processor2d/linegeometryextractor2d.hxx
+++ b/include/drawinglayer/processor2d/linegeometryextractor2d.hxx
@@ -44,7 +44,7 @@ namespace drawinglayer
basegfx::B2DPolyPolygonVector maExtractedLineFills;
/// bitfield
- unsigned mbInLineGeometry : 1;
+ bool mbInLineGeometry : 1;
/// tooling methods
void processBasePrimitive2D(const primitive2d::BasePrimitive2D& rCandidate);
diff --git a/include/drawinglayer/processor3d/defaultprocessor3d.hxx b/include/drawinglayer/processor3d/defaultprocessor3d.hxx
index f2277670796d..63a1227fe1a3 100644
--- a/include/drawinglayer/processor3d/defaultprocessor3d.hxx
+++ b/include/drawinglayer/processor3d/defaultprocessor3d.hxx
@@ -100,9 +100,9 @@ namespace drawinglayer
sal_uInt32 mnTransparenceCounter;
/// bitfield
- unsigned mbModulate : 1;
- unsigned mbFilter : 1;
- unsigned mbSimpleTextureActive : 1;
+ bool mbModulate : 1;
+ bool mbFilter : 1;
+ bool mbSimpleTextureActive : 1;
//////////////////////////////////////////////////////////////////////////////
// rendering support
diff --git a/include/drawinglayer/processor3d/shadow3dextractor.hxx b/include/drawinglayer/processor3d/shadow3dextractor.hxx
index 183d61271c83..90b7e863474f 100644
--- a/include/drawinglayer/processor3d/shadow3dextractor.hxx
+++ b/include/drawinglayer/processor3d/shadow3dextractor.hxx
@@ -70,13 +70,13 @@ namespace drawinglayer
/// bitfield
/// flag if shadow plane projection preparation leaded to valid results
- unsigned mbShadowProjectionIsValid : 1;
+ bool mbShadowProjectionIsValid : 1;
/// flag if conversion is switched on
- unsigned mbConvert : 1;
+ bool mbConvert : 1;
/// flag if conversion shall use projection
- unsigned mbUseProjection : 1;
+ bool mbUseProjection : 1;
/// local helpers
basegfx::B2DPolygon impDoShadowProjection(const basegfx::B3DPolygon& rSource);
diff --git a/include/drawinglayer/texture/texture3d.hxx b/include/drawinglayer/texture/texture3d.hxx
index c51845c52220..333f346c6b74 100644
--- a/include/drawinglayer/texture/texture3d.hxx
+++ b/include/drawinglayer/texture/texture3d.hxx
@@ -143,7 +143,7 @@ namespace drawinglayer
GeoTexSvxHatch* mp2;
// bitfield
- unsigned mbFillBackground : 1;
+ bool mbFillBackground : 1;
// helpers
bool impIsOnHatch(const basegfx::B2DPoint& rUV) const;