summaryrefslogtreecommitdiff
path: root/include/drawinglayer
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 /include/drawinglayer
parent10840ad753b60886ea5175060cb0ec2a77e1579a (diff)
Use bool
Change-Id: I2d06ae03650b318a1318d0e2b026352e22404fdd
Diffstat (limited to 'include/drawinglayer')
-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
15 files changed, 37 insertions, 37 deletions
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;