diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 09:28:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 10:34:58 +0200 |
commit | 8302f334b66f9d16e208a7cf4d4d1033664eb0e4 (patch) | |
tree | b29579b478229b6716601ffd70bc996f04114251 /oox | |
parent | 9fd9d25d04709a3ec6957f6b40d5534bec86ed6a (diff) |
loplugin:constparams in oox
Change-Id: I43984b4ece82da39ca61a91fa14e4660298509dd
Reviewed-on: https://gerrit.libreoffice.org/40581
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
137 files changed, 272 insertions, 272 deletions
diff --git a/oox/inc/drawingml/chart/plotareaconverter.hxx b/oox/inc/drawingml/chart/plotareaconverter.hxx index 07061c1cc474..895a11977ede 100644 --- a/oox/inc/drawingml/chart/plotareaconverter.hxx +++ b/oox/inc/drawingml/chart/plotareaconverter.hxx @@ -43,7 +43,7 @@ public: /** Converts the OOXML plot area model to a chart2 diagram. */ void convertFromModel( const css::uno::Reference< css::chart2::XDiagram >& rxDiagram, - TypeGroupConverter& rTypeGroup ); + TypeGroupConverter const & rTypeGroup ); }; diff --git a/oox/inc/drawingml/clrschemecontext.hxx b/oox/inc/drawingml/clrschemecontext.hxx index b16f1c25a7f6..5947b3119b93 100644 --- a/oox/inc/drawingml/clrschemecontext.hxx +++ b/oox/inc/drawingml/clrschemecontext.hxx @@ -30,14 +30,14 @@ namespace oox { namespace drawingml { class clrMapContext : public oox::core::ContextHandler2 { public: - clrMapContext( ::oox::core::ContextHandler2Helper& rParent, + clrMapContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, ClrMap& rClrMap ); }; class clrSchemeColorContext : private Color, public ColorContext { public: - clrSchemeColorContext( ::oox::core::ContextHandler2Helper& rParent, ClrScheme& rClrScheme, sal_Int32 nColorToken ); + clrSchemeColorContext( ::oox::core::ContextHandler2Helper const & rParent, ClrScheme& rClrScheme, sal_Int32 nColorToken ); virtual ~clrSchemeColorContext() override; private: @@ -48,7 +48,7 @@ private: class clrSchemeContext : public oox::core::ContextHandler2 { public: - clrSchemeContext( ::oox::core::ContextHandler2Helper& rParent, ClrScheme& rClrScheme ); + clrSchemeContext( ::oox::core::ContextHandler2Helper const & rParent, ClrScheme& rClrScheme ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; private: diff --git a/oox/inc/drawingml/colorchoicecontext.hxx b/oox/inc/drawingml/colorchoicecontext.hxx index 86d8ae7dade7..29889f494e3d 100644 --- a/oox/inc/drawingml/colorchoicecontext.hxx +++ b/oox/inc/drawingml/colorchoicecontext.hxx @@ -33,7 +33,7 @@ class Color; class ColorValueContext : public ::oox::core::ContextHandler2 { public: - explicit ColorValueContext( ::oox::core::ContextHandler2Helper& rParent, Color& rColor ); + explicit ColorValueContext( ::oox::core::ContextHandler2Helper const & rParent, Color& rColor ); virtual void onStartElement( @@ -54,7 +54,7 @@ private: class ColorContext : public ::oox::core::ContextHandler2 { public: - explicit ColorContext( ::oox::core::ContextHandler2Helper& rParent, Color& rColor ); + explicit ColorContext( ::oox::core::ContextHandler2Helper const & rParent, Color& rColor ); virtual ::oox::core::ContextHandlerRef onCreateContext( diff --git a/oox/inc/drawingml/customshapegeometry.hxx b/oox/inc/drawingml/customshapegeometry.hxx index a8a97c0882ad..ad447354fd77 100644 --- a/oox/inc/drawingml/customshapegeometry.hxx +++ b/oox/inc/drawingml/customshapegeometry.hxx @@ -32,7 +32,7 @@ namespace oox { namespace drawingml { class CustomShapeGeometryContext : public ::oox::core::ContextHandler2 { public: - CustomShapeGeometryContext( ::oox::core::ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties ); + CustomShapeGeometryContext( ::oox::core::ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; private: @@ -44,7 +44,7 @@ private: class PresetShapeGeometryContext : public ::oox::core::ContextHandler2 { public: - PresetShapeGeometryContext( ::oox::core::ContextHandler2Helper& rParent, const ::oox::AttributeList& rAttributes, CustomShapeProperties& rCustomShapeProperties ); + PresetShapeGeometryContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, CustomShapeProperties& rCustomShapeProperties ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; private: @@ -56,7 +56,7 @@ private: class PresetTextShapeContext : public ::oox::core::ContextHandler2 { public: - PresetTextShapeContext( ::oox::core::ContextHandler2Helper& rParent, const ::oox::AttributeList& rAttributes, CustomShapeProperties& rCustomShapeProperties ); + PresetTextShapeContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, CustomShapeProperties& rCustomShapeProperties ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; private: diff --git a/oox/inc/drawingml/diagram/diagram.hxx b/oox/inc/drawingml/diagram/diagram.hxx index 05a4a5dffb9e..5277d98d2dee 100644 --- a/oox/inc/drawingml/diagram/diagram.hxx +++ b/oox/inc/drawingml/diagram/diagram.hxx @@ -34,7 +34,7 @@ namespace oox { namespace drawingml { generate and layout the shapes, and push it as children into the referenced shape. */ -void loadDiagram( ShapePtr& pShape, +void loadDiagram( ShapePtr const & pShape, core::XmlFilterBase& rFilter, const OUString& rDataModelPath, const OUString& rLayoutPath, diff --git a/oox/inc/drawingml/guidcontext.hxx b/oox/inc/drawingml/guidcontext.hxx index f43b0906af7d..d3b1aba2e05b 100644 --- a/oox/inc/drawingml/guidcontext.hxx +++ b/oox/inc/drawingml/guidcontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { { public: - GuidContext( ::oox::core::ContextHandler2Helper& rParent, OUString& rGuidId ); + GuidContext( ::oox::core::ContextHandler2Helper const & rParent, OUString& rGuidId ); virtual void onCharacters( const OUString& aChars ) override; private: diff --git a/oox/inc/drawingml/linepropertiescontext.hxx b/oox/inc/drawingml/linepropertiescontext.hxx index 950a7edf7926..5b33cdc28259 100644 --- a/oox/inc/drawingml/linepropertiescontext.hxx +++ b/oox/inc/drawingml/linepropertiescontext.hxx @@ -30,7 +30,7 @@ struct LineProperties; class LinePropertiesContext : public ::oox::core::ContextHandler2 { public: - LinePropertiesContext( ::oox::core::ContextHandler2Helper& rParent, + LinePropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, LineProperties& rLineProperties ) throw(); virtual ~LinePropertiesContext() override; diff --git a/oox/inc/drawingml/misccontexts.hxx b/oox/inc/drawingml/misccontexts.hxx index 4c26599a9787..00c3c9a7d0dd 100644 --- a/oox/inc/drawingml/misccontexts.hxx +++ b/oox/inc/drawingml/misccontexts.hxx @@ -33,7 +33,7 @@ class SolidFillContext : public ColorContext { public: explicit SolidFillContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, FillProperties& rFillProps ); }; @@ -43,7 +43,7 @@ class GradientFillContext : public ::oox::core::ContextHandler2 { public: explicit GradientFillContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, GradientFillProperties& rGradientProps ); @@ -61,7 +61,7 @@ class PatternFillContext : public ::oox::core::ContextHandler2 { public: explicit PatternFillContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, PatternFillProperties& rPatternProps ); @@ -81,7 +81,7 @@ class ArtisticEffectContext : public ::oox::core::ContextHandler2 { public: explicit ArtisticEffectContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, ArtisticEffectProperties& rEffect ); virtual ~ArtisticEffectContext() override; @@ -101,7 +101,7 @@ class BlipExtensionContext : public ::oox::core::ContextHandler2 { public: explicit BlipExtensionContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, BlipFillProperties& rBlipProps ); virtual ~BlipExtensionContext() override; @@ -121,7 +121,7 @@ class DuotoneContext : public ::oox::core::ContextHandler2 { public: explicit DuotoneContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, BlipFillProperties& rBlipProps ); virtual ~DuotoneContext() override; @@ -142,7 +142,7 @@ class ColorChangeContext : public ::oox::core::ContextHandler2 { public: explicit ColorChangeContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, BlipFillProperties& rBlipProps ); virtual ~ColorChangeContext() override; @@ -163,7 +163,7 @@ class BlipContext : public ::oox::core::ContextHandler2 { public: explicit BlipContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, BlipFillProperties& rBlipProps ); @@ -181,7 +181,7 @@ class BlipFillContext : public ::oox::core::ContextHandler2 { public: explicit BlipFillContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, BlipFillProperties& rBlipProps ); @@ -200,7 +200,7 @@ class FillPropertiesContext : public ::oox::core::ContextHandler2 { public: explicit FillPropertiesContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, FillProperties& rFillProps ); virtual ::oox::core::ContextHandlerRef @@ -210,7 +210,7 @@ public: static ::oox::core::ContextHandlerRef createFillContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, sal_Int32 nElement, const ::oox::AttributeList& rAttribs, FillProperties& rFillProps ); @@ -230,7 +230,7 @@ class SimpleFillPropertiesContext : private FillProperties, public FillPropertie { public: explicit SimpleFillPropertiesContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, Color& rColor ); virtual ~SimpleFillPropertiesContext() override; diff --git a/oox/inc/drawingml/objectdefaultcontext.hxx b/oox/inc/drawingml/objectdefaultcontext.hxx index f08092b4e6c2..bfc55842a053 100644 --- a/oox/inc/drawingml/objectdefaultcontext.hxx +++ b/oox/inc/drawingml/objectdefaultcontext.hxx @@ -29,7 +29,7 @@ class Theme; class objectDefaultContext : public oox::core::ContextHandler2 { public: - objectDefaultContext( ::oox::core::ContextHandler2Helper& rParent, Theme& rTheme ); + objectDefaultContext( ::oox::core::ContextHandler2Helper const & rParent, Theme& rTheme ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; protected: diff --git a/oox/inc/drawingml/scene3dcontext.hxx b/oox/inc/drawingml/scene3dcontext.hxx index cfcb042bd262..6377062f62eb 100644 --- a/oox/inc/drawingml/scene3dcontext.hxx +++ b/oox/inc/drawingml/scene3dcontext.hxx @@ -30,7 +30,7 @@ struct Shape3DProperties; class Scene3DRotationPropertiesContext : public ::oox::core::ContextHandler2 { public: - Scene3DRotationPropertiesContext( ::oox::core::ContextHandler2Helper& rParent, RotationProperties& rRotationProperties ) throw(); + Scene3DRotationPropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, RotationProperties& rRotationProperties ) throw(); ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; @@ -41,7 +41,7 @@ private: class Scene3DPropertiesContext : public ::oox::core::ContextHandler2 { public: - Scene3DPropertiesContext( ::oox::core::ContextHandler2Helper& rParent, Shape3DProperties& r3DProperties ) throw(); + Scene3DPropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, Shape3DProperties& r3DProperties ) throw(); ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; @@ -52,7 +52,7 @@ private: class Shape3DPropertiesContext : public ::oox::core::ContextHandler2 { public: - Shape3DPropertiesContext( ::oox::core::ContextHandler2Helper& rParent, const ::oox::AttributeList& rAttribs, Shape3DProperties& r3DProperties ) throw(); + Shape3DPropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, Shape3DProperties& r3DProperties ) throw(); ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/shapepropertiescontext.hxx b/oox/inc/drawingml/shapepropertiescontext.hxx index d401aa7aca08..5d1e41ccabed 100644 --- a/oox/inc/drawingml/shapepropertiescontext.hxx +++ b/oox/inc/drawingml/shapepropertiescontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { class ShapePropertiesContext : public ::oox::core::ContextHandler2 { public: - ShapePropertiesContext( ::oox::core::ContextHandler2Helper& rParent, Shape& rShape ); + ShapePropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, Shape& rShape ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/shapestylecontext.hxx b/oox/inc/drawingml/shapestylecontext.hxx index 693d9bcdbfdc..fe4851a38392 100644 --- a/oox/inc/drawingml/shapestylecontext.hxx +++ b/oox/inc/drawingml/shapestylecontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { class ShapeStyleContext : public ::oox::core::ContextHandler2 { public: - ShapeStyleContext( ::oox::core::ContextHandler2Helper& rParent, Shape& rShape ); + ShapeStyleContext( ::oox::core::ContextHandler2Helper const & rParent, Shape& rShape ); virtual ~ShapeStyleContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/spdefcontext.hxx b/oox/inc/drawingml/spdefcontext.hxx index 18785b9820b0..9d7e45839fec 100644 --- a/oox/inc/drawingml/spdefcontext.hxx +++ b/oox/inc/drawingml/spdefcontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { class spDefContext : public oox::core::ContextHandler2 { public: - spDefContext( ::oox::core::ContextHandler2Helper& rParent, Shape& rDefaultObject ); + spDefContext( ::oox::core::ContextHandler2Helper const & rParent, Shape& rDefaultObject ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; protected: diff --git a/oox/inc/drawingml/table/tablebackgroundstylecontext.hxx b/oox/inc/drawingml/table/tablebackgroundstylecontext.hxx index dda5376e0b64..9eb401acbd40 100644 --- a/oox/inc/drawingml/table/tablebackgroundstylecontext.hxx +++ b/oox/inc/drawingml/table/tablebackgroundstylecontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { namespace table { class TableBackgroundStyleContext : public ::oox::core::ContextHandler2 { public: - TableBackgroundStyleContext( ::oox::core::ContextHandler2Helper& rParent, TableStyle& rTableStyle ); + TableBackgroundStyleContext( ::oox::core::ContextHandler2Helper const & rParent, TableStyle& rTableStyle ); virtual ~TableBackgroundStyleContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/table/tablecellcontext.hxx b/oox/inc/drawingml/table/tablecellcontext.hxx index 320c3ffd1805..f0bd393e9e7c 100644 --- a/oox/inc/drawingml/table/tablecellcontext.hxx +++ b/oox/inc/drawingml/table/tablecellcontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { namespace table { class TableCellContext : public ::oox::core::ContextHandler2 { public: - TableCellContext( ::oox::core::ContextHandler2Helper& rParent, + TableCellContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, TableCell& rTableCell ); virtual ~TableCellContext() override; diff --git a/oox/inc/drawingml/table/tablecontext.hxx b/oox/inc/drawingml/table/tablecontext.hxx index 4157347e73ce..bb69e2f37843 100644 --- a/oox/inc/drawingml/table/tablecontext.hxx +++ b/oox/inc/drawingml/table/tablecontext.hxx @@ -29,7 +29,7 @@ class TableProperties; class TableContext : public ShapeContext { public: - TableContext( ::oox::core::ContextHandler2Helper& rParent, const ShapePtr& pShapePtr ); + TableContext( ::oox::core::ContextHandler2Helper const & rParent, const ShapePtr& pShapePtr ); virtual ~TableContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/table/tablepartstylecontext.hxx b/oox/inc/drawingml/table/tablepartstylecontext.hxx index 2a734d4d4ae5..a450f39d5ef7 100644 --- a/oox/inc/drawingml/table/tablepartstylecontext.hxx +++ b/oox/inc/drawingml/table/tablepartstylecontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { namespace table { class TablePartStyleContext : public ::oox::core::ContextHandler2 { public: - TablePartStyleContext( ::oox::core::ContextHandler2Helper& rParent, TableStylePart& rTableStylePart ); + TablePartStyleContext( ::oox::core::ContextHandler2Helper const & rParent, TableStylePart& rTableStylePart ); virtual ~TablePartStyleContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/table/tablerowcontext.hxx b/oox/inc/drawingml/table/tablerowcontext.hxx index 129ff78d8b0c..2c0098313b34 100644 --- a/oox/inc/drawingml/table/tablerowcontext.hxx +++ b/oox/inc/drawingml/table/tablerowcontext.hxx @@ -29,7 +29,7 @@ class TableRow; class TableRowContext : public ::oox::core::ContextHandler2 { public: - TableRowContext( ::oox::core::ContextHandler2Helper& rParent, + TableRowContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, TableRow& rTableRow ); virtual ~TableRowContext() override; diff --git a/oox/inc/drawingml/table/tablestylecellstylecontext.hxx b/oox/inc/drawingml/table/tablestylecellstylecontext.hxx index 5bce17c37397..686d26788349 100644 --- a/oox/inc/drawingml/table/tablestylecellstylecontext.hxx +++ b/oox/inc/drawingml/table/tablestylecellstylecontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { namespace table { class TableStyleCellStyleContext : public ::oox::core::ContextHandler2 { public: - TableStyleCellStyleContext( ::oox::core::ContextHandler2Helper& rParent, TableStylePart& rTableStylePart ); + TableStyleCellStyleContext( ::oox::core::ContextHandler2Helper const & rParent, TableStylePart& rTableStylePart ); virtual ~TableStyleCellStyleContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/table/tablestylecontext.hxx b/oox/inc/drawingml/table/tablestylecontext.hxx index 72f747c04e5f..58af37dc7dcd 100644 --- a/oox/inc/drawingml/table/tablestylecontext.hxx +++ b/oox/inc/drawingml/table/tablestylecontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { namespace table { class TableStyleContext : public ::oox::core::ContextHandler2 { public: - TableStyleContext( ::oox::core::ContextHandler2Helper& rParent, + TableStyleContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, TableStyle& rTableStyle ); virtual ~TableStyleContext() override; diff --git a/oox/inc/drawingml/table/tablestyletextstylecontext.hxx b/oox/inc/drawingml/table/tablestyletextstylecontext.hxx index 9bef38329848..28a56f88c840 100644 --- a/oox/inc/drawingml/table/tablestyletextstylecontext.hxx +++ b/oox/inc/drawingml/table/tablestyletextstylecontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { namespace table { class TableStyleTextStyleContext : public ::oox::core::ContextHandler2 { public: - TableStyleTextStyleContext( ::oox::core::ContextHandler2Helper& rParent, + TableStyleTextStyleContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, TableStylePart& rTableStylePart ); virtual ~TableStyleTextStyleContext() override; diff --git a/oox/inc/drawingml/textbodycontext.hxx b/oox/inc/drawingml/textbodycontext.hxx index faa222e733cd..ad1bac8c47a0 100644 --- a/oox/inc/drawingml/textbodycontext.hxx +++ b/oox/inc/drawingml/textbodycontext.hxx @@ -31,7 +31,7 @@ namespace oox { namespace drawingml { class TextBodyContext : public ::oox::core::ContextHandler2 { public: - TextBodyContext( ::oox::core::ContextHandler2Helper& rParent, TextBody& rTextBody ); + TextBodyContext( ::oox::core::ContextHandler2Helper const & rParent, TextBody& rTextBody ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; @@ -43,7 +43,7 @@ protected: class RegularTextRunContext : public ::oox::core::ContextHandler2 { public: - RegularTextRunContext( ::oox::core::ContextHandler2Helper& rParent, TextRunPtr const & pRunPtr ); + RegularTextRunContext( ::oox::core::ContextHandler2Helper const & rParent, TextRunPtr const & pRunPtr ); virtual void onEndElement() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/textbodypropertiescontext.hxx b/oox/inc/drawingml/textbodypropertiescontext.hxx index 069edd2be2f9..7ca81ac45cb4 100644 --- a/oox/inc/drawingml/textbodypropertiescontext.hxx +++ b/oox/inc/drawingml/textbodypropertiescontext.hxx @@ -29,7 +29,7 @@ struct TextBodyProperties; class TextBodyPropertiesContext : public ::oox::core::ContextHandler2 { public: - TextBodyPropertiesContext( ::oox::core::ContextHandler2Helper& rParent, + TextBodyPropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, TextBodyProperties& rTextBodyProp ); diff --git a/oox/inc/drawingml/textcharacterpropertiescontext.hxx b/oox/inc/drawingml/textcharacterpropertiescontext.hxx index 716b4f097a86..c07c1fee24c6 100644 --- a/oox/inc/drawingml/textcharacterpropertiescontext.hxx +++ b/oox/inc/drawingml/textcharacterpropertiescontext.hxx @@ -29,7 +29,7 @@ struct TextCharacterProperties; class TextCharacterPropertiesContext : public ::oox::core::ContextHandler2 { public: - TextCharacterPropertiesContext( ::oox::core::ContextHandler2Helper& rParent, + TextCharacterPropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, TextCharacterProperties& rTextCharacterProperties ); virtual ~TextCharacterPropertiesContext() override; diff --git a/oox/inc/drawingml/texteffectscontext.hxx b/oox/inc/drawingml/texteffectscontext.hxx index 75d96bae9888..853d9dff57ef 100644 --- a/oox/inc/drawingml/texteffectscontext.hxx +++ b/oox/inc/drawingml/texteffectscontext.hxx @@ -23,7 +23,7 @@ namespace oox { namespace drawingml { class TextEffectsContext : public oox::core::ContextHandler2 { public: - TextEffectsContext(oox::core::ContextHandler2Helper& rParent, + TextEffectsContext(oox::core::ContextHandler2Helper const & rParent, sal_Int32 aElementToken, std::vector<css::beans::PropertyValue>& rTextEffectsProperties); virtual ~TextEffectsContext() override; diff --git a/oox/inc/drawingml/textfieldcontext.hxx b/oox/inc/drawingml/textfieldcontext.hxx index 7f1efefd65d1..43bb17ee9c27 100644 --- a/oox/inc/drawingml/textfieldcontext.hxx +++ b/oox/inc/drawingml/textfieldcontext.hxx @@ -30,7 +30,7 @@ class TextFieldContext : public ::oox::core::ContextHandler2 { public: - TextFieldContext( ::oox::core::ContextHandler2Helper& rParent, + TextFieldContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, TextField& rTextField); virtual void onEndElement( ) override; diff --git a/oox/inc/drawingml/textliststylecontext.hxx b/oox/inc/drawingml/textliststylecontext.hxx index a48161410e81..736157030af8 100644 --- a/oox/inc/drawingml/textliststylecontext.hxx +++ b/oox/inc/drawingml/textliststylecontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { class TextListStyleContext : public ::oox::core::ContextHandler2 { public: - TextListStyleContext( ::oox::core::ContextHandler2Helper& rParent, TextListStyle& rTextListStyle ); + TextListStyleContext( ::oox::core::ContextHandler2Helper const & rParent, TextListStyle& rTextListStyle ); virtual ~TextListStyleContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/textparagraphproperties.hxx b/oox/inc/drawingml/textparagraphproperties.hxx index c85a4f84905b..cac6d64f0447 100644 --- a/oox/inc/drawingml/textparagraphproperties.hxx +++ b/oox/inc/drawingml/textparagraphproperties.hxx @@ -58,7 +58,7 @@ public: void setBulletSize(sal_Int16 nSize); void setFontSize(sal_Int16 nSize); void setStyleName( const OUString& rStyleName ) { maStyleName <<= rStyleName; } - void setGraphic( css::uno::Reference< css::graphic::XGraphic >& rXGraphic ); + void setGraphic( css::uno::Reference< css::graphic::XGraphic > const & rXGraphic ); std::shared_ptr< ::oox::drawingml::Color > maBulletColorPtr; css::uno::Any mbBulletColorFollowText; diff --git a/oox/inc/drawingml/textparagraphpropertiescontext.hxx b/oox/inc/drawingml/textparagraphpropertiescontext.hxx index ba3fe098db1b..b16ba562e550 100644 --- a/oox/inc/drawingml/textparagraphpropertiescontext.hxx +++ b/oox/inc/drawingml/textparagraphpropertiescontext.hxx @@ -33,7 +33,7 @@ namespace oox { namespace drawingml { class TextParagraphPropertiesContext : public ::oox::core::ContextHandler2 { public: - TextParagraphPropertiesContext( ::oox::core::ContextHandler2Helper& rParent, + TextParagraphPropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, TextParagraphProperties& rTextParagraphProperties ); virtual ~TextParagraphPropertiesContext() override; diff --git a/oox/inc/drawingml/themeelementscontext.hxx b/oox/inc/drawingml/themeelementscontext.hxx index b806862efd60..f0116efc5988 100644 --- a/oox/inc/drawingml/themeelementscontext.hxx +++ b/oox/inc/drawingml/themeelementscontext.hxx @@ -30,7 +30,7 @@ class Theme; class ThemeElementsContext : public oox::core::ContextHandler2 { public: - ThemeElementsContext( ::oox::core::ContextHandler2Helper& rParent, Theme& rTheme ); + ThemeElementsContext( ::oox::core::ContextHandler2Helper const & rParent, Theme& rTheme ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/inc/drawingml/transform2dcontext.hxx b/oox/inc/drawingml/transform2dcontext.hxx index faba2789db99..df502d341484 100644 --- a/oox/inc/drawingml/transform2dcontext.hxx +++ b/oox/inc/drawingml/transform2dcontext.hxx @@ -31,7 +31,7 @@ class Shape; class Transform2DContext : public ::oox::core::ContextHandler2 { public: - Transform2DContext( ::oox::core::ContextHandler2Helper& rParent, + Transform2DContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, Shape& rShape, bool btxXfrm = false ) throw(); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/source/core/contexthandler2.cxx b/oox/source/core/contexthandler2.cxx index 50a2587e3e1f..c6536d2f7169 100644 --- a/oox/source/core/contexthandler2.cxx +++ b/oox/source/core/contexthandler2.cxx @@ -173,8 +173,8 @@ void ContextHandler2Helper::processCollectedChars() } } -ContextHandler2::ContextHandler2( ContextHandler2Helper& rParent ) : - ContextHandler( dynamic_cast< ContextHandler& >( rParent ) ), +ContextHandler2::ContextHandler2( ContextHandler2Helper const & rParent ) : + ContextHandler( dynamic_cast< ContextHandler const & >( rParent ) ), ContextHandler2Helper( rParent ) { } diff --git a/oox/source/core/filterbase.cxx b/oox/source/core/filterbase.cxx index 9e20540544ab..4945039c901b 100644 --- a/oox/source/core/filterbase.cxx +++ b/oox/source/core/filterbase.cxx @@ -379,7 +379,7 @@ VbaProject& FilterBase::getVbaProject() const return *mxImpl->mxVbaProject; } -bool FilterBase::importBinaryData( StreamDataSequence& orDataSeq, const OUString& rStreamName ) +bool FilterBase::importBinaryData( StreamDataSequence const & orDataSeq, const OUString& rStreamName ) { OSL_ENSURE( !rStreamName.isEmpty(), "FilterBase::importBinaryData - empty stream name" ); if( rStreamName.isEmpty() ) diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx index f06516c51757..89b81e2db648 100644 --- a/oox/source/crypto/DocumentDecryption.cxx +++ b/oox/source/crypto/DocumentDecryption.cxx @@ -39,7 +39,7 @@ using namespace css::xml; namespace { -std::vector<sal_uInt8> convertToVector(Sequence<sal_Int8>& input) +std::vector<sal_uInt8> convertToVector(Sequence<sal_Int8> const & input) { const sal_uInt8* inputArray = reinterpret_cast<const sal_uInt8*>(input.getConstArray()); return std::vector<sal_uInt8>(inputArray, inputArray + input.getLength()); @@ -191,7 +191,7 @@ bool DocumentDecryption::generateEncryptionKey(const OUString& rPassword) return false; } -bool DocumentDecryption::readAgileEncryptionInfo(Reference< XInputStream >& xInputStream) +bool DocumentDecryption::readAgileEncryptionInfo(Reference< XInputStream > const & xInputStream) { AgileEngine* engine = new AgileEngine; mEngine.reset(engine); diff --git a/oox/source/drawingml/chart/converterbase.cxx b/oox/source/drawingml/chart/converterbase.cxx index 9e5ee8f3ebc3..4fff03e7f63e 100644 --- a/oox/source/drawingml/chart/converterbase.cxx +++ b/oox/source/drawingml/chart/converterbase.cxx @@ -74,11 +74,11 @@ struct TitleLayoutInfo explicit TitleLayoutInfo() : mpGetShape( nullptr ) {} void convertTitlePos( - ConverterRoot& rRoot, + ConverterRoot const & rRoot, const Reference< cssc::XChartDocument >& rxChart1Doc ); }; -void TitleLayoutInfo::convertTitlePos( ConverterRoot& rRoot, const Reference< cssc::XChartDocument >& rxChart1Doc ) +void TitleLayoutInfo::convertTitlePos( ConverterRoot const & rRoot, const Reference< cssc::XChartDocument >& rxChart1Doc ) { if( mxTitle.is() && mpGetShape ) try { diff --git a/oox/source/drawingml/chart/plotareaconverter.cxx b/oox/source/drawingml/chart/plotareaconverter.cxx index 9488567080c1..16e42e6b72ac 100644 --- a/oox/source/drawingml/chart/plotareaconverter.cxx +++ b/oox/source/drawingml/chart/plotareaconverter.cxx @@ -195,7 +195,7 @@ View3DConverter::~View3DConverter() { } -void View3DConverter::convertFromModel( const Reference< XDiagram >& rxDiagram, TypeGroupConverter& rTypeGroup ) +void View3DConverter::convertFromModel( const Reference< XDiagram >& rxDiagram, TypeGroupConverter const & rTypeGroup ) { namespace cssd = ::com::sun::star::drawing; PropertySet aPropSet( rxDiagram ); diff --git a/oox/source/drawingml/chart/seriescontext.cxx b/oox/source/drawingml/chart/seriescontext.cxx index 56efbe260476..2a6a99f561aa 100644 --- a/oox/source/drawingml/chart/seriescontext.cxx +++ b/oox/source/drawingml/chart/seriescontext.cxx @@ -82,7 +82,7 @@ ContextHandlerRef lclDataLabelSharedCreateContext( ContextHandler2& rContext, return nullptr; } -void lclDataLabelSharedCharacters( ContextHandler2& rContext, const OUString& rChars, DataLabelModelBase& orModel ) +void lclDataLabelSharedCharacters( ContextHandler2 const & rContext, const OUString& rChars, DataLabelModelBase& orModel ) { if( rContext.isCurrentElement( C_TOKEN( separator ) ) ) orModel.moaSeparator = rChars; diff --git a/oox/source/drawingml/clrschemecontext.cxx b/oox/source/drawingml/clrschemecontext.cxx index a8b91e7bf0ad..c35042ed9ffc 100644 --- a/oox/source/drawingml/clrschemecontext.cxx +++ b/oox/source/drawingml/clrschemecontext.cxx @@ -39,7 +39,7 @@ static void setClrMap( const ::oox::AttributeList& rAttributes, } } -clrMapContext::clrMapContext( ContextHandler2Helper& rParent, +clrMapContext::clrMapContext( ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, ClrMap& rClrMap ) : ContextHandler2( rParent ) { @@ -57,7 +57,7 @@ clrMapContext::clrMapContext( ContextHandler2Helper& rParent, setClrMap( rAttributes, rClrMap, XML_folHlink ); } -clrSchemeColorContext::clrSchemeColorContext( ContextHandler2Helper& rParent, ClrScheme& rClrScheme, sal_Int32 nColorToken ) : +clrSchemeColorContext::clrSchemeColorContext( ContextHandler2Helper const & rParent, ClrScheme& rClrScheme, sal_Int32 nColorToken ) : ColorContext( rParent, *this ), mrClrScheme( rClrScheme ), mnColorToken( nColorToken ) @@ -69,7 +69,7 @@ clrSchemeColorContext::~clrSchemeColorContext() mrClrScheme.setColor( mnColorToken, getColor( getFilter().getGraphicHelper() ) ); } -clrSchemeContext::clrSchemeContext( ContextHandler2Helper& rParent, ClrScheme& rClrScheme ) : +clrSchemeContext::clrSchemeContext( ContextHandler2Helper const & rParent, ClrScheme& rClrScheme ) : ContextHandler2( rParent ), mrClrScheme( rClrScheme ) { diff --git a/oox/source/drawingml/colorchoicecontext.cxx b/oox/source/drawingml/colorchoicecontext.cxx index d1e5df65fded..7501cf158fa2 100644 --- a/oox/source/drawingml/colorchoicecontext.cxx +++ b/oox/source/drawingml/colorchoicecontext.cxx @@ -27,7 +27,7 @@ namespace oox { namespace drawingml { -ColorValueContext::ColorValueContext( ContextHandler2Helper& rParent, Color& rColor ) : +ColorValueContext::ColorValueContext( ContextHandler2Helper const & rParent, Color& rColor ) : ContextHandler2( rParent ), mrColor( rColor ) { @@ -127,7 +127,7 @@ void ColorValueContext::onStartElement( const AttributeList& rAttribs ) return nullptr; } -ColorContext::ColorContext( ContextHandler2Helper& rParent, Color& rColor ) : +ColorContext::ColorContext( ContextHandler2Helper const & rParent, Color& rColor ) : ContextHandler2( rParent ), mrColor( rColor ) { diff --git a/oox/source/drawingml/connectorshapecontext.cxx b/oox/source/drawingml/connectorshapecontext.cxx index 26946dd163c1..898630497b41 100644 --- a/oox/source/drawingml/connectorshapecontext.cxx +++ b/oox/source/drawingml/connectorshapecontext.cxx @@ -41,7 +41,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -ConnectorShapeContext::ConnectorShapeContext( ContextHandler2Helper& rParent, +ConnectorShapeContext::ConnectorShapeContext( ContextHandler2Helper const & rParent, const ShapePtr& pMasterShapePtr, const ShapePtr& pGroupShapePtr ) : ShapeContext( rParent, pMasterShapePtr, pGroupShapePtr ) { diff --git a/oox/source/drawingml/customshapegeometry.cxx b/oox/source/drawingml/customshapegeometry.cxx index 4f515fd2ab65..142ca39bdc3d 100644 --- a/oox/source/drawingml/customshapegeometry.cxx +++ b/oox/source/drawingml/customshapegeometry.cxx @@ -424,7 +424,7 @@ static EnhancedCustomShapeParameter GetAdjCoordinate( CustomShapeProperties& rCu class GeomGuideListContext : public ContextHandler2 { public: - GeomGuideListContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< CustomShapeGuide >& rGuideList ); + GeomGuideListContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< CustomShapeGuide >& rGuideList ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -432,7 +432,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -GeomGuideListContext::GeomGuideListContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< CustomShapeGuide >& rGuideList ) +GeomGuideListContext::GeomGuideListContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< CustomShapeGuide >& rGuideList ) : ContextHandler2( rParent ) , mrGuideList( rGuideList ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -626,10 +626,10 @@ static const OUString& GetGeomGuideName( const OUString& rValue ) class AdjPoint2DContext : public ContextHandler2 { public: - AdjPoint2DContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ); + AdjPoint2DContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ); }; -AdjPoint2DContext::AdjPoint2DContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ) +AdjPoint2DContext::AdjPoint2DContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ) : ContextHandler2( rParent ) { rAdjPoint2D.First = GetAdjCoordinate( rCustomShapeProperties, rAttribs.getString( XML_x ).get() ); @@ -640,7 +640,7 @@ AdjPoint2DContext::AdjPoint2DContext( ContextHandler2Helper& rParent, const Attr class XYAdjustHandleContext : public ContextHandler2 { public: - XYAdjustHandleContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ); + XYAdjustHandleContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -648,7 +648,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -XYAdjustHandleContext::XYAdjustHandleContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ) +XYAdjustHandleContext::XYAdjustHandleContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ) : ContextHandler2( rParent ) , mrAdjustHandle( rAdjustHandle ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -690,7 +690,7 @@ ContextHandlerRef XYAdjustHandleContext::onCreateContext( sal_Int32 aElementToke class PolarAdjustHandleContext : public ContextHandler2 { public: - PolarAdjustHandleContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ); + PolarAdjustHandleContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -698,7 +698,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -PolarAdjustHandleContext::PolarAdjustHandleContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ) +PolarAdjustHandleContext::PolarAdjustHandleContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, AdjustHandle& rAdjustHandle ) : ContextHandler2( rParent ) , mrAdjustHandle( rAdjustHandle ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -743,7 +743,7 @@ ContextHandlerRef PolarAdjustHandleContext::onCreateContext( sal_Int32 aElementT class AdjustHandleListContext : public ContextHandler2 { public: - AdjustHandleListContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< AdjustHandle >& rAdjustHandleList ); + AdjustHandleListContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< AdjustHandle >& rAdjustHandleList ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -751,7 +751,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -AdjustHandleListContext::AdjustHandleListContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< AdjustHandle >& rAdjustHandleList ) +AdjustHandleListContext::AdjustHandleListContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< AdjustHandle >& rAdjustHandleList ) : ContextHandler2( rParent ) , mrAdjustHandleList( rAdjustHandleList ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -779,7 +779,7 @@ ContextHandlerRef AdjustHandleListContext::onCreateContext( sal_Int32 aElementTo class ConnectionSiteContext : public ContextHandler2 { public: - ConnectionSiteContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, ConnectionSite& rConnectionSite ); + ConnectionSiteContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, ConnectionSite& rConnectionSite ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -787,7 +787,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -ConnectionSiteContext::ConnectionSiteContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, ConnectionSite& rConnectionSite ) +ConnectionSiteContext::ConnectionSiteContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, ConnectionSite& rConnectionSite ) : ContextHandler2( rParent ) , mrConnectionSite( rConnectionSite ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -806,7 +806,7 @@ ContextHandlerRef ConnectionSiteContext::onCreateContext( sal_Int32 aElementToke class Path2DMoveToContext : public ContextHandler2 { public: - Path2DMoveToContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ); + Path2DMoveToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -814,7 +814,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -Path2DMoveToContext::Path2DMoveToContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ) +Path2DMoveToContext::Path2DMoveToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ) : ContextHandler2( rParent ) , mrAdjPoint2D( rAdjPoint2D ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -832,7 +832,7 @@ ContextHandlerRef Path2DMoveToContext::onCreateContext( sal_Int32 aElementToken, class Path2DLineToContext : public ContextHandler2 { public: - Path2DLineToContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ); + Path2DLineToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -840,7 +840,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -Path2DLineToContext::Path2DLineToContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ) +Path2DLineToContext::Path2DLineToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rAdjPoint2D ) : ContextHandler2( rParent ) , mrAdjPoint2D( rAdjPoint2D ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -858,7 +858,7 @@ ContextHandlerRef Path2DLineToContext::onCreateContext( sal_Int32 aElementToken, class Path2DQuadBezierToContext : public ContextHandler2 { public: - Path2DQuadBezierToContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rPt1, EnhancedCustomShapeParameterPair& rPt2 ); + Path2DQuadBezierToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rPt1, EnhancedCustomShapeParameterPair& rPt2 ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; protected: @@ -868,7 +868,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -Path2DQuadBezierToContext::Path2DQuadBezierToContext( ContextHandler2Helper& rParent, +Path2DQuadBezierToContext::Path2DQuadBezierToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rPt1, EnhancedCustomShapeParameterPair& rPt2 ) @@ -891,7 +891,7 @@ ContextHandlerRef Path2DQuadBezierToContext::onCreateContext( sal_Int32 aElement class Path2DCubicBezierToContext : public ContextHandler2 { public: - Path2DCubicBezierToContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, + Path2DCubicBezierToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair&, EnhancedCustomShapeParameterPair&, EnhancedCustomShapeParameterPair& ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; @@ -903,7 +903,7 @@ protected: int nCount; }; -Path2DCubicBezierToContext::Path2DCubicBezierToContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, +Path2DCubicBezierToContext::Path2DCubicBezierToContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, EnhancedCustomShapeParameterPair& rControlPt1, EnhancedCustomShapeParameterPair& rControlPt2, EnhancedCustomShapeParameterPair& rEndPt ) @@ -928,7 +928,7 @@ ContextHandlerRef Path2DCubicBezierToContext::onCreateContext( sal_Int32 aElemen class Path2DContext : public ContextHandler2 { public: - Path2DContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, std::vector< css::drawing::EnhancedCustomShapeSegment >& rSegments, Path2D& rPath2D ); + Path2DContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, std::vector< css::drawing::EnhancedCustomShapeSegment >& rSegments, Path2D& rPath2D ); virtual ~Path2DContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; @@ -939,7 +939,7 @@ protected: CustomShapeProperties& mrCustomShapeProperties; }; -Path2DContext::Path2DContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, std::vector< css::drawing::EnhancedCustomShapeSegment >& rSegments, Path2D& rPath2D ) +Path2DContext::Path2DContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties, std::vector< css::drawing::EnhancedCustomShapeSegment >& rSegments, Path2D& rPath2D ) : ContextHandler2( rParent ) , mrPath2D( rPath2D ) , mrSegments( rSegments ) @@ -1124,7 +1124,7 @@ ContextHandlerRef Path2DContext::onCreateContext( sal_Int32 aElementToken, class Path2DListContext : public ContextHandler2 { public: - Path2DListContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< EnhancedCustomShapeSegment >& rSegments, + Path2DListContext( ContextHandler2Helper const & rParent, CustomShapeProperties & rCustomShapeProperties, std::vector< EnhancedCustomShapeSegment >& rSegments, std::vector< Path2D >& rPath2DList ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const ::oox::AttributeList& rAttribs ) override; @@ -1136,7 +1136,7 @@ protected: std::vector< Path2D >& mrPath2DList; }; -Path2DListContext::Path2DListContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< EnhancedCustomShapeSegment >& rSegments, +Path2DListContext:: Path2DListContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties, std::vector< EnhancedCustomShapeSegment >& rSegments, std::vector< Path2D >& rPath2DList ) : ContextHandler2( rParent ) , mrCustomShapeProperties( rCustomShapeProperties ) @@ -1157,7 +1157,7 @@ ContextHandlerRef Path2DListContext::onCreateContext( sal_Int32 aElementToken, c } // CT_CustomGeometry2D -CustomShapeGeometryContext::CustomShapeGeometryContext( ContextHandler2Helper& rParent, CustomShapeProperties& rCustomShapeProperties ) +CustomShapeGeometryContext::CustomShapeGeometryContext( ContextHandler2Helper const & rParent, CustomShapeProperties& rCustomShapeProperties ) : ContextHandler2( rParent ) , mrCustomShapeProperties( rCustomShapeProperties ) { @@ -1200,7 +1200,7 @@ ContextHandlerRef CustomShapeGeometryContext::onCreateContext( sal_Int32 aElemen } // CT_PresetGeometry2D -PresetShapeGeometryContext::PresetShapeGeometryContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties ) +PresetShapeGeometryContext::PresetShapeGeometryContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties ) : ContextHandler2( rParent ) , mrCustomShapeProperties( rCustomShapeProperties ) { @@ -1218,7 +1218,7 @@ ContextHandlerRef PresetShapeGeometryContext::onCreateContext( sal_Int32 aElemen } // CT_PresetTextShape -PresetTextShapeContext::PresetTextShapeContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties ) +PresetTextShapeContext::PresetTextShapeContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, CustomShapeProperties& rCustomShapeProperties ) : ContextHandler2( rParent ) , mrCustomShapeProperties( rCustomShapeProperties ) { diff --git a/oox/source/drawingml/diagram/constraintlistcontext.cxx b/oox/source/drawingml/diagram/constraintlistcontext.cxx index 87a52f14446f..4130cb6aea6d 100644 --- a/oox/source/drawingml/diagram/constraintlistcontext.cxx +++ b/oox/source/drawingml/diagram/constraintlistcontext.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { // CT_ConstraintLists -ConstraintListContext::ConstraintListContext( ContextHandler2Helper& rParent, +ConstraintListContext::ConstraintListContext( ContextHandler2Helper const & rParent, const LayoutAtomPtr &pNode ) : ContextHandler2( rParent ) , mpNode( pNode ) diff --git a/oox/source/drawingml/diagram/constraintlistcontext.hxx b/oox/source/drawingml/diagram/constraintlistcontext.hxx index b1a9116aba33..057eda8dbcc7 100644 --- a/oox/source/drawingml/diagram/constraintlistcontext.hxx +++ b/oox/source/drawingml/diagram/constraintlistcontext.hxx @@ -29,7 +29,7 @@ namespace oox { namespace drawingml { class ConstraintListContext : public ::oox::core::ContextHandler2 { public: - ConstraintListContext( ContextHandler2Helper& rParent, const LayoutAtomPtr &pNode ); + ConstraintListContext( ContextHandler2Helper const & rParent, const LayoutAtomPtr &pNode ); virtual ~ConstraintListContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const AttributeList& rAttribs ) override; diff --git a/oox/source/drawingml/diagram/datamodelcontext.cxx b/oox/source/drawingml/diagram/datamodelcontext.cxx index a48e2c292e4b..43d9bb547ecb 100644 --- a/oox/source/drawingml/diagram/datamodelcontext.cxx +++ b/oox/source/drawingml/diagram/datamodelcontext.cxx @@ -37,7 +37,7 @@ class CxnListContext : public ContextHandler2 { public: - CxnListContext( ContextHandler2Helper& rParent, + CxnListContext( ContextHandler2Helper const & rParent, dgm::Connections & aConnections ) : ContextHandler2( rParent ) , mrConnection( aConnections ) @@ -84,7 +84,7 @@ class PresLayoutVarsContext : public ContextHandler2 { public: - PresLayoutVarsContext( ContextHandler2Helper& rParent, + PresLayoutVarsContext( ContextHandler2Helper const & rParent, dgm::Point & rPoint ) : ContextHandler2( rParent ), mrPoint( rPoint ) @@ -137,7 +137,7 @@ class PropertiesContext : public ContextHandler2 { public: - PropertiesContext( ContextHandler2Helper& rParent, + PropertiesContext( ContextHandler2Helper const & rParent, dgm::Point & rPoint, const AttributeList& rAttribs ) : ContextHandler2( rParent ), @@ -201,7 +201,7 @@ class PtContext : public ContextHandler2 { public: - PtContext( ContextHandler2Helper& rParent, + PtContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, dgm::Point & rPoint): ContextHandler2( rParent ), @@ -255,7 +255,7 @@ class PtListContext : public ContextHandler2 { public: - PtListContext( ContextHandler2Helper& rParent, dgm::Points& rPoints) : + PtListContext( ContextHandler2Helper const & rParent, dgm::Points& rPoints) : ContextHandler2( rParent ), mrPoints( rPoints ) {} @@ -286,7 +286,7 @@ class BackgroundFormattingContext : public ContextHandler2 { public: - BackgroundFormattingContext( ContextHandler2Helper& rParent, DiagramDataPtr & pModel ) + BackgroundFormattingContext( ContextHandler2Helper const & rParent, DiagramDataPtr const & pModel ) : ContextHandler2( rParent ) , mpDataModel( pModel ) { @@ -322,7 +322,7 @@ private: DiagramDataPtr mpDataModel; }; -DataModelContext::DataModelContext( ContextHandler2Helper& rParent, +DataModelContext::DataModelContext( ContextHandler2Helper const & rParent, const DiagramDataPtr & pDataModel ) : ContextHandler2( rParent ) , mpDataModel( pDataModel ) diff --git a/oox/source/drawingml/diagram/datamodelcontext.hxx b/oox/source/drawingml/diagram/datamodelcontext.hxx index 2642be374e40..de2c3a20af49 100644 --- a/oox/source/drawingml/diagram/datamodelcontext.hxx +++ b/oox/source/drawingml/diagram/datamodelcontext.hxx @@ -31,7 +31,7 @@ namespace oox { namespace drawingml { class DataModelContext : public ::oox::core::ContextHandler2 { public: - DataModelContext( ::oox::core::ContextHandler2Helper& rParent, const DiagramDataPtr & pDataModelPtr ); + DataModelContext( ::oox::core::ContextHandler2Helper const & rParent, const DiagramDataPtr & pDataModelPtr ); virtual ~DataModelContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index 175df73e9420..ec396ceed9d3 100644 --- a/oox/source/drawingml/diagram/diagram.cxx +++ b/oox/source/drawingml/diagram/diagram.cxx @@ -397,7 +397,7 @@ void importFragment( core::XmlFilterBase& rFilter, rFilter.importFragment( rxHandler, xSerializer ); } -void loadDiagram( ShapePtr& pShape, +void loadDiagram( ShapePtr const & pShape, core::XmlFilterBase& rFilter, const OUString& rDataModelPath, const OUString& rLayoutPath, diff --git a/oox/source/drawingml/diagram/diagramdefinitioncontext.cxx b/oox/source/drawingml/diagram/diagramdefinitioncontext.cxx index 56f81dca5867..d3f1f362e35c 100644 --- a/oox/source/drawingml/diagram/diagramdefinitioncontext.cxx +++ b/oox/source/drawingml/diagram/diagramdefinitioncontext.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { // CT_DiagramDefinition -DiagramDefinitionContext::DiagramDefinitionContext( ContextHandler2Helper& rParent, +DiagramDefinitionContext::DiagramDefinitionContext( ContextHandler2Helper const & rParent, const AttributeList& rAttributes, const DiagramLayoutPtr &pLayout ) : ContextHandler2( rParent ) diff --git a/oox/source/drawingml/diagram/diagramdefinitioncontext.hxx b/oox/source/drawingml/diagram/diagramdefinitioncontext.hxx index 9f5161b2f769..cc9da9159a81 100644 --- a/oox/source/drawingml/diagram/diagramdefinitioncontext.hxx +++ b/oox/source/drawingml/diagram/diagramdefinitioncontext.hxx @@ -28,7 +28,7 @@ namespace oox { namespace drawingml { class DiagramDefinitionContext : public ::oox::core::ContextHandler2 { public: - DiagramDefinitionContext( ::oox::core::ContextHandler2Helper& rParent, const ::oox::AttributeList& rAttributes, const DiagramLayoutPtr &pLayout ); + DiagramDefinitionContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, const DiagramLayoutPtr &pLayout ); virtual ~DiagramDefinitionContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/source/drawingml/diagram/layoutatomvisitors.cxx b/oox/source/drawingml/diagram/layoutatomvisitors.cxx index a580da73ff32..f661d48389d2 100755 --- a/oox/source/drawingml/diagram/layoutatomvisitors.cxx +++ b/oox/source/drawingml/diagram/layoutatomvisitors.cxx @@ -32,7 +32,7 @@ using namespace ::oox::core; namespace oox { namespace drawingml { -void ShapeCreationVisitor::defaultVisit(LayoutAtom& rAtom) +void ShapeCreationVisitor::defaultVisit(LayoutAtom const & rAtom) { for (const auto& pAtom : rAtom.getChildren()) pAtom->accept(*this); @@ -150,7 +150,7 @@ void ShapeCreationVisitor::visit(ShapeAtom& /*rAtom*/) // stop processing } -void ShapeTemplateVisitor::defaultVisit(LayoutAtom& rAtom) +void ShapeTemplateVisitor::defaultVisit(LayoutAtom const & rAtom) { // visit all children, one of them needs to be the layout algorithm for (const auto& pAtom : rAtom.getChildren()) @@ -202,7 +202,7 @@ void ShapeTemplateVisitor::visit(ShapeAtom& rAtom) mpShape.reset(new Shape(pCurrShape)); } -void ShapeLayoutingVisitor::defaultVisit(LayoutAtom& rAtom) +void ShapeLayoutingVisitor::defaultVisit(LayoutAtom const & rAtom) { // visit all children, one of them needs to be the layout algorithm for (const auto& pAtom : rAtom.getChildren()) @@ -260,7 +260,7 @@ void ShapeLayoutingVisitor::visit(ShapeAtom& /*rAtom*/) // stop processing } -void ShallowPresNameVisitor::defaultVisit(LayoutAtom& rAtom) +void ShallowPresNameVisitor::defaultVisit(LayoutAtom const & rAtom) { // visit all children, at least one of them needs to have proper // name set diff --git a/oox/source/drawingml/diagram/layoutatomvisitors.hxx b/oox/source/drawingml/diagram/layoutatomvisitors.hxx index 3ffef36d8954..86432a8a4376 100755 --- a/oox/source/drawingml/diagram/layoutatomvisitors.hxx +++ b/oox/source/drawingml/diagram/layoutatomvisitors.hxx @@ -34,7 +34,7 @@ class ShapeCreationVisitor : public LayoutAtomVisitor const Diagram& mrDgm; sal_Int32 mnCurrIdx; - void defaultVisit(LayoutAtom& rAtom); + void defaultVisit(LayoutAtom const & rAtom); virtual void visit(ConstraintAtom& rAtom) override; virtual void visit(AlgAtom& rAtom) override; virtual void visit(ForEachAtom& rAtom) override; @@ -65,7 +65,7 @@ class ShapeTemplateVisitor : public LayoutAtomVisitor virtual void visit(ShapeAtom& rAtom) override; public: - void defaultVisit(LayoutAtom& rAtom); + void defaultVisit(LayoutAtom const & rAtom); ShapePtr getShapeCopy() const { return mpShape; } }; @@ -75,7 +75,7 @@ class ShapeLayoutingVisitor : public LayoutAtomVisitor LayoutNode* mpCurrentLayoutNode; bool mbLookForAlg; - void defaultVisit(LayoutAtom& rAtom); + void defaultVisit(LayoutAtom const & rAtom); virtual void visit(ConstraintAtom& rAtom) override; virtual void visit(AlgAtom& rAtom) override; virtual void visit(ForEachAtom& rAtom) override; @@ -96,7 +96,7 @@ class ShallowPresNameVisitor : public LayoutAtomVisitor const Diagram& mrDgm; size_t mnCnt; - void defaultVisit(LayoutAtom& rAtom); + void defaultVisit(LayoutAtom const & rAtom); virtual void visit(ConstraintAtom& rAtom) override; virtual void visit(AlgAtom& rAtom) override; virtual void visit(ForEachAtom& rAtom) override; diff --git a/oox/source/drawingml/diagram/layoutnodecontext.cxx b/oox/source/drawingml/diagram/layoutnodecontext.cxx index 3a0aeba11563..70cd6c153f5f 100644 --- a/oox/source/drawingml/diagram/layoutnodecontext.cxx +++ b/oox/source/drawingml/diagram/layoutnodecontext.cxx @@ -39,7 +39,7 @@ class IfContext : public LayoutNodeContext { public: - IfContext( ContextHandler2Helper& rParent, + IfContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, const ConditionAtomPtr& pAtom ) : LayoutNodeContext( rParent, rAttribs, pAtom ) @@ -50,7 +50,7 @@ class AlgorithmContext : public ContextHandler2 { public: - AlgorithmContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, const AlgAtomPtr & pNode ) + AlgorithmContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, const AlgAtomPtr & pNode ) : ContextHandler2( rParent ) , mnRevision( 0 ) , mpNode( pNode ) @@ -89,7 +89,7 @@ class ChooseContext : public ContextHandler2 { public: - ChooseContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, const LayoutAtomPtr & pNode ) + ChooseContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, const LayoutAtomPtr & pNode ) : ContextHandler2( rParent ) , mpNode( pNode ) { @@ -139,7 +139,7 @@ class ForEachContext : public LayoutNodeContext { public: - ForEachContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, const ForEachAtomPtr& pAtom ) + ForEachContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, const ForEachAtomPtr& pAtom ) : LayoutNodeContext( rParent, rAttribs, pAtom ) { rAttribs.getString( XML_ref ); @@ -152,7 +152,7 @@ class LayoutVariablePropertySetContext : public ContextHandler2 { public: - LayoutVariablePropertySetContext( ContextHandler2Helper& rParent, LayoutNode::VarMap & aVar ) + LayoutVariablePropertySetContext( ContextHandler2Helper const & rParent, LayoutNode::VarMap & aVar ) : ContextHandler2( rParent ) , mVariables( aVar ) { @@ -173,7 +173,7 @@ private: }; // CT_LayoutNode -LayoutNodeContext::LayoutNodeContext( ContextHandler2Helper& rParent, +LayoutNodeContext::LayoutNodeContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, const LayoutAtomPtr& pAtom ) : ContextHandler2( rParent ) diff --git a/oox/source/drawingml/diagram/layoutnodecontext.hxx b/oox/source/drawingml/diagram/layoutnodecontext.hxx index a98c86713b21..85f73f029f24 100644 --- a/oox/source/drawingml/diagram/layoutnodecontext.hxx +++ b/oox/source/drawingml/diagram/layoutnodecontext.hxx @@ -29,7 +29,7 @@ namespace oox { namespace drawingml { class LayoutNodeContext : public ::oox::core::ContextHandler2 { public: - LayoutNodeContext( ::oox::core::ContextHandler2Helper& rParent, const ::oox::AttributeList& rAttributes, const LayoutAtomPtr &pNode ); + LayoutNodeContext( ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttributes, const LayoutAtomPtr &pNode ); virtual ~LayoutNodeContext() override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/source/drawingml/effectpropertiescontext.cxx b/oox/source/drawingml/effectpropertiescontext.cxx index dc7f85517ea2..560268f52563 100644 --- a/oox/source/drawingml/effectpropertiescontext.cxx +++ b/oox/source/drawingml/effectpropertiescontext.cxx @@ -25,7 +25,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -EffectPropertiesContext::EffectPropertiesContext( ContextHandler2Helper& rParent, +EffectPropertiesContext::EffectPropertiesContext( ContextHandler2Helper const& rParent, EffectProperties& rEffectProperties ) throw() : ContextHandler2( rParent ) , mrEffectProperties( rEffectProperties ) diff --git a/oox/source/drawingml/effectpropertiescontext.hxx b/oox/source/drawingml/effectpropertiescontext.hxx index 4482db6fe0de..b0688c2838aa 100644 --- a/oox/source/drawingml/effectpropertiescontext.hxx +++ b/oox/source/drawingml/effectpropertiescontext.hxx @@ -20,7 +20,7 @@ struct Effect; class EffectPropertiesContext : public ::oox::core::ContextHandler2 { public: - EffectPropertiesContext( ::oox::core::ContextHandler2Helper& rParent, + EffectPropertiesContext( ::oox::core::ContextHandler2Helper const & rParent, EffectProperties& rEffectProperties ) throw(); virtual ~EffectPropertiesContext() override; diff --git a/oox/source/drawingml/graphicshapecontext.cxx b/oox/source/drawingml/graphicshapecontext.cxx index db77409cb0bb..3035a2d55844 100644 --- a/oox/source/drawingml/graphicshapecontext.cxx +++ b/oox/source/drawingml/graphicshapecontext.cxx @@ -71,7 +71,7 @@ namespace drawingml { // CT_Picture -GraphicShapeContext::GraphicShapeContext( ContextHandler2Helper& rParent, const ShapePtr& pMasterShapePtr, const ShapePtr& pShapePtr ) +GraphicShapeContext::GraphicShapeContext( ContextHandler2Helper const & rParent, const ShapePtr& pMasterShapePtr, const ShapePtr& pShapePtr ) : ShapeContext( rParent, pMasterShapePtr, pShapePtr ) { } @@ -177,7 +177,7 @@ void GraphicalObjectFrameContext::onEndElement() } } -OleObjectGraphicDataContext::OleObjectGraphicDataContext( ContextHandler2Helper& rParent, const ShapePtr& xShape ) : +OleObjectGraphicDataContext::OleObjectGraphicDataContext( ContextHandler2Helper const & rParent, const ShapePtr& xShape ) : ShapeContext( rParent, ShapePtr(), xShape ), mrOleObjectInfo( xShape->setOleObjectType() ) { @@ -237,7 +237,7 @@ ContextHandlerRef OleObjectGraphicDataContext::onCreateContext( sal_Int32 nEleme return nullptr; } -DiagramGraphicDataContext::DiagramGraphicDataContext( ContextHandler2Helper& rParent, const ShapePtr& pShapePtr ) +DiagramGraphicDataContext::DiagramGraphicDataContext( ContextHandler2Helper const & rParent, const ShapePtr& pShapePtr ) : ShapeContext( rParent, ShapePtr(), pShapePtr ) { pShapePtr->setDiagramType(); @@ -295,7 +295,7 @@ ContextHandlerRef DiagramGraphicDataContext::onCreateContext( ::sal_Int32 aEleme return ShapeContext::onCreateContext( aElementToken, rAttribs ); } -ChartGraphicDataContext::ChartGraphicDataContext( ContextHandler2Helper& rParent, const ShapePtr& rxShape, bool bEmbedShapes ) : +ChartGraphicDataContext::ChartGraphicDataContext( ContextHandler2Helper const & rParent, const ShapePtr& rxShape, bool bEmbedShapes ) : ShapeContext( rParent, ShapePtr(), rxShape ), mrChartShapeInfo( rxShape->setChartType( bEmbedShapes ) ) { diff --git a/oox/source/drawingml/guidcontext.cxx b/oox/source/drawingml/guidcontext.cxx index 89eff0594f8a..3a5485bd7d21 100644 --- a/oox/source/drawingml/guidcontext.cxx +++ b/oox/source/drawingml/guidcontext.cxx @@ -25,7 +25,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -GuidContext::GuidContext( ContextHandler2Helper& rParent, OUString& rGuidId ) +GuidContext::GuidContext( ContextHandler2Helper const & rParent, OUString& rGuidId ) : ContextHandler2( rParent ) , mrGuidId( rGuidId ) { diff --git a/oox/source/drawingml/hyperlinkcontext.cxx b/oox/source/drawingml/hyperlinkcontext.cxx index 99cca512831c..2d6e217af651 100644 --- a/oox/source/drawingml/hyperlinkcontext.cxx +++ b/oox/source/drawingml/hyperlinkcontext.cxx @@ -36,7 +36,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -HyperLinkContext::HyperLinkContext( ContextHandler2Helper& rParent, +HyperLinkContext::HyperLinkContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, PropertyMap& aProperties ) : ContextHandler2( rParent ) , maProperties(aProperties) diff --git a/oox/source/drawingml/hyperlinkcontext.hxx b/oox/source/drawingml/hyperlinkcontext.hxx index 8e1ae9aebef5..fc3d019ce131 100644 --- a/oox/source/drawingml/hyperlinkcontext.hxx +++ b/oox/source/drawingml/hyperlinkcontext.hxx @@ -32,7 +32,7 @@ class HyperLinkContext : public ::oox::core::ContextHandler2 { public: HyperLinkContext( - ::oox::core::ContextHandler2Helper& rParent, + ::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs, PropertyMap& aProperties ); virtual ~HyperLinkContext() override; diff --git a/oox/source/drawingml/linepropertiescontext.cxx b/oox/source/drawingml/linepropertiescontext.cxx index 2d3bfd6863f6..17180a7dc216 100644 --- a/oox/source/drawingml/linepropertiescontext.cxx +++ b/oox/source/drawingml/linepropertiescontext.cxx @@ -33,7 +33,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -LinePropertiesContext::LinePropertiesContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, +LinePropertiesContext::LinePropertiesContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, LineProperties& rLineProperties ) throw() : ContextHandler2( rParent ) , mrLineProperties( rLineProperties ) diff --git a/oox/source/drawingml/misccontexts.cxx b/oox/source/drawingml/misccontexts.cxx index 431db06e6e8e..499d5137b8b2 100644 --- a/oox/source/drawingml/misccontexts.cxx +++ b/oox/source/drawingml/misccontexts.cxx @@ -36,13 +36,13 @@ using ::oox::core::ContextHandlerRef; namespace oox { namespace drawingml { -SolidFillContext::SolidFillContext( ContextHandler2Helper& rParent, +SolidFillContext::SolidFillContext( ContextHandler2Helper const & rParent, FillProperties& rFillProps ) : ColorContext( rParent, rFillProps.maFillColor ) { } -GradientFillContext::GradientFillContext( ContextHandler2Helper& rParent, +GradientFillContext::GradientFillContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, GradientFillProperties& rGradientProps ) : ContextHandler2( rParent ), mrGradientProps( rGradientProps ) @@ -88,7 +88,7 @@ ContextHandlerRef GradientFillContext::onCreateContext( return nullptr; } -PatternFillContext::PatternFillContext( ContextHandler2Helper& rParent, +PatternFillContext::PatternFillContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, PatternFillProperties& rPatternProps ) : ContextHandler2( rParent ), mrPatternProps( rPatternProps ) @@ -109,7 +109,7 @@ ContextHandlerRef PatternFillContext::onCreateContext( return nullptr; } -ColorChangeContext::ColorChangeContext( ContextHandler2Helper& rParent, +ColorChangeContext::ColorChangeContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, BlipFillProperties& rBlipProps ) : ContextHandler2( rParent ), mrBlipProps( rBlipProps ) @@ -138,7 +138,7 @@ ContextHandlerRef ColorChangeContext::onCreateContext( return nullptr; } -BlipContext::BlipContext( ContextHandler2Helper& rParent, +BlipContext::BlipContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, BlipFillProperties& rBlipProps ) : ContextHandler2( rParent ), mrBlipProps( rBlipProps ) @@ -197,7 +197,7 @@ ContextHandlerRef BlipContext::onCreateContext( return nullptr; } -DuotoneContext::DuotoneContext( ContextHandler2Helper& rParent, +DuotoneContext::DuotoneContext( ContextHandler2Helper const & rParent, BlipFillProperties& rBlipProps ) : ContextHandler2( rParent ), mrBlipProps( rBlipProps ), @@ -219,7 +219,7 @@ DuotoneContext::~DuotoneContext() return nullptr; } -BlipFillContext::BlipFillContext( ContextHandler2Helper& rParent, +BlipFillContext::BlipFillContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, BlipFillProperties& rBlipProps ) : ContextHandler2( rParent ), mrBlipProps( rBlipProps ) @@ -260,7 +260,7 @@ ContextHandlerRef BlipFillContext::onCreateContext( return nullptr; } -FillPropertiesContext::FillPropertiesContext( ContextHandler2Helper& rParent, FillProperties& rFillProps ) : +FillPropertiesContext::FillPropertiesContext( ContextHandler2Helper const & rParent, FillProperties& rFillProps ) : ContextHandler2( rParent ), mrFillProps( rFillProps ) { @@ -273,7 +273,7 @@ ContextHandlerRef FillPropertiesContext::onCreateContext( } ContextHandlerRef FillPropertiesContext::createFillContext( - ContextHandler2Helper& rParent, sal_Int32 nElement, + ContextHandler2Helper const & rParent, sal_Int32 nElement, const AttributeList& rAttribs, FillProperties& rFillProps ) { switch( nElement ) @@ -288,7 +288,7 @@ ContextHandlerRef FillPropertiesContext::createFillContext( return nullptr; } -SimpleFillPropertiesContext::SimpleFillPropertiesContext( ContextHandler2Helper& rParent, Color& rColor ) : +SimpleFillPropertiesContext::SimpleFillPropertiesContext( ContextHandler2Helper const & rParent, Color& rColor ) : FillPropertiesContext( rParent, *this ), mrColor( rColor ) { @@ -299,7 +299,7 @@ SimpleFillPropertiesContext::~SimpleFillPropertiesContext() mrColor = getBestSolidColor(); } -BlipExtensionContext::BlipExtensionContext( ContextHandler2Helper& rParent, BlipFillProperties& rBlipProps ) : +BlipExtensionContext::BlipExtensionContext( ContextHandler2Helper const & rParent, BlipFillProperties& rBlipProps ) : ContextHandler2( rParent ), mrBlipProps( rBlipProps ) { @@ -323,7 +323,7 @@ ContextHandlerRef BlipExtensionContext::onCreateContext( return nullptr; } -ArtisticEffectContext::ArtisticEffectContext( ContextHandler2Helper& rParent, ArtisticEffectProperties& rEffect ) : +ArtisticEffectContext::ArtisticEffectContext( ContextHandler2Helper const & rParent, ArtisticEffectProperties& rEffect ) : ContextHandler2( rParent ), maEffect( rEffect ) { diff --git a/oox/source/drawingml/objectdefaultcontext.cxx b/oox/source/drawingml/objectdefaultcontext.cxx index 01045b1f0d6d..b0516bfac1bd 100644 --- a/oox/source/drawingml/objectdefaultcontext.cxx +++ b/oox/source/drawingml/objectdefaultcontext.cxx @@ -29,7 +29,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -objectDefaultContext::objectDefaultContext( ContextHandler2Helper& rParent, Theme& rTheme ) +objectDefaultContext::objectDefaultContext( ContextHandler2Helper const & rParent, Theme& rTheme ) : ContextHandler2( rParent ) , mrTheme( rTheme ) { diff --git a/oox/source/drawingml/scene3dcontext.cxx b/oox/source/drawingml/scene3dcontext.cxx index aeeb60c6d0cd..777f66522ffd 100644 --- a/oox/source/drawingml/scene3dcontext.cxx +++ b/oox/source/drawingml/scene3dcontext.cxx @@ -37,7 +37,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -Scene3DPropertiesContext::Scene3DPropertiesContext( ContextHandler2Helper& rParent, Shape3DProperties& r3DProperties ) throw() +Scene3DPropertiesContext::Scene3DPropertiesContext( ContextHandler2Helper const & rParent, Shape3DProperties& r3DProperties ) throw() : ContextHandler2( rParent ) , mr3DProperties( r3DProperties ) { @@ -70,7 +70,7 @@ ContextHandlerRef Scene3DPropertiesContext::onCreateContext( sal_Int32 aElementT return nullptr; } -Shape3DPropertiesContext::Shape3DPropertiesContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, Shape3DProperties& r3DProperties ) throw() +Shape3DPropertiesContext::Shape3DPropertiesContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, Shape3DProperties& r3DProperties ) throw() : ContextHandler2( rParent ) , mr3DProperties( r3DProperties ) { @@ -115,7 +115,7 @@ ContextHandlerRef Shape3DPropertiesContext::onCreateContext( sal_Int32 aElementT return nullptr; } -Scene3DRotationPropertiesContext::Scene3DRotationPropertiesContext( ContextHandler2Helper& rParent, RotationProperties& rRotationProperties ) throw() +Scene3DRotationPropertiesContext::Scene3DRotationPropertiesContext( ContextHandler2Helper const & rParent, RotationProperties& rRotationProperties ) throw() : ContextHandler2( rParent ) , mrRotationProperties( rRotationProperties ) { diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index ccc73d8b47c9..38b946a5e792 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -321,7 +321,7 @@ void Shape::applyShapeReference( const Shape& rReferencedShape, bool bUseText ) void Shape::addChildren( ::oox::core::XmlFilterBase& rFilterBase, const Theme* pTheme, const Reference< XShapes >& rxShapes, - basegfx::B2DHomMatrix& aTransformation ) + basegfx::B2DHomMatrix const & aTransformation ) { addChildren(rFilterBase, *this, pTheme, rxShapes, nullptr, aTransformation); } @@ -1140,7 +1140,7 @@ Reference< XShape > const & Shape::createAndInsert( return mxShape; } -void Shape::keepDiagramCompatibilityInfo( XmlFilterBase& rFilterBase ) +void Shape::keepDiagramCompatibilityInfo( XmlFilterBase const & rFilterBase ) { try { @@ -1189,7 +1189,7 @@ void Shape::keepDiagramCompatibilityInfo( XmlFilterBase& rFilterBase ) } } -Reference < XShape > Shape::renderDiagramToGraphic( XmlFilterBase& rFilterBase ) +Reference < XShape > Shape::renderDiagramToGraphic( XmlFilterBase const & rFilterBase ) { Reference< XShape > xShape; diff --git a/oox/source/drawingml/shapecontext.cxx b/oox/source/drawingml/shapecontext.cxx index 75db4852c201..baf7233a877b 100644 --- a/oox/source/drawingml/shapecontext.cxx +++ b/oox/source/drawingml/shapecontext.cxx @@ -48,7 +48,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { // CT_Shape -ShapeContext::ShapeContext( ContextHandler2Helper& rParent, ShapePtr const & pMasterShapePtr, ShapePtr const & pShapePtr ) +ShapeContext::ShapeContext( ContextHandler2Helper const & rParent, ShapePtr const & pMasterShapePtr, ShapePtr const & pShapePtr ) : ContextHandler2( rParent ) , mpMasterShapePtr( pMasterShapePtr ) , mpShapePtr( pShapePtr ) diff --git a/oox/source/drawingml/shapegroupcontext.cxx b/oox/source/drawingml/shapegroupcontext.cxx index e7c39af3a619..dae4ea67045a 100644 --- a/oox/source/drawingml/shapegroupcontext.cxx +++ b/oox/source/drawingml/shapegroupcontext.cxx @@ -43,7 +43,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -ShapeGroupContext::ShapeGroupContext( ContextHandler2Helper& rParent, ShapePtr const & pMasterShapePtr, ShapePtr const & pGroupShapePtr ) +ShapeGroupContext::ShapeGroupContext( ContextHandler2Helper const & rParent, ShapePtr const & pMasterShapePtr, ShapePtr const & pGroupShapePtr ) : ContextHandler2( rParent ) , mpGroupShapePtr( pGroupShapePtr ) , mpMasterShapePtr( pMasterShapePtr ) diff --git a/oox/source/drawingml/shapepropertiescontext.cxx b/oox/source/drawingml/shapepropertiescontext.cxx index 80b9201fbaff..6232df6771e8 100644 --- a/oox/source/drawingml/shapepropertiescontext.cxx +++ b/oox/source/drawingml/shapepropertiescontext.cxx @@ -45,7 +45,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { // CT_ShapeProperties -ShapePropertiesContext::ShapePropertiesContext( ContextHandler2Helper& rParent, Shape& rShape ) +ShapePropertiesContext::ShapePropertiesContext( ContextHandler2Helper const & rParent, Shape& rShape ) : ContextHandler2( rParent ) , mrShape( rShape ) { diff --git a/oox/source/drawingml/shapestylecontext.cxx b/oox/source/drawingml/shapestylecontext.cxx index 6a487e57b202..ad8e997b2c62 100644 --- a/oox/source/drawingml/shapestylecontext.cxx +++ b/oox/source/drawingml/shapestylecontext.cxx @@ -32,7 +32,7 @@ namespace oox { namespace drawingml { // CT_ShapeStyle -ShapeStyleContext::ShapeStyleContext( ContextHandler2Helper& rParent, Shape& rShape ) +ShapeStyleContext::ShapeStyleContext( ContextHandler2Helper const & rParent, Shape& rShape ) : ContextHandler2( rParent ) , mrShape( rShape ) { diff --git a/oox/source/drawingml/spdefcontext.cxx b/oox/source/drawingml/spdefcontext.cxx index b12cdc9d136d..bee38fb1bf5d 100644 --- a/oox/source/drawingml/spdefcontext.cxx +++ b/oox/source/drawingml/spdefcontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -spDefContext::spDefContext( ContextHandler2Helper& rParent, Shape& rDefaultObject ) +spDefContext::spDefContext( ContextHandler2Helper const & rParent, Shape& rDefaultObject ) : ContextHandler2( rParent ) , mrDefaultObject( rDefaultObject ) { diff --git a/oox/source/drawingml/table/tablebackgroundstylecontext.cxx b/oox/source/drawingml/table/tablebackgroundstylecontext.cxx index 6a065eec67fd..2383f8d2bf8c 100644 --- a/oox/source/drawingml/table/tablebackgroundstylecontext.cxx +++ b/oox/source/drawingml/table/tablebackgroundstylecontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { namespace table { -TableBackgroundStyleContext::TableBackgroundStyleContext( ContextHandler2Helper& rParent, TableStyle& rTableStyle ) +TableBackgroundStyleContext::TableBackgroundStyleContext( ContextHandler2Helper const & rParent, TableStyle& rTableStyle ) : ContextHandler2( rParent ) , mrTableStyle( rTableStyle ) { diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx index 847633537b86..fe91f54278dd 100644 --- a/oox/source/drawingml/table/tablecell.cxx +++ b/oox/source/drawingml/table/tablecell.cxx @@ -70,7 +70,7 @@ TableCell::~TableCell() } void applyLineAttributes( const ::oox::core::XmlFilterBase& rFilterBase, - Reference< XPropertySet >& rxPropSet, oox::drawingml::LineProperties& rLineProperties, + Reference< XPropertySet > const & rxPropSet, oox::drawingml::LineProperties& rLineProperties, sal_Int32 nPropId ) { BorderLine2 aBorderLine; diff --git a/oox/source/drawingml/table/tablecellcontext.cxx b/oox/source/drawingml/table/tablecellcontext.cxx index b206bcfbfd2c..de72563e284d 100644 --- a/oox/source/drawingml/table/tablecellcontext.cxx +++ b/oox/source/drawingml/table/tablecellcontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star; namespace oox { namespace drawingml { namespace table { -TableCellContext::TableCellContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, TableCell& rTableCell ) +TableCellContext::TableCellContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, TableCell& rTableCell ) : ContextHandler2( rParent ) , mrTableCell( rTableCell ) { diff --git a/oox/source/drawingml/table/tablecontext.cxx b/oox/source/drawingml/table/tablecontext.cxx index 39b7d1fca161..f858bfb30de2 100644 --- a/oox/source/drawingml/table/tablecontext.cxx +++ b/oox/source/drawingml/table/tablecontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star; namespace oox { namespace drawingml { namespace table { -TableContext::TableContext( ContextHandler2Helper& rParent, const ShapePtr& pShapePtr ) +TableContext::TableContext( ContextHandler2Helper const & rParent, const ShapePtr& pShapePtr ) : ShapeContext( rParent, ShapePtr(), pShapePtr ) , mrTableProperties( *pShapePtr->getTableProperties().get() ) { diff --git a/oox/source/drawingml/table/tablepartstylecontext.cxx b/oox/source/drawingml/table/tablepartstylecontext.cxx index a4444ac3a25e..216ad4c266ce 100644 --- a/oox/source/drawingml/table/tablepartstylecontext.cxx +++ b/oox/source/drawingml/table/tablepartstylecontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { namespace table { -TablePartStyleContext::TablePartStyleContext( ContextHandler2Helper& rParent, TableStylePart& rTableStylePart ) +TablePartStyleContext::TablePartStyleContext( ContextHandler2Helper const & rParent, TableStylePart& rTableStylePart ) : ContextHandler2( rParent ) , mrTableStylePart( rTableStylePart ) { diff --git a/oox/source/drawingml/table/tablerowcontext.cxx b/oox/source/drawingml/table/tablerowcontext.cxx index afef21608ec1..713a9a6393fe 100644 --- a/oox/source/drawingml/table/tablerowcontext.cxx +++ b/oox/source/drawingml/table/tablerowcontext.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star; namespace oox { namespace drawingml { namespace table { -TableRowContext::TableRowContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, TableRow& rTableRow ) +TableRowContext::TableRowContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, TableRow& rTableRow ) : ContextHandler2( rParent ) , mrTableRow( rTableRow ) { diff --git a/oox/source/drawingml/table/tablestylecellstylecontext.cxx b/oox/source/drawingml/table/tablestylecellstylecontext.cxx index 06bd6187b89d..70fad0ea5471 100644 --- a/oox/source/drawingml/table/tablestylecellstylecontext.cxx +++ b/oox/source/drawingml/table/tablestylecellstylecontext.cxx @@ -32,7 +32,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { namespace table { -TableStyleCellStyleContext::TableStyleCellStyleContext( ContextHandler2Helper& rParent, TableStylePart& rTableStylePart ) +TableStyleCellStyleContext::TableStyleCellStyleContext( ContextHandler2Helper const & rParent, TableStylePart& rTableStylePart ) : ContextHandler2( rParent ) , mrTableStylePart( rTableStylePart ) , mnLineType( XML_none ) diff --git a/oox/source/drawingml/table/tablestylecontext.cxx b/oox/source/drawingml/table/tablestylecontext.cxx index 2ccbd0f298d6..04ff9da87b77 100644 --- a/oox/source/drawingml/table/tablestylecontext.cxx +++ b/oox/source/drawingml/table/tablestylecontext.cxx @@ -32,7 +32,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { namespace table { -TableStyleContext::TableStyleContext( ContextHandler2Helper& rParent, +TableStyleContext::TableStyleContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, TableStyle& rTableStyle ) : ContextHandler2( rParent ) , mrTableStyle( rTableStyle ) diff --git a/oox/source/drawingml/table/tablestyletextstylecontext.cxx b/oox/source/drawingml/table/tablestyletextstylecontext.cxx index eb2feb53abc8..ce23037e0b95 100644 --- a/oox/source/drawingml/table/tablestyletextstylecontext.cxx +++ b/oox/source/drawingml/table/tablestyletextstylecontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { namespace table { -TableStyleTextStyleContext::TableStyleTextStyleContext( ContextHandler2Helper& rParent, +TableStyleTextStyleContext::TableStyleTextStyleContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, TableStylePart& rTableStylePart ) : ContextHandler2( rParent ) , mrTableStylePart( rTableStylePart ) diff --git a/oox/source/drawingml/textbodycontext.cxx b/oox/source/drawingml/textbodycontext.cxx index 8ee91760a5e6..58eb0b8abfa2 100644 --- a/oox/source/drawingml/textbodycontext.cxx +++ b/oox/source/drawingml/textbodycontext.cxx @@ -41,7 +41,7 @@ namespace oox { namespace drawingml { class TextParagraphContext : public ContextHandler2 { public: - TextParagraphContext( ContextHandler2Helper& rParent, TextParagraph& rPara ); + TextParagraphContext( ContextHandler2Helper const & rParent, TextParagraph& rPara ); virtual ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; @@ -49,7 +49,7 @@ protected: TextParagraph& mrParagraph; }; -TextParagraphContext::TextParagraphContext( ContextHandler2Helper& rParent, TextParagraph& rPara ) +TextParagraphContext::TextParagraphContext( ContextHandler2Helper const & rParent, TextParagraph& rPara ) : ContextHandler2( rParent ) , mrParagraph( rPara ) { @@ -104,7 +104,7 @@ ContextHandlerRef TextParagraphContext::onCreateContext( sal_Int32 aElementToken return nullptr; } -RegularTextRunContext::RegularTextRunContext( ContextHandler2Helper& rParent, TextRunPtr const & pRunPtr ) +RegularTextRunContext::RegularTextRunContext( ContextHandler2Helper const & rParent, TextRunPtr const & pRunPtr ) : ContextHandler2( rParent ) , mpRunPtr( pRunPtr ) , mbIsInText( false ) @@ -155,7 +155,7 @@ ContextHandlerRef RegularTextRunContext::onCreateContext( sal_Int32 aElementToke return this; } -TextBodyContext::TextBodyContext( ContextHandler2Helper& rParent, TextBody& rTextBody ) +TextBodyContext::TextBodyContext( ContextHandler2Helper const & rParent, TextBody& rTextBody ) : ContextHandler2( rParent ) , mrTextBody( rTextBody ) { diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx index 0c5da82aafeb..8a3c0dc12f88 100644 --- a/oox/source/drawingml/textbodypropertiescontext.cxx +++ b/oox/source/drawingml/textbodypropertiescontext.cxx @@ -40,7 +40,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { // CT_TextBodyProperties -TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler2Helper& rParent, +TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, TextBodyProperties& rTextBodyProp ) : ContextHandler2( rParent ) , mrTextBodyProp( rTextBodyProp ) diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx index 84ba8a044d0e..cec70f48bda6 100644 --- a/oox/source/drawingml/textcharacterpropertiescontext.cxx +++ b/oox/source/drawingml/textcharacterpropertiescontext.cxx @@ -39,7 +39,7 @@ namespace oox { namespace drawingml { // CT_TextCharacterProperties TextCharacterPropertiesContext::TextCharacterPropertiesContext( - ContextHandler2Helper& rParent, + ContextHandler2Helper const & rParent, const AttributeList& rAttribs, TextCharacterProperties& rTextCharacterProperties ) : ContextHandler2( rParent ) diff --git a/oox/source/drawingml/texteffectscontext.cxx b/oox/source/drawingml/texteffectscontext.cxx index b3b6b50e66e9..98c184be67c8 100644 --- a/oox/source/drawingml/texteffectscontext.cxx +++ b/oox/source/drawingml/texteffectscontext.cxx @@ -105,7 +105,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::beans; TextEffectsContext::TextEffectsContext( - ContextHandler2Helper& rParent, + ContextHandler2Helper const & rParent, sal_Int32 aElementToken, std::vector<PropertyValue>& rTextEffectsProperties) : ContextHandler2(rParent) diff --git a/oox/source/drawingml/textfieldcontext.cxx b/oox/source/drawingml/textfieldcontext.cxx index 91301cbd064d..4e6937afde69 100644 --- a/oox/source/drawingml/textfieldcontext.cxx +++ b/oox/source/drawingml/textfieldcontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { -TextFieldContext::TextFieldContext( ContextHandler2Helper& rParent, +TextFieldContext::TextFieldContext( ContextHandler2Helper const & rParent, const AttributeList& rAttributes, TextField& rTextField) : ContextHandler2( rParent ) diff --git a/oox/source/drawingml/textliststylecontext.cxx b/oox/source/drawingml/textliststylecontext.cxx index e7d3ea9f4f88..3a7bf9f1ccbf 100644 --- a/oox/source/drawingml/textliststylecontext.cxx +++ b/oox/source/drawingml/textliststylecontext.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { // CT_TextListStyle -TextListStyleContext::TextListStyleContext( ContextHandler2Helper& rParent, TextListStyle& rTextListStyle ) +TextListStyleContext::TextListStyleContext( ContextHandler2Helper const & rParent, TextListStyle& rTextListStyle ) : ContextHandler2( rParent ) , mrTextListStyle( rTextListStyle ) { diff --git a/oox/source/drawingml/textparagraphproperties.cxx b/oox/source/drawingml/textparagraphproperties.cxx index 0a825cfc28c1..07ebe0b6d119 100644 --- a/oox/source/drawingml/textparagraphproperties.cxx +++ b/oox/source/drawingml/textparagraphproperties.cxx @@ -76,7 +76,7 @@ void BulletList::setBulletChar( const OUString & sChar ) msBulletChar <<= sChar; } -void BulletList::setGraphic( css::uno::Reference< css::graphic::XGraphic >& rXGraphic ) +void BulletList::setGraphic( css::uno::Reference< css::graphic::XGraphic > const & rXGraphic ) { mnNumberingType <<= NumberingType::BITMAP; maGraphic <<= rXGraphic; diff --git a/oox/source/drawingml/textparagraphpropertiescontext.cxx b/oox/source/drawingml/textparagraphpropertiescontext.cxx index d8071652da73..0723afdb6070 100644 --- a/oox/source/drawingml/textparagraphpropertiescontext.cxx +++ b/oox/source/drawingml/textparagraphpropertiescontext.cxx @@ -43,7 +43,7 @@ using namespace ::com::sun::star::text; namespace oox { namespace drawingml { // CT_TextParagraphProperties -TextParagraphPropertiesContext::TextParagraphPropertiesContext( ContextHandler2Helper& rParent, +TextParagraphPropertiesContext::TextParagraphPropertiesContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, TextParagraphProperties& rTextParagraphProperties ) : ContextHandler2( rParent ) diff --git a/oox/source/drawingml/textspacingcontext.cxx b/oox/source/drawingml/textspacingcontext.cxx index f33b1c10a4e5..97c8162f70b8 100644 --- a/oox/source/drawingml/textspacingcontext.cxx +++ b/oox/source/drawingml/textspacingcontext.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::uno; namespace oox { namespace drawingml { - TextSpacingContext::TextSpacingContext( ContextHandler2Helper& rParent, TextSpacing & aSpacing ) + TextSpacingContext::TextSpacingContext( ContextHandler2Helper const & rParent, TextSpacing & aSpacing ) : ContextHandler2( rParent ) , maSpacing( aSpacing ) { diff --git a/oox/source/drawingml/textspacingcontext.hxx b/oox/source/drawingml/textspacingcontext.hxx index b11db5e1ad35..2676057d4f3b 100644 --- a/oox/source/drawingml/textspacingcontext.hxx +++ b/oox/source/drawingml/textspacingcontext.hxx @@ -29,7 +29,7 @@ class TextSpacing; class TextSpacingContext : public ::oox::core::ContextHandler2 { public: - TextSpacingContext( ::oox::core::ContextHandler2Helper& rParent, TextSpacing & aSpacing ); + TextSpacingContext( ::oox::core::ContextHandler2Helper const & rParent, TextSpacing & aSpacing ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override; diff --git a/oox/source/drawingml/texttabstoplistcontext.cxx b/oox/source/drawingml/texttabstoplistcontext.cxx index 46da6a23c175..12a908b58fb5 100644 --- a/oox/source/drawingml/texttabstoplistcontext.cxx +++ b/oox/source/drawingml/texttabstoplistcontext.cxx @@ -35,7 +35,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace drawingml { - TextTabStopListContext::TextTabStopListContext( ContextHandler2Helper& rParent, std::list< TabStop > & aTabList ) + TextTabStopListContext::TextTabStopListContext( ContextHandler2Helper const & rParent, std::list< TabStop > & aTabList ) : ContextHandler2( rParent ) , maTabList( aTabList ) { diff --git a/oox/source/drawingml/texttabstoplistcontext.hxx b/oox/source/drawingml/texttabstoplistcontext.hxx index 72e5474bfee9..6c63313d91d5 100644 --- a/oox/source/drawingml/texttabstoplistcontext.hxx +++ b/oox/source/drawingml/texttabstoplistcontext.hxx @@ -31,7 +31,7 @@ namespace oox { namespace drawingml { class TextTabStopListContext : public ::oox::core::ContextHandler2 { public: - TextTabStopListContext( ::oox::core::ContextHandler2Helper& rParent, + TextTabStopListContext( ::oox::core::ContextHandler2Helper const & rParent, ::std::list< css::style::TabStop > & aTabList ); virtual ~TextTabStopListContext() override; diff --git a/oox/source/drawingml/themeelementscontext.cxx b/oox/source/drawingml/themeelementscontext.cxx index a936c36678a9..f648e6ac39c2 100644 --- a/oox/source/drawingml/themeelementscontext.cxx +++ b/oox/source/drawingml/themeelementscontext.cxx @@ -41,14 +41,14 @@ namespace drawingml { class FillStyleListContext : public ContextHandler2 { public: - FillStyleListContext( ContextHandler2Helper& rParent, FillStyleList& rFillStyleList ); + FillStyleListContext( ContextHandler2Helper const & rParent, FillStyleList& rFillStyleList ); virtual ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; private: FillStyleList& mrFillStyleList; }; -FillStyleListContext::FillStyleListContext( ContextHandler2Helper& rParent, FillStyleList& rFillStyleList ) : +FillStyleListContext::FillStyleListContext( ContextHandler2Helper const & rParent, FillStyleList& rFillStyleList ) : ContextHandler2( rParent ), mrFillStyleList( rFillStyleList ) { @@ -73,14 +73,14 @@ ContextHandlerRef FillStyleListContext::onCreateContext( sal_Int32 nElement, con class LineStyleListContext : public ContextHandler2 { public: - LineStyleListContext( ContextHandler2Helper& rParent, LineStyleList& rLineStyleList ); + LineStyleListContext( ContextHandler2Helper const & rParent, LineStyleList& rLineStyleList ); virtual ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; private: LineStyleList& mrLineStyleList; }; -LineStyleListContext::LineStyleListContext( ContextHandler2Helper& rParent, LineStyleList& rLineStyleList ) : +LineStyleListContext::LineStyleListContext( ContextHandler2Helper const & rParent, LineStyleList& rLineStyleList ) : ContextHandler2( rParent ), mrLineStyleList( rLineStyleList ) { @@ -100,14 +100,14 @@ ContextHandlerRef LineStyleListContext::onCreateContext( sal_Int32 nElement, con class EffectStyleListContext : public ContextHandler2 { public: - EffectStyleListContext( ContextHandler2Helper& rParent, EffectStyleList& rEffectStyleList ); + EffectStyleListContext( ContextHandler2Helper const & rParent, EffectStyleList& rEffectStyleList ); virtual ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; private: EffectStyleList& mrEffectStyleList; }; -EffectStyleListContext::EffectStyleListContext( ContextHandler2Helper& rParent, EffectStyleList& rEffectStyleList ) : +EffectStyleListContext::EffectStyleListContext( ContextHandler2Helper const & rParent, EffectStyleList& rEffectStyleList ) : ContextHandler2( rParent ), mrEffectStyleList( rEffectStyleList ) { @@ -132,7 +132,7 @@ ContextHandlerRef EffectStyleListContext::onCreateContext( sal_Int32 nElement, c class FontSchemeContext : public ContextHandler2 { public: - FontSchemeContext( ContextHandler2Helper& rParent, FontScheme& rFontScheme ); + FontSchemeContext( ContextHandler2Helper const & rParent, FontScheme& rFontScheme ); virtual ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; virtual void onEndElement() override; @@ -141,7 +141,7 @@ private: TextCharacterPropertiesPtr mxCharProps; }; -FontSchemeContext::FontSchemeContext( ContextHandler2Helper& rParent, FontScheme& rFontScheme ) : +FontSchemeContext::FontSchemeContext( ContextHandler2Helper const & rParent, FontScheme& rFontScheme ) : ContextHandler2( rParent ), mrFontScheme( rFontScheme ) { @@ -187,7 +187,7 @@ void FontSchemeContext::onEndElement() } } -ThemeElementsContext::ThemeElementsContext( ContextHandler2Helper& rParent, Theme& rTheme ) : +ThemeElementsContext::ThemeElementsContext( ContextHandler2Helper const & rParent, Theme& rTheme ) : ContextHandler2( rParent ), mrTheme( rTheme ) { diff --git a/oox/source/drawingml/transform2dcontext.cxx b/oox/source/drawingml/transform2dcontext.cxx index 1950a4e2345d..519dafcce8b4 100644 --- a/oox/source/drawingml/transform2dcontext.cxx +++ b/oox/source/drawingml/transform2dcontext.cxx @@ -31,7 +31,7 @@ namespace oox { namespace drawingml { /** context to import a CT_Transform2D */ -Transform2DContext::Transform2DContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, Shape& rShape, bool btxXfrm ) throw() +Transform2DContext::Transform2DContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, Shape& rShape, bool btxXfrm ) throw() : ContextHandler2( rParent ) , mrShape( rShape ) , mbtxXfrm ( btxXfrm ) diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 107ef79079d5..5bf81ee1c821 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -364,7 +364,7 @@ sal_Int32 lcl_generateRandomValue() return comphelper::rng::uniform_int_distribution(0, 100000000-1); } -ChartExport::ChartExport( sal_Int32 nXmlNamespace, FSHelperPtr pFS, Reference< frame::XModel >& xModel, XmlFilterBase* pFB, DocumentType eDocumentType ) +ChartExport::ChartExport( sal_Int32 nXmlNamespace, FSHelperPtr pFS, Reference< frame::XModel > const & xModel, XmlFilterBase* pFB, DocumentType eDocumentType ) : DrawingML( std::move(pFS), pFB, eDocumentType ) , mnXmlNamespace( nXmlNamespace ) , mnSeriesCount(0) diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 6cf8246a79d4..b5d4a450b94b 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -533,7 +533,7 @@ ShapeExport& ShapeExport::WriteGroupShape(const uno::Reference<drawing::XShape>& return *this; } -static bool lcl_IsOnBlacklist(OUString& rShapeType) +static bool lcl_IsOnBlacklist(OUString const & rShapeType) { static const std::initializer_list<OUStringLiteral> vBlacklist = { "block-arc", @@ -599,7 +599,7 @@ static bool lcl_IsOnBlacklist(OUString& rShapeType) return std::find(vBlacklist.begin(), vBlacklist.end(), rShapeType) != vBlacklist.end(); } -static bool lcl_IsOnWhitelist(OUString& rShapeType) +static bool lcl_IsOnWhitelist(OUString const & rShapeType) { static const std::initializer_list<OUStringLiteral> vWhitelist = { "forbidden", diff --git a/oox/source/helper/binaryoutputstream.cxx b/oox/source/helper/binaryoutputstream.cxx index c6d0f50f6749..f75e2f5bc024 100644 --- a/oox/source/helper/binaryoutputstream.cxx +++ b/oox/source/helper/binaryoutputstream.cxx @@ -130,7 +130,7 @@ void BinaryOutputStream::writeCompressedUnicodeArray( const OUString& rString, b writeUnicodeArray( rString ); } -SequenceOutputStream::SequenceOutputStream( StreamDataSequence& rData ) : +SequenceOutputStream::SequenceOutputStream( StreamDataSequence const & rData ) : BinaryStreamBase( true ), SequenceSeekableStream( rData ) { diff --git a/oox/source/ole/axbinarywriter.cxx b/oox/source/ole/axbinarywriter.cxx index ae731480db48..c1287080d954 100644 --- a/oox/source/ole/axbinarywriter.cxx +++ b/oox/source/ole/axbinarywriter.cxx @@ -86,7 +86,7 @@ void AxAlignedOutputStream::align( size_t nSize ) namespace { -void lclWriteString( AxAlignedOutputStream& rOutStrm, OUString& rValue, sal_uInt32 nSize, bool bArrayString ) +void lclWriteString( AxAlignedOutputStream& rOutStrm, OUString const & rValue, sal_uInt32 nSize, bool bArrayString ) { bool bCompressed = getFlag( nSize, AX_STRING_COMPRESSED ); rOutStrm.writeCompressedUnicodeArray( rValue, bCompressed || bArrayString ); diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx index 96ecfbf91b69..789259210109 100644 --- a/oox/source/ole/axcontrol.cxx +++ b/oox/source/ole/axcontrol.cxx @@ -251,7 +251,7 @@ void ControlConverter::convertColor( PropertyMap& rPropMap, sal_Int32 nPropId, s rPropMap.setProperty( nPropId, OleHelper::decodeOleColor( mrGraphicHelper, nOleColor, mbDefaultColorBgr ) ); } -void ControlConverter::convertToMSColor( PropertySet& rPropSet, sal_Int32 nPropId, sal_uInt32& nOleColor, sal_uInt32 nDefault ) +void ControlConverter::convertToMSColor( PropertySet const & rPropSet, sal_Int32 nPropId, sal_uInt32& nOleColor, sal_uInt32 nDefault ) { sal_uInt32 nRGB = 0; if (rPropSet.getProperty( nRGB, nPropId )) @@ -275,7 +275,7 @@ void ControlConverter::convertOrientation( PropertyMap& rPropMap, bool bHorizont rPropMap.setProperty( PROP_Orientation, nScrollOrient ); } -void ControlConverter::convertToMSOrientation( PropertySet& rPropSet, bool& bHorizontal ) +void ControlConverter::convertToMSOrientation( PropertySet const & rPropSet, bool& bHorizontal ) { sal_Int32 nScrollOrient = ScrollBarOrientation::HORIZONTAL; if ( rPropSet.getProperty( nScrollOrient, PROP_Orientation ) ) @@ -416,7 +416,7 @@ void ControlConverter::convertAxBorder( PropertyMap& rPropMap, convertColor( rPropMap, PROP_BorderColor, nBorderColor ); } -void ControlConverter::convertToAxBorder( PropertySet& rPropSet, +void ControlConverter::convertToAxBorder( PropertySet const & rPropSet, sal_uInt32& nBorderColor, sal_Int32& nBorderStyle, sal_Int32& nSpecialEffect ) { sal_Int16 nBorder = API_BORDER_NONE; @@ -444,7 +444,7 @@ void ControlConverter::convertAxVisualEffect( PropertyMap& rPropMap, sal_Int32 n rPropMap.setProperty( PROP_VisualEffect, nVisualEffect ); } -void ControlConverter::convertToAxVisualEffect( PropertySet& rPropSet, sal_Int32& nSpecialEffect ) +void ControlConverter::convertToAxVisualEffect( PropertySet const & rPropSet, sal_Int32& nSpecialEffect ) { sal_Int16 nVisualEffect = AX_SPECIALEFFECT_FLAT; rPropSet.getProperty( nVisualEffect, PROP_VisualEffect ); @@ -523,7 +523,7 @@ void ControlConverter::convertAxState( PropertyMap& rPropMap, rPropMap.setProperty( PROP_TriState, nMultiSelect == AX_SELECTION_MULTI ); } -void ControlConverter::convertToAxState( PropertySet& rPropSet, +void ControlConverter::convertToAxState( PropertySet const & rPropSet, OUString& rValue, sal_Int32& nMultiSelect, ApiDefaultStateMode eDefStateMode, bool /*bAwtModel*/ ) { bool bSupportsTriState = eDefStateMode == API_DEFAULTSTATE_TRISTATE; @@ -560,7 +560,7 @@ void ControlConverter::convertAxOrientation( PropertyMap& rPropMap, convertOrientation( rPropMap, bHorizontal ); } -void ControlConverter::convertToAxOrientation( PropertySet& rPropSet, +void ControlConverter::convertToAxOrientation( PropertySet const & rPropSet, const AxPairData& /*rSize*/, sal_Int32& nOrientation ) { bool bHorizontal = true; diff --git a/oox/source/ole/axcontrolfragment.cxx b/oox/source/ole/axcontrolfragment.cxx index 4a76adc9e2f6..fb8a4652c01b 100644 --- a/oox/source/ole/axcontrolfragment.cxx +++ b/oox/source/ole/axcontrolfragment.cxx @@ -42,7 +42,7 @@ using ::oox::core::ContextHandlerRef; using ::oox::core::FragmentHandler2; using ::oox::core::XmlFilterBase; -AxControlPropertyContext::AxControlPropertyContext( FragmentHandler2& rFragment, ControlModelBase& rModel ) : +AxControlPropertyContext::AxControlPropertyContext( FragmentHandler2 const & rFragment, ControlModelBase& rModel ) : ContextHandler2( rFragment ), mrModel( rModel ), mnPropId( XML_TOKEN_INVALID ) diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx index 5c1fce46d5f9..1a6e7df17a5e 100644 --- a/oox/source/ole/olehelper.cxx +++ b/oox/source/ole/olehelper.cxx @@ -463,7 +463,7 @@ MSConvertOCXControls::importControlFromStream( ::oox::BinaryInputStream& rInStrm } bool -MSConvertOCXControls::ReadOCXCtlsStream( tools::SvRef<SotStorageStream>& rSrc1, Reference< XFormComponent > & rxFormComp, +MSConvertOCXControls::ReadOCXCtlsStream( tools::SvRef<SotStorageStream> const & rSrc1, Reference< XFormComponent > & rxFormComp, sal_Int32 nPos, sal_Int32 nStreamSize) { @@ -512,7 +512,7 @@ bool MSConvertOCXControls::importControlFromStream( ::oox::BinaryInputStream& rI return rxFormComp.is(); } -bool MSConvertOCXControls::ReadOCXStorage( tools::SvRef<SotStorage>& xOleStg, +bool MSConvertOCXControls::ReadOCXStorage( tools::SvRef<SotStorage> const & xOleStg, Reference< XFormComponent > & rxFormComp ) { if ( xOleStg.is() ) @@ -560,7 +560,7 @@ bool MSConvertOCXControls::WriteOCXExcelKludgeStream( const css::uno::Reference< return true; } -bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxModel, tools::SvRef<SotStorage> &xOleStg, +bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxModel, tools::SvRef<SotStorage> const &xOleStg, const Reference< XControlModel > &rxControlModel, const css::awt::Size& rSize, OUString &rName) { diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index dec660eccd96..03db42d7602d 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -812,7 +812,7 @@ void exportDirStream(SvStream& rStrm, const css::uno::Reference<css::container:: } // section 2.3.4.3 Module Stream -void exportModuleStream(SvStream& rStrm, const OUString& rSourceCode, const OUString& aElementName, css::script::ModuleInfo& rInfo) +void exportModuleStream(SvStream& rStrm, const OUString& rSourceCode, const OUString& aElementName, css::script::ModuleInfo const & rInfo) { SvMemoryStream aModuleStream(4096, 4096); diff --git a/oox/source/ppt/animvariantcontext.cxx b/oox/source/ppt/animvariantcontext.cxx index 5d7c1a140059..bf96b277159f 100644 --- a/oox/source/ppt/animvariantcontext.cxx +++ b/oox/source/ppt/animvariantcontext.cxx @@ -139,7 +139,7 @@ namespace oox { namespace ppt { return bRet; } - AnimVariantContext::AnimVariantContext( FragmentHandler2& rParent, sal_Int32 aElement, Any & aValue ) + AnimVariantContext::AnimVariantContext( FragmentHandler2 const & rParent, sal_Int32 aElement, Any & aValue ) : FragmentHandler2( rParent ) , mnElement( aElement ) , maValue( aValue ) diff --git a/oox/source/ppt/animvariantcontext.hxx b/oox/source/ppt/animvariantcontext.hxx index 4ab209180230..3b5ebe82261f 100644 --- a/oox/source/ppt/animvariantcontext.hxx +++ b/oox/source/ppt/animvariantcontext.hxx @@ -32,7 +32,7 @@ namespace oox { namespace ppt { : public ::oox::core::FragmentHandler2 { public: - AnimVariantContext( ::oox::core::FragmentHandler2& rParent, ::sal_Int32 aElement, css::uno::Any & aValue ); + AnimVariantContext( ::oox::core::FragmentHandler2 const & rParent, ::sal_Int32 aElement, css::uno::Any & aValue ); virtual ~AnimVariantContext( ) throw( ) override; virtual void onEndElement() override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/oox/source/ppt/backgroundproperties.cxx b/oox/source/ppt/backgroundproperties.cxx index 29ffe622500c..b7ddcbcb5543 100644 --- a/oox/source/ppt/backgroundproperties.cxx +++ b/oox/source/ppt/backgroundproperties.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { -BackgroundPropertiesContext::BackgroundPropertiesContext( FragmentHandler2& rParent, ::oox::drawingml::FillProperties& rFillProperties ) +BackgroundPropertiesContext::BackgroundPropertiesContext( FragmentHandler2 const & rParent, ::oox::drawingml::FillProperties& rFillProperties ) : FragmentHandler2( rParent ) , mrFillProperties( rFillProperties ) { diff --git a/oox/source/ppt/buildlistcontext.cxx b/oox/source/ppt/buildlistcontext.cxx index 1bee71b75522..8167bc05a02f 100644 --- a/oox/source/ppt/buildlistcontext.cxx +++ b/oox/source/ppt/buildlistcontext.cxx @@ -25,7 +25,7 @@ namespace oox { namespace ppt { - BuildListContext::BuildListContext( FragmentHandler2& rParent ) + BuildListContext::BuildListContext( FragmentHandler2 const & rParent ) : FragmentHandler2( rParent ) , mbInBldGraphic( false ) , mbBuildAsOne( false ) diff --git a/oox/source/ppt/buildlistcontext.hxx b/oox/source/ppt/buildlistcontext.hxx index 5fbf5f2b6618..903e9138c2cf 100644 --- a/oox/source/ppt/buildlistcontext.hxx +++ b/oox/source/ppt/buildlistcontext.hxx @@ -29,7 +29,7 @@ namespace oox { namespace ppt { : public ::oox::core::FragmentHandler2 { public: - explicit BuildListContext( ::oox::core::FragmentHandler2& rParent ); + explicit BuildListContext( ::oox::core::FragmentHandler2 const & rParent ); virtual ~BuildListContext( ) override; diff --git a/oox/source/ppt/commonbehaviorcontext.cxx b/oox/source/ppt/commonbehaviorcontext.cxx index a900f8a2b173..9751e7b97997 100644 --- a/oox/source/ppt/commonbehaviorcontext.cxx +++ b/oox/source/ppt/commonbehaviorcontext.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { - CommonBehaviorContext::CommonBehaviorContext( FragmentHandler2& rParent, + CommonBehaviorContext::CommonBehaviorContext( FragmentHandler2 const & rParent, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) : TimeNodeContext( rParent, PPT_TOKEN( cBhvr ), xAttribs, pNode ) diff --git a/oox/source/ppt/commonbehaviorcontext.hxx b/oox/source/ppt/commonbehaviorcontext.hxx index 4d396050a517..e36f746db309 100644 --- a/oox/source/ppt/commonbehaviorcontext.hxx +++ b/oox/source/ppt/commonbehaviorcontext.hxx @@ -39,7 +39,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - CommonBehaviorContext( ::oox::core::FragmentHandler2& rParent, + CommonBehaviorContext( ::oox::core::FragmentHandler2 const & rParent, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ); virtual ~CommonBehaviorContext( ) diff --git a/oox/source/ppt/commontimenodecontext.cxx b/oox/source/ppt/commontimenodecontext.cxx index 022a379757a1..038e1226cf41 100644 --- a/oox/source/ppt/commontimenodecontext.cxx +++ b/oox/source/ppt/commontimenodecontext.cxx @@ -352,7 +352,7 @@ OUString getConvertedSubType( sal_Int16 nPresetClass, sal_Int32 nPresetId, sal_I } CommonTimeNodeContext::CommonTimeNodeContext( - FragmentHandler2& rParent, + FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) diff --git a/oox/source/ppt/commontimenodecontext.hxx b/oox/source/ppt/commontimenodecontext.hxx index 5d5de495deca..ce66bb725eec 100644 --- a/oox/source/ppt/commontimenodecontext.hxx +++ b/oox/source/ppt/commontimenodecontext.hxx @@ -31,7 +31,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - CommonTimeNodeContext( ::oox::core::FragmentHandler2& rParent, sal_Int32 aElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode); + CommonTimeNodeContext( ::oox::core::FragmentHandler2 const & rParent, sal_Int32 aElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode); virtual ~CommonTimeNodeContext( ) throw( ) override; virtual void onEndElement() override; diff --git a/oox/source/ppt/conditioncontext.cxx b/oox/source/ppt/conditioncontext.cxx index 122ec7585403..591cfa75b32e 100644 --- a/oox/source/ppt/conditioncontext.cxx +++ b/oox/source/ppt/conditioncontext.cxx @@ -40,7 +40,7 @@ using namespace ::com::sun::star::animations; namespace oox { namespace ppt { - CondContext::CondContext( FragmentHandler2& rParent, const Reference< XFastAttributeList >& xAttribs, + CondContext::CondContext( FragmentHandler2 const & rParent, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode, AnimationCondition & aValue ) : TimeNodeContext( rParent, PPT_TOKEN( cond ), xAttribs, pNode ) , maCond( aValue ) @@ -153,7 +153,7 @@ namespace oox { namespace ppt { /** CT_TLTimeConditionList */ CondListContext::CondListContext( - FragmentHandler2& rParent, sal_Int32 aElement, + FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode, AnimationConditionList & aCond ) diff --git a/oox/source/ppt/conditioncontext.hxx b/oox/source/ppt/conditioncontext.hxx index 726191dba526..b9bb2cb0c961 100644 --- a/oox/source/ppt/conditioncontext.hxx +++ b/oox/source/ppt/conditioncontext.hxx @@ -34,7 +34,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - CondContext( ::oox::core::FragmentHandler2& rParent, + CondContext( ::oox::core::FragmentHandler2 const & rParent, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode, AnimationCondition & aCond ); virtual ~CondContext( ) throw( ) override; @@ -50,7 +50,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - CondListContext( ::oox::core::FragmentHandler2& rParent, + CondListContext( ::oox::core::FragmentHandler2 const & rParent, sal_Int32 aElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode, AnimationConditionList & aCondList ); diff --git a/oox/source/ppt/customshowlistcontext.cxx b/oox/source/ppt/customshowlistcontext.cxx index cccd54b7e968..c64d2904d5ac 100644 --- a/oox/source/ppt/customshowlistcontext.cxx +++ b/oox/source/ppt/customshowlistcontext.cxx @@ -34,16 +34,16 @@ class CustomShowContext : public ::oox::core::FragmentHandler2 CustomShow mrCustomShow; public: - CustomShowContext( ::oox::core::FragmentHandler2& rParent, + CustomShowContext( ::oox::core::FragmentHandler2 const & rParent, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, - CustomShow& rCustomShow ); + CustomShow const & rCustomShow ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; }; -CustomShowContext::CustomShowContext( FragmentHandler2& rParent, +CustomShowContext::CustomShowContext( FragmentHandler2 const & rParent, const Reference< XFastAttributeList >& rxAttribs, - CustomShow& rCustomShow ) + CustomShow const & rCustomShow ) : FragmentHandler2( rParent ) , mrCustomShow( rCustomShow ) { @@ -65,7 +65,7 @@ CustomShowContext::CustomShowContext( FragmentHandler2& rParent, return this; } -CustomShowListContext::CustomShowListContext( FragmentHandler2& rParent, +CustomShowListContext::CustomShowListContext( FragmentHandler2 const & rParent, std::vector< CustomShow >& rCustomShowList ) : FragmentHandler2( rParent ) , mrCustomShowList( rCustomShowList ) diff --git a/oox/source/ppt/headerfootercontext.cxx b/oox/source/ppt/headerfootercontext.cxx index 9de098fca166..bf157bf5390a 100644 --- a/oox/source/ppt/headerfootercontext.cxx +++ b/oox/source/ppt/headerfootercontext.cxx @@ -27,7 +27,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { - HeaderFooterContext::HeaderFooterContext( FragmentHandler2& rParent, + HeaderFooterContext::HeaderFooterContext( FragmentHandler2 const & rParent, const AttributeList& rAttribs, HeaderFooter& rHeaderFooter ) : FragmentHandler2( rParent ) { diff --git a/oox/source/ppt/headerfootercontext.hxx b/oox/source/ppt/headerfootercontext.hxx index 89ab5b9d79a7..575c61a34eac 100644 --- a/oox/source/ppt/headerfootercontext.hxx +++ b/oox/source/ppt/headerfootercontext.hxx @@ -29,7 +29,7 @@ namespace oox { namespace ppt { class HeaderFooterContext : public ::oox::core::FragmentHandler2 { public: - HeaderFooterContext( ::oox::core::FragmentHandler2& rParent, + HeaderFooterContext( ::oox::core::FragmentHandler2 const & rParent, const AttributeList& rAttribs, HeaderFooter& rHeaderFooter ); virtual ~HeaderFooterContext( ) override; diff --git a/oox/source/ppt/pptgraphicshapecontext.cxx b/oox/source/ppt/pptgraphicshapecontext.cxx index 826fad39ef68..4ad6962aa4a4 100644 --- a/oox/source/ppt/pptgraphicshapecontext.cxx +++ b/oox/source/ppt/pptgraphicshapecontext.cxx @@ -48,7 +48,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { // CT_Shape -PPTGraphicShapeContext::PPTGraphicShapeContext( ContextHandler2Helper& rParent, const SlidePersistPtr& rSlidePersistPtr, const oox::drawingml::ShapePtr& pMasterShapePtr, const oox::drawingml::ShapePtr& pShapePtr ) +PPTGraphicShapeContext::PPTGraphicShapeContext( ContextHandler2Helper const & rParent, const SlidePersistPtr& rSlidePersistPtr, const oox::drawingml::ShapePtr& pMasterShapePtr, const oox::drawingml::ShapePtr& pShapePtr ) : oox::drawingml::GraphicShapeContext( rParent, pMasterShapePtr, pShapePtr ) , mpSlidePersistPtr( rSlidePersistPtr ) { diff --git a/oox/source/ppt/pptshapecontext.cxx b/oox/source/ppt/pptshapecontext.cxx index d3348dcb1c1c..396f3af2a3ec 100644 --- a/oox/source/ppt/pptshapecontext.cxx +++ b/oox/source/ppt/pptshapecontext.cxx @@ -50,7 +50,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { // CT_Shape -PPTShapeContext::PPTShapeContext( ContextHandler2Helper& rParent, const SlidePersistPtr& rSlidePersistPtr, const oox::drawingml::ShapePtr& pMasterShapePtr, const oox::drawingml::ShapePtr& pShapePtr ) +PPTShapeContext::PPTShapeContext( ContextHandler2Helper const & rParent, const SlidePersistPtr& rSlidePersistPtr, const oox::drawingml::ShapePtr& pMasterShapePtr, const oox::drawingml::ShapePtr& pShapePtr ) : oox::drawingml::ShapeContext( rParent, pMasterShapePtr, pShapePtr ) , mpSlidePersistPtr( rSlidePersistPtr ) { diff --git a/oox/source/ppt/pptshapegroupcontext.cxx b/oox/source/ppt/pptshapegroupcontext.cxx index 4ad250a15cff..7b9fc6126c46 100644 --- a/oox/source/ppt/pptshapegroupcontext.cxx +++ b/oox/source/ppt/pptshapegroupcontext.cxx @@ -51,7 +51,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { PPTShapeGroupContext::PPTShapeGroupContext( - ContextHandler2Helper& rParent, + ContextHandler2Helper const & rParent, const oox::ppt::SlidePersistPtr& rSlidePersistPtr, const ShapeLocation eShapeLocation, const oox::drawingml::ShapePtr& pMasterShapePtr, diff --git a/oox/source/ppt/pptshapepropertiescontext.cxx b/oox/source/ppt/pptshapepropertiescontext.cxx index 4fca73a3d9a7..90291c0a1865 100644 --- a/oox/source/ppt/pptshapepropertiescontext.cxx +++ b/oox/source/ppt/pptshapepropertiescontext.cxx @@ -47,7 +47,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { // CT_Shape -PPTShapePropertiesContext::PPTShapePropertiesContext( ContextHandler2Helper& rParent, ::oox::drawingml::Shape& rShape ) +PPTShapePropertiesContext::PPTShapePropertiesContext( ContextHandler2Helper const & rParent, ::oox::drawingml::Shape& rShape ) : ShapePropertiesContext( rParent, rShape ) { } diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx index 4ef9ea282dea..07433617b612 100644 --- a/oox/source/ppt/presentationfragmenthandler.cxx +++ b/oox/source/ppt/presentationfragmenthandler.cxx @@ -83,7 +83,7 @@ PresentationFragmentHandler::~PresentationFragmentHandler() throw() { } -void ResolveTextFields( XmlFilterBase& rFilter ) +void ResolveTextFields( XmlFilterBase const & rFilter ) { const oox::core::TextFieldStack& rTextFields = rFilter.getTextFieldStack(); if ( !rTextFields.empty() ) diff --git a/oox/source/ppt/slidemastertextstylescontext.cxx b/oox/source/ppt/slidemastertextstylescontext.cxx index 8142fc1cdb3b..ab25f168500b 100644 --- a/oox/source/ppt/slidemastertextstylescontext.cxx +++ b/oox/source/ppt/slidemastertextstylescontext.cxx @@ -29,7 +29,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { -SlideMasterTextStylesContext::SlideMasterTextStylesContext( FragmentHandler2& rParent, SlidePersistPtr const & pSlidePersistPtr ) +SlideMasterTextStylesContext::SlideMasterTextStylesContext( FragmentHandler2 const & rParent, SlidePersistPtr const & pSlidePersistPtr ) : FragmentHandler2( rParent ) , mpSlidePersistPtr( pSlidePersistPtr ) { diff --git a/oox/source/ppt/slidepersist.cxx b/oox/source/ppt/slidepersist.cxx index 7621ed6d7094..33a2464cebb8 100644 --- a/oox/source/ppt/slidepersist.cxx +++ b/oox/source/ppt/slidepersist.cxx @@ -182,8 +182,8 @@ void SlidePersist::createBackground( const XmlFilterBase& rFilterBase ) } } -void setTextStyle( Reference< beans::XPropertySet >& rxPropSet, const XmlFilterBase& rFilter, - oox::drawingml::TextListStylePtr& pTextListStylePtr, int nLevel ) +void setTextStyle( Reference< beans::XPropertySet > const & rxPropSet, const XmlFilterBase& rFilter, + oox::drawingml::TextListStylePtr const & pTextListStylePtr, int nLevel ) { ::oox::drawingml::TextParagraphPropertiesPtr pTextParagraphPropertiesPtr( pTextListStylePtr->getListStyle()[ nLevel ] ); if( pTextParagraphPropertiesPtr == nullptr ) diff --git a/oox/source/ppt/slidetimingcontext.cxx b/oox/source/ppt/slidetimingcontext.cxx index d2ed428b0c37..bf5951b75e7e 100644 --- a/oox/source/ppt/slidetimingcontext.cxx +++ b/oox/source/ppt/slidetimingcontext.cxx @@ -42,7 +42,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { -SlideTimingContext::SlideTimingContext( FragmentHandler2& rParent, TimeNodePtrList & aTimeNodeList ) throw() +SlideTimingContext::SlideTimingContext( FragmentHandler2 const & rParent, TimeNodePtrList & aTimeNodeList ) throw() : FragmentHandler2( rParent ) , maTimeNodeList( aTimeNodeList ) { diff --git a/oox/source/ppt/slidetransitioncontext.cxx b/oox/source/ppt/slidetransitioncontext.cxx index 9b29653e98e6..c9ebcfda3a0c 100644 --- a/oox/source/ppt/slidetransitioncontext.cxx +++ b/oox/source/ppt/slidetransitioncontext.cxx @@ -42,7 +42,7 @@ using namespace ::com::sun::star::container; namespace oox { namespace ppt { -SlideTransitionContext::SlideTransitionContext( FragmentHandler2& rParent, const AttributeList& rAttribs, PropertyMap & aProperties ) throw() +SlideTransitionContext::SlideTransitionContext( FragmentHandler2 const & rParent, const AttributeList& rAttribs, PropertyMap & aProperties ) throw() : FragmentHandler2( rParent ) , maSlideProperties( aProperties ) , mbHasTransition( false ) diff --git a/oox/source/ppt/soundactioncontext.cxx b/oox/source/ppt/soundactioncontext.cxx index a16598854c15..34b39b1c94dc 100644 --- a/oox/source/ppt/soundactioncontext.cxx +++ b/oox/source/ppt/soundactioncontext.cxx @@ -35,7 +35,7 @@ using namespace ::com::sun::star::uno; namespace oox { namespace ppt { - SoundActionContext::SoundActionContext( FragmentHandler2& rParent, PropertyMap & aProperties ) throw() + SoundActionContext::SoundActionContext( FragmentHandler2 const & rParent, PropertyMap & aProperties ) throw() : FragmentHandler2( rParent ) , maSlideProperties( aProperties ) , mbHasStartSound( false ) diff --git a/oox/source/ppt/timeanimvaluecontext.cxx b/oox/source/ppt/timeanimvaluecontext.cxx index 531bf8cb8276..dccd2c381235 100644 --- a/oox/source/ppt/timeanimvaluecontext.cxx +++ b/oox/source/ppt/timeanimvaluecontext.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox { namespace ppt { - TimeAnimValueListContext::TimeAnimValueListContext( FragmentHandler2& rParent, + TimeAnimValueListContext::TimeAnimValueListContext( FragmentHandler2 const & rParent, const Reference< XFastAttributeList >& /*xAttribs*/, TimeAnimationValueList & aTavList ) : FragmentHandler2( rParent ) diff --git a/oox/source/ppt/timeanimvaluecontext.hxx b/oox/source/ppt/timeanimvaluecontext.hxx index 2562393e71d7..059564b44958 100644 --- a/oox/source/ppt/timeanimvaluecontext.hxx +++ b/oox/source/ppt/timeanimvaluecontext.hxx @@ -30,7 +30,7 @@ namespace oox { namespace ppt { : public ::oox::core::FragmentHandler2 { public: - TimeAnimValueListContext( ::oox::core::FragmentHandler2& rParent, + TimeAnimValueListContext( ::oox::core::FragmentHandler2 const & rParent, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, TimeAnimationValueList & aTavList ); diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx index 55ca84c161b7..3421b4abc475 100644 --- a/oox/source/ppt/timenodelistcontext.cxx +++ b/oox/source/ppt/timenodelistcontext.cxx @@ -105,7 +105,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - MediaNodeContext( FragmentHandler2& rParent, sal_Int32 aElement, + MediaNodeContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -164,7 +164,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - SetTimeNodeContext( FragmentHandler2& rParent, sal_Int32 aElement, + SetTimeNodeContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -215,7 +215,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - CmdTimeNodeContext( FragmentHandler2& rParent, sal_Int32 aElement, + CmdTimeNodeContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -328,7 +328,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - SequenceTimeNodeContext( FragmentHandler2& rParent, sal_Int32 aElement, + SequenceTimeNodeContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -371,7 +371,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - ParallelExclTimeNodeContext( FragmentHandler2& rParent, sal_Int32 aElement, + ParallelExclTimeNodeContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -400,7 +400,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - AnimColorContext( FragmentHandler2& rParent, sal_Int32 aElement, + AnimColorContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) throw() : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -491,7 +491,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - AnimContext( FragmentHandler2& rParent, sal_Int32 aElement, + AnimContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) throw() : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -595,7 +595,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - AnimScaleContext( FragmentHandler2& rParent, sal_Int32 aElement, + AnimScaleContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) throw() : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -675,7 +675,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - AnimRotContext( FragmentHandler2& rParent, sal_Int32 aElement, + AnimRotContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) throw() : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -722,7 +722,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - AnimMotionContext( FragmentHandler2& rParent, sal_Int32 aElement, + AnimMotionContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) throw() : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -817,7 +817,7 @@ namespace oox { namespace ppt { : public TimeNodeContext { public: - AnimEffectContext( FragmentHandler2& rParent, sal_Int32 aElement, + AnimEffectContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) throw() : TimeNodeContext( rParent, aElement, xAttribs, pNode ) @@ -855,7 +855,7 @@ namespace oox { namespace ppt { }; TimeNodeContext * TimeNodeContext::makeContext( - FragmentHandler2& rParent, sal_Int32 aElement, + FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ) { @@ -905,7 +905,7 @@ namespace oox { namespace ppt { return pCtx; } - TimeNodeContext::TimeNodeContext( FragmentHandler2& rParent, sal_Int32 aElement, + TimeNodeContext::TimeNodeContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& /*xAttribs*/, const TimeNodePtr & pNode ) throw() : FragmentHandler2( rParent ) @@ -919,7 +919,7 @@ namespace oox { namespace ppt { } - TimeNodeListContext::TimeNodeListContext( FragmentHandler2& rParent, TimeNodePtrList & aList ) + TimeNodeListContext::TimeNodeListContext( FragmentHandler2 const & rParent, TimeNodePtrList & aList ) throw() : FragmentHandler2( rParent ) , maList( aList ) diff --git a/oox/source/ppt/timetargetelementcontext.cxx b/oox/source/ppt/timetargetelementcontext.cxx index 5043ef5bb55b..1f30e1c0e345 100644 --- a/oox/source/ppt/timetargetelementcontext.cxx +++ b/oox/source/ppt/timetargetelementcontext.cxx @@ -39,7 +39,7 @@ namespace oox { namespace ppt { : public FragmentHandler2 { public: - ShapeTargetElementContext( FragmentHandler2& rParent, ShapeTargetElement & aValue ) + ShapeTargetElementContext( FragmentHandler2 const & rParent, ShapeTargetElement & aValue ) : FragmentHandler2( rParent ) , bTargetSet(false) , maShapeTarget(aValue) @@ -92,7 +92,7 @@ namespace oox { namespace ppt { ShapeTargetElement & maShapeTarget; }; - TimeTargetElementContext::TimeTargetElementContext( FragmentHandler2& rParent, const AnimTargetElementPtr & pValue ) + TimeTargetElementContext::TimeTargetElementContext( FragmentHandler2 const & rParent, const AnimTargetElementPtr & pValue ) : FragmentHandler2( rParent ), mpTarget( pValue ) { diff --git a/oox/source/ppt/timetargetelementcontext.hxx b/oox/source/ppt/timetargetelementcontext.hxx index c51a6d8207a8..6b71726ea550 100644 --- a/oox/source/ppt/timetargetelementcontext.hxx +++ b/oox/source/ppt/timetargetelementcontext.hxx @@ -30,7 +30,7 @@ namespace oox { namespace ppt { : public ::oox::core::FragmentHandler2 { public: - TimeTargetElementContext( ::oox::core::FragmentHandler2& rParent, const AnimTargetElementPtr & aValue ); + TimeTargetElementContext( ::oox::core::FragmentHandler2 const & rParent, const AnimTargetElementPtr & aValue ); virtual ~TimeTargetElementContext( ) throw( ) override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/oox/source/shape/LockedCanvasContext.cxx b/oox/source/shape/LockedCanvasContext.cxx index add56c4b09b1..661227086431 100644 --- a/oox/source/shape/LockedCanvasContext.cxx +++ b/oox/source/shape/LockedCanvasContext.cxx @@ -20,7 +20,7 @@ namespace oox namespace shape { -LockedCanvasContext::LockedCanvasContext(ContextHandler2Helper& rParent) +LockedCanvasContext::LockedCanvasContext(ContextHandler2Helper const & rParent) : ContextHandler2(rParent) { } diff --git a/oox/source/shape/LockedCanvasContext.hxx b/oox/source/shape/LockedCanvasContext.hxx index d500f12dd082..4c26809a9669 100644 --- a/oox/source/shape/LockedCanvasContext.hxx +++ b/oox/source/shape/LockedCanvasContext.hxx @@ -22,7 +22,7 @@ namespace shape class LockedCanvasContext : public oox::core::ContextHandler2 { public: - explicit LockedCanvasContext(oox::core::ContextHandler2Helper& rParent); + explicit LockedCanvasContext(oox::core::ContextHandler2Helper const & rParent); ~LockedCanvasContext() override; oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const ::oox::AttributeList& rAttribs) override; diff --git a/oox/source/shape/WpgContext.cxx b/oox/source/shape/WpgContext.cxx index 2ae26fedb84c..e7f67dd52cd3 100644 --- a/oox/source/shape/WpgContext.cxx +++ b/oox/source/shape/WpgContext.cxx @@ -21,7 +21,7 @@ namespace oox namespace shape { -WpgContext::WpgContext(ContextHandler2Helper& rParent) +WpgContext::WpgContext(ContextHandler2Helper const & rParent) : ContextHandler2(rParent) { mpShape.reset(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape")); diff --git a/oox/source/shape/WpgContext.hxx b/oox/source/shape/WpgContext.hxx index f313a7f9b3ff..1280d537f9a4 100644 --- a/oox/source/shape/WpgContext.hxx +++ b/oox/source/shape/WpgContext.hxx @@ -22,7 +22,7 @@ namespace shape class WpgContext : public oox::core::ContextHandler2 { public: - explicit WpgContext(oox::core::ContextHandler2Helper& rParent); + explicit WpgContext(oox::core::ContextHandler2Helper const & rParent); ~WpgContext() override; oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const oox::AttributeList& rAttribs) override; diff --git a/oox/source/shape/WpsContext.cxx b/oox/source/shape/WpsContext.cxx index b26ce06562b0..7aa5c169f3f0 100644 --- a/oox/source/shape/WpsContext.cxx +++ b/oox/source/shape/WpsContext.cxx @@ -33,7 +33,7 @@ namespace oox namespace shape { -WpsContext::WpsContext(ContextHandler2Helper& rParent, uno::Reference<drawing::XShape> xShape) +WpsContext::WpsContext(ContextHandler2Helper const & rParent, uno::Reference<drawing::XShape> xShape) : ContextHandler2(rParent), mxShape(std::move(xShape)) { diff --git a/oox/source/shape/WpsContext.hxx b/oox/source/shape/WpsContext.hxx index cc9af2160cdc..c2e53765669f 100644 --- a/oox/source/shape/WpsContext.hxx +++ b/oox/source/shape/WpsContext.hxx @@ -22,7 +22,7 @@ namespace shape class WpsContext : public oox::core::ContextHandler2 { public: - WpsContext(oox::core::ContextHandler2Helper& rParent, css::uno::Reference<css::drawing::XShape> xShape); + WpsContext(oox::core::ContextHandler2Helper const & rParent, css::uno::Reference<css::drawing::XShape> xShape); ~WpsContext() override; oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const oox::AttributeList& rAttribs) override; diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index b0dda2a6a134..2d03cb7e38e0 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -837,7 +837,7 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes return xShape; } -Reference< XShape > SimpleShape::createPictureObject( const Reference< XShapes >& rxShapes, const awt::Rectangle& rShapeRect, OUString& rGraphicPath ) const +Reference< XShape > SimpleShape::createPictureObject( const Reference< XShapes >& rxShapes, const awt::Rectangle& rShapeRect, OUString const & rGraphicPath ) const { Reference< XShape > xShape = mrDrawing.createAndInsertXShape( "com.sun.star.drawing.GraphicObjectShape", rxShapes, rShapeRect ); if( xShape.is() ) diff --git a/oox/source/vml/vmlshapecontext.cxx b/oox/source/vml/vmlshapecontext.cxx index 7e9f2463157f..29d1f71f8a4d 100644 --- a/oox/source/vml/vmlshapecontext.cxx +++ b/oox/source/vml/vmlshapecontext.cxx @@ -136,7 +136,7 @@ bool lclDecodeVmlxBool( const OUString& rValue, bool bDefaultForEmpty ) } // namespace -ShapeLayoutContext::ShapeLayoutContext( ContextHandler2Helper& rParent, Drawing& rDrawing ) : +ShapeLayoutContext::ShapeLayoutContext( ContextHandler2Helper const & rParent, Drawing& rDrawing ) : ContextHandler2( rParent ), mrDrawing( rDrawing ) { @@ -162,7 +162,7 @@ ContextHandlerRef ShapeLayoutContext::onCreateContext( sal_Int32 nElement, const return nullptr; } -ClientDataContext::ClientDataContext( ContextHandler2Helper& rParent, +ClientDataContext::ClientDataContext( ContextHandler2Helper const & rParent, ClientData& rClientData, const AttributeList& rAttribs ) : ContextHandler2( rParent ), mrClientData( rClientData ) @@ -222,12 +222,12 @@ void ClientDataContext::onEndElement() } } -ShapeContextBase::ShapeContextBase( ContextHandler2Helper& rParent ) : +ShapeContextBase::ShapeContextBase( ContextHandler2Helper const & rParent ) : ContextHandler2( rParent ) { } -ContextHandlerRef ShapeContextBase::createShapeContext( ContextHandler2Helper& rParent, +ContextHandlerRef ShapeContextBase::createShapeContext( ContextHandler2Helper const & rParent, ShapeContainer& rShapes, sal_Int32 nElement, const AttributeList& rAttribs ) { switch( nElement ) @@ -266,7 +266,7 @@ ContextHandlerRef ShapeContextBase::createShapeContext( ContextHandler2Helper& r return nullptr; } -ShapeTypeContext::ShapeTypeContext( ContextHandler2Helper& rParent, ShapeType& rShapeType, const AttributeList& rAttribs ) : +ShapeTypeContext::ShapeTypeContext( ContextHandler2Helper const & rParent, ShapeType& rShapeType, const AttributeList& rAttribs ) : ShapeContextBase( rParent ), mrTypeModel( rShapeType.getTypeModel() ) { @@ -439,7 +439,7 @@ void ShapeTypeContext::setStyle( const OUString& rStyle ) } } -ShapeContext::ShapeContext( ContextHandler2Helper& rParent, ShapeBase& rShape, const AttributeList& rAttribs ) : +ShapeContext::ShapeContext( ContextHandler2Helper const & rParent, ShapeBase& rShape, const AttributeList& rAttribs ) : ShapeTypeContext( rParent, rShape, rAttribs ), mrShape( rShape ), mrShapeModel( rShape.getShapeModel() ) @@ -529,7 +529,7 @@ void ShapeContext::setVmlPath( const OUString& rPath ) mrShapeModel.maVmlPath = rPath; } -GroupShapeContext::GroupShapeContext( ContextHandler2Helper& rParent, GroupShape& rShape, const AttributeList& rAttribs ) : +GroupShapeContext::GroupShapeContext( ContextHandler2Helper const & rParent, GroupShape& rShape, const AttributeList& rAttribs ) : ShapeContext( rParent, rShape, rAttribs ), mrShapes( rShape.getChildren() ) { @@ -543,7 +543,7 @@ ContextHandlerRef GroupShapeContext::onCreateContext( sal_Int32 nElement, const return xContext.get() ? xContext : ShapeContext::onCreateContext( nElement, rAttribs ); } -RectangleShapeContext::RectangleShapeContext( ContextHandler2Helper& rParent, const AttributeList& rAttribs, RectangleShape& rShape ) : +RectangleShapeContext::RectangleShapeContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, RectangleShape& rShape ) : ShapeContext( rParent, rShape, rAttribs ) { } diff --git a/oox/source/vml/vmltextboxcontext.cxx b/oox/source/vml/vmltextboxcontext.cxx index c46ff71b98a5..0465b8dff5a7 100644 --- a/oox/source/vml/vmltextboxcontext.cxx +++ b/oox/source/vml/vmltextboxcontext.cxx @@ -33,8 +33,8 @@ using ::oox::core::ContextHandler2; using ::oox::core::ContextHandler2Helper; using ::oox::core::ContextHandlerRef; -TextPortionContext::TextPortionContext( ContextHandler2Helper& rParent, - TextBox& rTextBox, TextParagraphModel& rParagraph, const TextFontModel& rParentFont, +TextPortionContext::TextPortionContext( ContextHandler2Helper const & rParent, + TextBox& rTextBox, TextParagraphModel const & rParagraph, const TextFontModel& rParentFont, sal_Int32 nElement, const AttributeList& rAttribs ) : ContextHandler2( rParent ), mrTextBox( rTextBox ), @@ -176,7 +176,7 @@ void TextPortionContext::onEndElement() mrTextBox.appendPortion( maParagraph, maFont, OUString( ' ' ) ); } -TextBoxContext::TextBoxContext( ContextHandler2Helper& rParent, TextBox& rTextBox, const AttributeList& rAttribs, +TextBoxContext::TextBoxContext( ContextHandler2Helper const & rParent, TextBox& rTextBox, const AttributeList& rAttribs, const GraphicHelper& graphicHelper ) : ContextHandler2( rParent ), mrTextBox( rTextBox ) |