summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-01 11:40:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-08 08:03:03 +0200
commit1a6397030381a45f27ab7a2a02e6e6d0f9987c84 (patch)
tree6e342854037b3b845215af09f36407495550254d /svx/inc
parent781544497a0913037bba160a4cf6b643e5ca1d1a (diff)
loplugin:constfields in svx
Change-Id: I643e8686e015ca85dd96221f1c93038f4fddf27b Reviewed-on: https://gerrit.libreoffice.org/61182 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/dragmt3d.hxx2
-rw-r--r--svx/inc/palettes.hxx10
-rw-r--r--svx/inc/sdr/contact/viewcontactofsdrpage.hxx4
-rw-r--r--svx/inc/sdr/overlay/overlayhandle.hxx4
-rw-r--r--svx/inc/sdr/overlay/overlayhelpline.hxx2
-rw-r--r--svx/inc/sdr/overlay/overlayline.hxx2
-rw-r--r--svx/inc/sdr/overlay/overlayrectangle.hxx4
-rw-r--r--svx/inc/sdr/overlay/overlayrollingrectangle.hxx4
-rw-r--r--svx/inc/sdr/overlay/overlaytools.hxx62
-rw-r--r--svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx8
-rw-r--r--svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx4
-rw-r--r--svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx10
-rw-r--r--svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx12
-rw-r--r--svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx6
-rw-r--r--svx/inc/sdr/primitive2d/sdrmeasureprimitive2d.hxx28
-rw-r--r--svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx6
-rw-r--r--svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx4
-rw-r--r--svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx8
-rw-r--r--svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx10
-rw-r--r--svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx34
-rw-r--r--svx/inc/xpolyimp.hxx2
21 files changed, 113 insertions, 113 deletions
diff --git a/svx/inc/dragmt3d.hxx b/svx/inc/dragmt3d.hxx
index 2ac1274fbb96..01d9cd6d6469 100644
--- a/svx/inc/dragmt3d.hxx
+++ b/svx/inc/dragmt3d.hxx
@@ -57,7 +57,7 @@ class E3dDragMethod : public SdrDragMethod
{
protected:
::std::vector< E3dDragMethodUnit > maGrp;
- E3dDragConstraint meConstraint;
+ E3dDragConstraint const meConstraint;
Point maLastPos;
tools::Rectangle maFullBound;
bool mbMoveFull;
diff --git a/svx/inc/palettes.hxx b/svx/inc/palettes.hxx
index da0cdd24e9b2..028efad2b400 100644
--- a/svx/inc/palettes.hxx
+++ b/svx/inc/palettes.hxx
@@ -30,7 +30,7 @@ typedef std::vector< NamedColor > ColorList;
class SVX_DLLPUBLIC PaletteASE : public Palette
{
bool mbValidPalette;
- OUString maFPath;
+ OUString const maFPath;
OUString maASEPaletteName;
ColorList maColors;
@@ -53,8 +53,8 @@ class SVX_DLLPUBLIC PaletteGPL : public Palette
{
bool mbLoadedPalette;
bool mbValidPalette;
- OUString maFName;
- OUString maFPath;
+ OUString const maFName;
+ OUString const maFPath;
OUString maGPLPaletteName;
ColorList maColors;
@@ -78,8 +78,8 @@ public:
class SVX_DLLPUBLIC PaletteSOC : public Palette
{
bool mbLoadedPalette;
- OUString maFPath;
- OUString maSOCPaletteName;
+ OUString const maFPath;
+ OUString const maSOCPaletteName;
XColorListRef mpColorList;
public:
PaletteSOC( const OUString &rFPath, const OUString &rFName );
diff --git a/svx/inc/sdr/contact/viewcontactofsdrpage.hxx b/svx/inc/sdr/contact/viewcontactofsdrpage.hxx
index 0021148bc56c..3fee4f3fce0a 100644
--- a/svx/inc/sdr/contact/viewcontactofsdrpage.hxx
+++ b/svx/inc/sdr/contact/viewcontactofsdrpage.hxx
@@ -131,7 +131,7 @@ public:
class ViewContactOfGrid final : public ViewContactOfPageSubObject
{
- bool mbFront : 1;
+ bool const mbFront : 1;
virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) override;
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override;
@@ -145,7 +145,7 @@ public:
class ViewContactOfHelplines final : public ViewContactOfPageSubObject
{
- bool mbFront : 1;
+ bool const mbFront : 1;
virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) override;
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override;
diff --git a/svx/inc/sdr/overlay/overlayhandle.hxx b/svx/inc/sdr/overlay/overlayhandle.hxx
index ec7f89b47785..d6f50d8ae22f 100644
--- a/svx/inc/sdr/overlay/overlayhandle.hxx
+++ b/svx/inc/sdr/overlay/overlayhandle.hxx
@@ -19,8 +19,8 @@ namespace sdr { namespace overlay {
class SVX_DLLPUBLIC OverlayHandle final : public OverlayObjectWithBasePosition
{
- basegfx::B2DSize maSize;
- Color maStrokeColor;
+ basegfx::B2DSize const maSize;
+ Color const maStrokeColor;
// geometry creation for OverlayObject
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override;
diff --git a/svx/inc/sdr/overlay/overlayhelpline.hxx b/svx/inc/sdr/overlay/overlayhelpline.hxx
index 84077f10367d..b46712eae8cb 100644
--- a/svx/inc/sdr/overlay/overlayhelpline.hxx
+++ b/svx/inc/sdr/overlay/overlayhelpline.hxx
@@ -31,7 +31,7 @@ namespace sdr
class OverlayHelplineStriped final : public OverlayObjectWithBasePosition
{
// remember HelpLineKind
- SdrHelpLineKind meKind;
+ SdrHelpLineKind const meKind;
// geometry creation for OverlayObject
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override;
diff --git a/svx/inc/sdr/overlay/overlayline.hxx b/svx/inc/sdr/overlay/overlayline.hxx
index 33ec22c0e25d..c365f79d42eb 100644
--- a/svx/inc/sdr/overlay/overlayline.hxx
+++ b/svx/inc/sdr/overlay/overlayline.hxx
@@ -30,7 +30,7 @@ namespace sdr
class OverlayLineStriped final : public OverlayObjectWithBasePosition
{
// second position in pixel
- basegfx::B2DPoint maSecondPosition;
+ basegfx::B2DPoint const maSecondPosition;
// geometry creation for OverlayObject
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override;
diff --git a/svx/inc/sdr/overlay/overlayrectangle.hxx b/svx/inc/sdr/overlay/overlayrectangle.hxx
index f9de1178922e..0a169d456d99 100644
--- a/svx/inc/sdr/overlay/overlayrectangle.hxx
+++ b/svx/inc/sdr/overlay/overlayrectangle.hxx
@@ -31,14 +31,14 @@ namespace sdr
class OverlayRectangle : public OverlayObjectWithBasePosition
{
// geometric definitions
- basegfx::B2DPoint maSecondPosition;
+ basegfx::B2DPoint const maSecondPosition;
const double mfTransparence;
const double mfDiscreteGrow;
const double mfDiscreteShrink;
const double mfRotation;
// #i53216# added CursorBlinkTime (in ms)
- sal_uInt32 mnBlinkTime;
+ sal_uInt32 const mnBlinkTime;
// Flag to remember which state to draw. Inited with false (0)
bool mbOverlayState : 1;
diff --git a/svx/inc/sdr/overlay/overlayrollingrectangle.hxx b/svx/inc/sdr/overlay/overlayrollingrectangle.hxx
index 7a18f1cb4b8f..d31ff48405c7 100644
--- a/svx/inc/sdr/overlay/overlayrollingrectangle.hxx
+++ b/svx/inc/sdr/overlay/overlayrollingrectangle.hxx
@@ -33,10 +33,10 @@ namespace sdr
basegfx::B2DPoint maSecondPosition;
// Flag to switch on/off long lines to the OutputDevice bounds
- bool mbExtendedLines : 1;
+ bool const mbExtendedLines : 1;
// Flag to switch on/off the bounds itself
- bool mbShowBounds : 1;
+ bool const mbShowBounds : 1;
// geometry creation for OverlayObject
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override;
diff --git a/svx/inc/sdr/overlay/overlaytools.hxx b/svx/inc/sdr/overlay/overlaytools.hxx
index ecc01bc72013..ed84a04b9dfc 100644
--- a/svx/inc/sdr/overlay/overlaytools.hxx
+++ b/svx/inc/sdr/overlay/overlaytools.hxx
@@ -29,16 +29,16 @@ namespace drawinglayer { namespace primitive2d {
class OverlayStaticRectanglePrimitive : public DiscreteMetricDependentPrimitive2D
{
private:
- basegfx::B2DPoint maPosition;
- basegfx::B2DSize maSize;
+ basegfx::B2DPoint const maPosition;
+ basegfx::B2DSize const maSize;
// the graphic definition
- basegfx::BColor maStrokeColor;
- basegfx::BColor maFillColor;
- double mfTransparence;
+ basegfx::BColor const maStrokeColor;
+ basegfx::BColor const maFillColor;
+ double const mfTransparence;
// the rotation of the primitive itself
- double mfRotation;
+ double const mfRotation;
protected:
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
@@ -72,19 +72,19 @@ namespace drawinglayer
{
private:
// The BitmapEx to use, PixelSize is used
- BitmapEx maBitmapEx;
+ BitmapEx const maBitmapEx;
// The logic position
- basegfx::B2DPoint maBasePosition;
+ basegfx::B2DPoint const maBasePosition;
// The pixel inside the BitmapEx which is assocciated with
// the target position (offset in the bitmap)
- sal_uInt16 mnCenterX;
- sal_uInt16 mnCenterY;
+ sal_uInt16 const mnCenterX;
+ sal_uInt16 const mnCenterY;
// evtl. rotation and shear around center
- double mfShearX;
- double mfRotation;
+ double const mfShearX;
+ double const mfRotation;
protected:
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
@@ -124,12 +124,12 @@ namespace drawinglayer
{
private:
// The logic position
- basegfx::B2DPoint maBasePosition;
+ basegfx::B2DPoint const maBasePosition;
// The stripe colors and legth
- basegfx::BColor maRGBColorA;
- basegfx::BColor maRGBColorB;
- double mfDiscreteDashLength;
+ basegfx::BColor const maRGBColorA;
+ basegfx::BColor const maRGBColorB;
+ double const mfDiscreteDashLength;
protected:
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
@@ -166,18 +166,18 @@ namespace drawinglayer
{
private:
// the logic rectangle definition
- basegfx::B2DRange maObjectRange;
+ basegfx::B2DRange const maObjectRange;
// the graphic definition
- basegfx::BColor maColor;
- double mfTransparence;
+ basegfx::BColor const maColor;
+ double const mfTransparence;
// the discrete grow and shrink of the box
- double mfDiscreteGrow;
- double mfDiscreteShrink;
+ double const mfDiscreteGrow;
+ double const mfDiscreteShrink;
// the rotation of the primitive itself
- double mfRotation;
+ double const mfRotation;
protected:
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
@@ -225,15 +225,15 @@ namespace drawinglayer
{
private:
// The logic position
- basegfx::B2DPoint maBasePosition;
+ basegfx::B2DPoint const maBasePosition;
// the style
- HelplineStyle meStyle;
+ HelplineStyle const meStyle;
// The stripe colors and legth
- basegfx::BColor maRGBColorA;
- basegfx::BColor maRGBColorB;
- double mfDiscreteDashLength;
+ basegfx::BColor const maRGBColorA;
+ basegfx::BColor const maRGBColorB;
+ double const mfDiscreteDashLength;
protected:
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
@@ -273,12 +273,12 @@ namespace drawinglayer
{
private:
// The logic range
- basegfx::B2DRange maRollingRectangle;
+ basegfx::B2DRange const maRollingRectangle;
// The stripe colors and legth
- basegfx::BColor maRGBColorA;
- basegfx::BColor maRGBColorB;
- double mfDiscreteDashLength;
+ basegfx::BColor const maRGBColorA;
+ basegfx::BColor const maRGBColorB;
+ double const mfDiscreteDashLength;
protected:
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
diff --git a/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx
index a22cf0a5cc5d..fa9d2ae9f4c9 100644
--- a/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx
@@ -36,11 +36,11 @@ namespace drawinglayer
class SdrCaptionPrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- ::basegfx::B2DHomMatrix maTransform;
- attribute::SdrLineFillShadowTextAttribute maSdrLFSTAttribute;
+ ::basegfx::B2DHomMatrix const maTransform;
+ attribute::SdrLineFillShadowTextAttribute const maSdrLFSTAttribute;
::basegfx::B2DPolygon maTail;
- double mfCornerRadiusX; // [0.0..1.0] relative to 1/2 width
- double mfCornerRadiusY; // [0.0..1.0] relative to 1/2 height
+ double const mfCornerRadiusX; // [0.0..1.0] relative to 1/2 width
+ double const mfCornerRadiusY; // [0.0..1.0] relative to 1/2 height
protected:
// local decomposition.
diff --git a/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx
index 393520139ce9..dab0bce74560 100644
--- a/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx
@@ -35,8 +35,8 @@ namespace drawinglayer
class SdrConnectorPrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- attribute::SdrLineShadowTextAttribute maSdrLSTAttribute;
- ::basegfx::B2DPolygon maUnitPolygon;
+ attribute::SdrLineShadowTextAttribute const maSdrLSTAttribute;
+ ::basegfx::B2DPolygon const maUnitPolygon;
protected:
// local decomposition.
diff --git a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
index 1fe8b512bf4a..285185684f15 100644
--- a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
@@ -35,17 +35,17 @@ namespace drawinglayer
class SdrCustomShapePrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- attribute::SdrShadowTextAttribute maSdrSTAttribute;
- Primitive2DContainer maSubPrimitives;
- basegfx::B2DHomMatrix maTextBox;
+ attribute::SdrShadowTextAttribute const maSdrSTAttribute;
+ Primitive2DContainer const maSubPrimitives;
+ basegfx::B2DHomMatrix const maTextBox;
// defines if SdrTextWordWrapItem was set at SdrObjCustomShape which means
// that the text needs to be block formatted
- bool mbWordWrap : 1;
+ bool const mbWordWrap : 1;
// defines that the object contains/is a 3D AutoShape. Needed for
// making exceptions with shadow generation
- bool mb3DShape : 1;
+ bool const mb3DShape : 1;
protected:
// local decomposition.
diff --git a/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx
index b1951b845fc9..837eda4361dd 100644
--- a/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx
@@ -35,8 +35,8 @@ namespace drawinglayer
class SdrEllipsePrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- ::basegfx::B2DHomMatrix maTransform;
- attribute::SdrLineFillShadowTextAttribute maSdrLFSTAttribute;
+ ::basegfx::B2DHomMatrix const maTransform;
+ attribute::SdrLineFillShadowTextAttribute const maSdrLFSTAttribute;
protected:
// local decomposition.
@@ -68,11 +68,11 @@ namespace drawinglayer
class SdrEllipseSegmentPrimitive2D : public SdrEllipsePrimitive2D
{
private:
- double mfStartAngle;
- double mfEndAngle;
+ double const mfStartAngle;
+ double const mfEndAngle;
- bool mbCloseSegment : 1;
- bool mbCloseUsingCenter : 1;
+ bool const mbCloseSegment : 1;
+ bool const mbCloseUsingCenter : 1;
protected:
// local decomposition.
diff --git a/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx
index 551089373e29..38d334604fba 100644
--- a/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx
@@ -36,9 +36,9 @@ namespace drawinglayer
class SdrGrafPrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- ::basegfx::B2DHomMatrix maTransform;
- attribute::SdrLineFillShadowTextAttribute maSdrLFSTAttribute;
- GraphicObject maGraphicObject;
+ ::basegfx::B2DHomMatrix const maTransform;
+ attribute::SdrLineFillShadowTextAttribute const maSdrLFSTAttribute;
+ GraphicObject const maGraphicObject;
GraphicAttr maGraphicAttr;
protected:
diff --git a/svx/inc/sdr/primitive2d/sdrmeasureprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrmeasureprimitive2d.hxx
index f155f309cc7d..b28158895b2d 100644
--- a/svx/inc/sdr/primitive2d/sdrmeasureprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrmeasureprimitive2d.hxx
@@ -48,20 +48,20 @@ namespace drawinglayer
class SdrMeasurePrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- attribute::SdrLineShadowTextAttribute maSdrLSTAttribute;
- basegfx::B2DPoint maStart;
- basegfx::B2DPoint maEnd;
- MeasureTextPosition meHorizontal;
- MeasureTextPosition meVertical;
- double mfDistance;
- double mfUpper;
- double mfLower;
- double mfLeftDelta;
- double mfRightDelta;
-
- bool mbBelow : 1;
- bool mbTextRotation : 1;
- bool mbTextAutoAngle : 1;
+ attribute::SdrLineShadowTextAttribute const maSdrLSTAttribute;
+ basegfx::B2DPoint const maStart;
+ basegfx::B2DPoint const maEnd;
+ MeasureTextPosition const meHorizontal;
+ MeasureTextPosition const meVertical;
+ double const mfDistance;
+ double const mfUpper;
+ double const mfLower;
+ double const mfLeftDelta;
+ double const mfRightDelta;
+
+ bool const mbBelow : 1;
+ bool const mbTextRotation : 1;
+ bool const mbTextAutoAngle : 1;
// internal decomposition helper
Primitive2DReference impCreatePart(
diff --git a/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx b/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx
index c6b22ffbbcf8..53eec99cb9e6 100644
--- a/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx
@@ -35,9 +35,9 @@ namespace drawinglayer
class SdrOle2Primitive2D : public BasePrimitive2D
{
private:
- Primitive2DContainer maOLEContent;
- basegfx::B2DHomMatrix maTransform;
- attribute::SdrLineFillShadowTextAttribute maSdrLFSTAttribute;
+ Primitive2DContainer const maOLEContent;
+ basegfx::B2DHomMatrix const maTransform;
+ attribute::SdrLineFillShadowTextAttribute const maSdrLFSTAttribute;
public:
SdrOle2Primitive2D(
diff --git a/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx
index 98b74e69e6e3..b16a7fd1795f 100644
--- a/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx
@@ -38,12 +38,12 @@ namespace drawinglayer
{
private:
tools::WeakReference<SdrOle2Obj> mpSdrOle2Obj;
- basegfx::B2DHomMatrix maObjectTransform;
+ basegfx::B2DHomMatrix const maObjectTransform;
// #i104867# The GraphicVersion number to identify in operator== if
// the graphic has changed, but without fetching it (which may
// be expensive, e.g. triggering chart creation)
- sal_uInt32 mnGraphicVersion;
+ sal_uInt32 const mnGraphicVersion;
protected:
// local decomposition.
diff --git a/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx
index a9d86cb34481..732b5de30dec 100644
--- a/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx
@@ -36,9 +36,9 @@ namespace drawinglayer
class SdrPathPrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- basegfx::B2DHomMatrix maTransform;
- attribute::SdrLineFillShadowTextAttribute maSdrLFSTAttribute;
- basegfx::B2DPolyPolygon maUnitPolyPolygon;
+ basegfx::B2DHomMatrix const maTransform;
+ attribute::SdrLineFillShadowTextAttribute const maSdrLFSTAttribute;
+ basegfx::B2DPolyPolygon const maUnitPolyPolygon;
// OperationSmiley: Added to be able to define a FillGeometry different from local
// geometry. It is ignored when empty and/or equal to UnitPolyPolygon.
@@ -49,7 +49,7 @@ namespace drawinglayer
// 'same' is in quotes since it is a UnitPolygon, so being relative to the
// unit polygon of the local geometry (UnitPolyPolygon). The definition is complete
// when applying the also given transfomation (maTransform)
- basegfx::B2DPolyPolygon maUnitDefinitionPolyPolygon;
+ basegfx::B2DPolyPolygon const maUnitDefinitionPolyPolygon;
protected:
// local decomposition.
diff --git a/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx
index 5b0896daae6d..ea8567acdf57 100644
--- a/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx
@@ -35,13 +35,13 @@ namespace drawinglayer
class SdrRectanglePrimitive2D : public BufferedDecompositionPrimitive2D
{
private:
- basegfx::B2DHomMatrix maTransform;
- attribute::SdrLineFillShadowTextAttribute maSdrLFSTAttribute;
- double mfCornerRadiusX; // [0.0..1.0] relative to 1/2 width
- double mfCornerRadiusY; // [0.0..1.0] relative to 1/2 height
+ basegfx::B2DHomMatrix const maTransform;
+ attribute::SdrLineFillShadowTextAttribute const maSdrLFSTAttribute;
+ double const mfCornerRadiusX; // [0.0..1.0] relative to 1/2 width
+ double const mfCornerRadiusY; // [0.0..1.0] relative to 1/2 height
// flag which decides if the HitArea should be the filled geometry
- bool mbForceFillForHitTest : 1;
+ bool const mbForceFillForHitTest : 1;
protected:
// local decomposition.
diff --git a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx
index 76327e5096ad..30f5ccb0f833 100644
--- a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx
@@ -109,10 +109,10 @@ namespace drawinglayer
{
private:
// unit contour polygon (scaled to [0.0 .. 1.0])
- basegfx::B2DPolyPolygon maUnitPolyPolygon;
+ basegfx::B2DPolyPolygon const maUnitPolyPolygon;
// complete contour polygon transform (scale, rotate, shear, translate)
- basegfx::B2DHomMatrix maObjectTransform;
+ basegfx::B2DHomMatrix const maObjectTransform;
protected:
// local decomposition.
@@ -150,10 +150,10 @@ namespace drawinglayer
{
private:
// the path to use. Each paragraph will use one Polygon.
- basegfx::B2DPolyPolygon maPathPolyPolygon;
+ basegfx::B2DPolyPolygon const maPathPolyPolygon;
// the Fontwork parameters
- attribute::SdrFormTextAttribute maSdrFormTextAttribute;
+ attribute::SdrFormTextAttribute const maSdrFormTextAttribute;
protected:
// local decomposition.
@@ -191,17 +191,17 @@ namespace drawinglayer
{
private:
// text range transformation from unit range ([0.0 .. 1.0]) to text range
- basegfx::B2DHomMatrix maTextRangeTransform;
+ basegfx::B2DHomMatrix const maTextRangeTransform;
// text alignments
- SdrTextHorzAdjust maSdrTextHorzAdjust;
- SdrTextVertAdjust maSdrTextVertAdjust;
+ SdrTextHorzAdjust const maSdrTextHorzAdjust;
+ SdrTextVertAdjust const maSdrTextVertAdjust;
- bool mbFixedCellHeight : 1;
- bool mbUnlimitedPage : 1; // force layout with no text break
- bool mbCellText : 1; // this is a cell text as block text
- bool mbWordWrap : 1; // for CustomShapes text layout
- bool mbClipOnBounds : 1; // for CustomShapes text layout
+ bool const mbFixedCellHeight : 1;
+ bool const mbUnlimitedPage : 1; // force layout with no text break
+ bool const mbCellText : 1; // this is a cell text as block text
+ bool const mbWordWrap : 1; // for CustomShapes text layout
+ bool const mbClipOnBounds : 1; // for CustomShapes text layout
protected:
// local decomposition.
@@ -251,9 +251,9 @@ namespace drawinglayer
{
private:
// text range transformation from unit range ([0.0 .. 1.0]) to text range
- basegfx::B2DHomMatrix maTextRangeTransform;
+ basegfx::B2DHomMatrix const maTextRangeTransform;
- bool mbFixedCellHeight : 1;
+ bool const mbFixedCellHeight : 1;
protected:
// local decomposition.
@@ -290,9 +290,9 @@ namespace drawinglayer
class SdrAutoFitTextPrimitive2D : public SdrTextPrimitive2D
{
private:
- ::basegfx::B2DHomMatrix maTextRangeTransform; // text range transformation from unit range ([0.0 .. 1.0]) to text range
+ ::basegfx::B2DHomMatrix const maTextRangeTransform; // text range transformation from unit range ([0.0 .. 1.0]) to text range
- bool mbWordWrap : 1; // for CustomShapes text layout
+ bool const mbWordWrap : 1; // for CustomShapes text layout
protected:
// local decomposition.
@@ -330,7 +330,7 @@ namespace drawinglayer
private:
// XXX: might have position of overflowing text
- ::basegfx::B2DHomMatrix maTextRangeTransform; // text range transformation from unit range ([0.0 .. 1.0]) to text range
+ ::basegfx::B2DHomMatrix const maTextRangeTransform; // text range transformation from unit range ([0.0 .. 1.0]) to text range
protected:
// local decomposition.
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const override;
diff --git a/svx/inc/xpolyimp.hxx b/svx/inc/xpolyimp.hxx
index 425d2a551058..49831dd45aaf 100644
--- a/svx/inc/xpolyimp.hxx
+++ b/svx/inc/xpolyimp.hxx
@@ -35,7 +35,7 @@ public:
Point* pOldPointAry;
bool bDeleteOldPoints;
sal_uInt16 nSize;
- sal_uInt16 nResize;
+ sal_uInt16 const nResize;
sal_uInt16 nPoints;
ImpXPolygon( sal_uInt16 nInitSize, sal_uInt16 nResize=16 );