summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 11:49:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 13:03:29 +0200
commit8bedbc3f567f3f6d567376ccf0830160df1d4bbb (patch)
treed3f4292a0529dbced8916abd3a6cef53ae6ad2b5 /include/xmloff
parentf24b46c27243b88e4d367d7b105d1365e97dbd76 (diff)
loplugin:constparams in xmloff
Change-Id: Iec9535b106c85e47ddb14eec4ef3db5b1c8d8fd7 Reviewed-on: https://gerrit.libreoffice.org/40219 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/XMLEventExport.hxx8
-rw-r--r--include/xmloff/numehelp.hxx4
-rw-r--r--include/xmloff/shapeexport.hxx4
-rw-r--r--include/xmloff/shapeimport.hxx10
-rw-r--r--include/xmloff/txtimp.hxx10
-rw-r--r--include/xmloff/txtimppr.hxx10
-rw-r--r--include/xmloff/txtparae.hxx2
-rw-r--r--include/xmloff/xmlaustp.hxx4
-rw-r--r--include/xmloff/xmlexp.hxx10
-rw-r--r--include/xmloff/xmlimp.hxx10
-rw-r--r--include/xmloff/xmlnumfi.hxx2
-rw-r--r--include/xmloff/xmluconv.hxx2
12 files changed, 38 insertions, 38 deletions
diff --git a/include/xmloff/XMLEventExport.hxx b/include/xmloff/XMLEventExport.hxx
index 6a3d48ad1e12..5ca4a2b23448 100644
--- a/include/xmloff/XMLEventExport.hxx
+++ b/include/xmloff/XMLEventExport.hxx
@@ -83,20 +83,20 @@ public:
void AddTranslationTable( const XMLEventNameTranslation* pTransTable );
/// export the events (calls EventExport::Export(Reference<XNameAccess>) )
- void Export( css::uno::Reference<css::document::XEventsSupplier> & xAccess,
+ void Export( css::uno::Reference<css::document::XEventsSupplier> const & xAccess,
bool bUseWhitespace = true);
/// export the events (calls EventExport::Export(Reference<XNameAccess>) )
- void Export( css::uno::Reference<css::container::XNameReplace> & xAccess,
+ void Export( css::uno::Reference<css::container::XNameReplace> const & xAccess,
bool bUseWhitespace = true);
/// export the events (writes <office:events> element)
- void Export( css::uno::Reference<css::container::XNameAccess> & xAccess,
+ void Export( css::uno::Reference<css::container::XNameAccess> const & xAccess,
bool bUseWhitespace = true);
/// export the events, but write <officeooo:events> element
/// (for new file format additions)
- void ExportExt( css::uno::Reference<css::container::XNameAccess> & xAccess);
+ void ExportExt( css::uno::Reference<css::container::XNameAccess> const & xAccess);
/// export a single event (writes <office:events> element)
void ExportSingleEvent(
diff --git a/include/xmloff/numehelp.hxx b/include/xmloff/numehelp.hxx
index ccdd2f05dadd..53d62912fbb9 100644
--- a/include/xmloff/numehelp.hxx
+++ b/include/xmloff/numehelp.hxx
@@ -83,9 +83,9 @@ public:
const OUString& rCurrencySymbol,
bool bExportValue);
static bool GetCurrencySymbol(const sal_Int32 nNumberFormat, OUString& rCurrencySymbol,
- css::uno::Reference< css::util::XNumberFormatsSupplier > & xNumberFormatsSupplier);
+ css::uno::Reference< css::util::XNumberFormatsSupplier > const & xNumberFormatsSupplier);
static sal_Int16 GetCellType(const sal_Int32 nNumberFormat, bool& bIsStandard,
- css::uno::Reference< css::util::XNumberFormatsSupplier > & xNumberFormatsSupplier);
+ css::uno::Reference< css::util::XNumberFormatsSupplier > const & xNumberFormatsSupplier);
static void SetNumberFormatAttributes(SvXMLExport& rXMLExport,
const sal_Int32 nNumberFormat,
const double& rValue,
diff --git a/include/xmloff/shapeexport.hxx b/include/xmloff/shapeexport.hxx
index ae86e12cc231..c883886126a5 100644
--- a/include/xmloff/shapeexport.hxx
+++ b/include/xmloff/shapeexport.hxx
@@ -211,7 +211,7 @@ private:
SAL_DLLPRIVATE void ImpExportNewTrans(const css::uno::Reference< css::beans::XPropertySet >& xPropSet, XMLShapeExportFlags nFeatures, css::awt::Point* pRefPoint);
SAL_DLLPRIVATE void ImpExportNewTrans_GetB2DHomMatrix(::basegfx::B2DHomMatrix& rMatrix, const css::uno::Reference< css::beans::XPropertySet >& xPropSet);
SAL_DLLPRIVATE static void ImpExportNewTrans_DecomposeAndRefPoint(const ::basegfx::B2DHomMatrix& rMat, ::basegfx::B2DTuple& rTRScale, double& fTRShear, double& fTRRotate, ::basegfx::B2DTuple& rTRTranslate, css::awt::Point* pRefPoint);
- SAL_DLLPRIVATE void ImpExportNewTrans_FeaturesAndWrite(::basegfx::B2DTuple& rTRScale, double fTRShear, double fTRRotate, ::basegfx::B2DTuple& rTRTranslate, const XMLShapeExportFlags nFeatures);
+ SAL_DLLPRIVATE void ImpExportNewTrans_FeaturesAndWrite(::basegfx::B2DTuple const & rTRScale, double fTRShear, double fTRRotate, ::basegfx::B2DTuple const & rTRTranslate, const XMLShapeExportFlags nFeatures);
SAL_DLLPRIVATE bool ImpExportPresentationAttributes( const css::uno::Reference< css::beans::XPropertySet >& xPropSet, const OUString& rClass );
SAL_DLLPRIVATE void ImpExportText( const css::uno::Reference< css::drawing::XShape >& xShape, TextPNS eExtensionNS = TextPNS::ODF );
SAL_DLLPRIVATE void ImpExportEvents( const css::uno::Reference< css::drawing::XShape >& xShape );
@@ -230,7 +230,7 @@ private:
SAL_DLLPRIVATE void ImpExportChartShape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr, SvXMLAttributeList* pAttrList = nullptr );
SAL_DLLPRIVATE void ImpExportControlShape(const css::uno::Reference< css::drawing::XShape >& xShape, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
SAL_DLLPRIVATE void ImpExportConnectorShape(const css::uno::Reference< css::drawing::XShape >& xShape, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
- SAL_DLLPRIVATE void ImpExportMeasureShape(const css::uno::Reference< css::drawing::XShape >& xShape, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
+ SAL_DLLPRIVATE void ImpExportMeasureShape(const css::uno::Reference< css::drawing::XShape >& xShape, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point const * pRefPoint = nullptr );
SAL_DLLPRIVATE void ImpExportOLE2Shape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr, SvXMLAttributeList* pAttrList = nullptr );
SAL_DLLPRIVATE void ImpExportPageShape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
SAL_DLLPRIVATE void ImpExportCaptionShape(const css::uno::Reference< css::drawing::XShape >& xShape, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
diff --git a/include/xmloff/shapeimport.hxx b/include/xmloff/shapeimport.hxx
index efc00a289355..90a290215048 100644
--- a/include/xmloff/shapeimport.hxx
+++ b/include/xmloff/shapeimport.hxx
@@ -317,20 +317,20 @@ public:
void pushGroupForSorting( css::uno::Reference< css::drawing::XShapes >& rShapes );
void popGroupAndSort();
- void shapeWithZIndexAdded( css::uno::Reference< css::drawing::XShape >& rShape,
+ void shapeWithZIndexAdded( css::uno::Reference< css::drawing::XShape > const & rShape,
sal_Int32 nZIndex );
/// Updates the z-order of other shapes to be consistent again, needed due
/// to the removal of rShape.
void shapeRemoved(const css::uno::Reference<css::drawing::XShape>& rShape);
- void addShapeConnection( css::uno::Reference< css::drawing::XShape >& rConnectorShape,
+ void addShapeConnection( css::uno::Reference< css::drawing::XShape > const & rConnectorShape,
bool bStart,
const OUString& rDestShapeId,
sal_Int32 nDestGlueId );
/** adds a mapping for a glue point identifier from an xml file to the identifier created after inserting
the new glue point into the core. The saved mappings can be retrieved by getGluePointId() */
- void addGluePointMapping( css::uno::Reference< css::drawing::XShape >& xShape,
+ void addGluePointMapping( css::uno::Reference< css::drawing::XShape > const & xShape,
sal_Int32 nSourceId, sal_Int32 nDestinnationId );
/** moves all current DestinationId's for rXShape by n */
@@ -342,11 +342,11 @@ public:
/** this method must be calling before the first shape is imported for the given page.
Calls to this method can be nested */
- void startPage( css::uno::Reference< css::drawing::XShapes >& rShapes );
+ void startPage( css::uno::Reference< css::drawing::XShapes > const & rShapes );
/** this method must be calling after the last shape is imported for the given page
Calls to this method can be nested */
- void endPage( css::uno::Reference< css::drawing::XShapes >& rShapes );
+ void endPage( css::uno::Reference< css::drawing::XShapes > const & rShapes );
void restoreConnections();
diff --git a/include/xmloff/txtimp.hxx b/include/xmloff/txtimp.hxx
index 109469cf74ba..921ef4afe120 100644
--- a/include/xmloff/txtimp.hxx
+++ b/include/xmloff/txtimp.hxx
@@ -448,12 +448,12 @@ public:
void DeleteParagraph();
void InsertControlCharacter( sal_Int16 nControl );
- void InsertTextContent( css::uno::Reference< css::text::XTextContent > & xContent);
+ void InsertTextContent( css::uno::Reference< css::text::XTextContent > const & xContent);
// Add parameter <bOutlineLevelAttrFound> (#i73509#)
// Add parameter <bSetListAttrs> in order to suppress the handling of the list attributes (#i80724#)
OUString SetStyleAndAttrs(
- SvXMLImport& rImport,
+ SvXMLImport const & rImport,
const css::uno::Reference< css::text::XTextCursor >& rCursor,
const OUString& rStyleName,
bool bPara,
@@ -476,7 +476,7 @@ public:
void SetOutlineStyles( bool bSetEmpty );
void SetHyperlink(
- SvXMLImport& rImport,
+ SvXMLImport const & rImport,
const css::uno::Reference< css::text::XTextCursor >& rCursor,
const OUString& rHRef,
const OUString& rName,
@@ -485,7 +485,7 @@ public:
const OUString& rVisitedStyleName,
XMLEventsImportContext* pEvents);
void SetRuby(
- SvXMLImport& rImport,
+ SvXMLImport const & rImport,
const css::uno::Reference< css::text::XTextCursor >& rCursor,
const OUString& rStyleName,
const OUString& rTextStyleName,
@@ -570,7 +570,7 @@ public:
void pushFieldCtx( const OUString& name, const OUString& type );
void popFieldCtx();
void addFieldParam( const OUString& name, const OUString& value );
- void setCurrentFieldParamsTo(css::uno::Reference< css::text::XFormField> &xFormField);
+ void setCurrentFieldParamsTo(css::uno::Reference< css::text::XFormField> const &xFormField);
OUString getCurrentFieldType();
bool hasCurrentFieldCtx();
diff --git a/include/xmloff/txtimppr.hxx b/include/xmloff/txtimppr.hxx
index 910b074def4d..bd1338fd1884 100644
--- a/include/xmloff/txtimppr.hxx
+++ b/include/xmloff/txtimppr.hxx
@@ -37,11 +37,11 @@ class XMLOFF_DLLPUBLIC XMLTextImportPropertyMapper : public SvXMLImportPropertyM
XMLPropertyState *pFontCharsetState );
void FontDefaultsCheck(
- XMLPropertyState*pFontFamilyName,
- XMLPropertyState* pFontStyleName,
- XMLPropertyState* pFontFamily,
- XMLPropertyState* pFontPitch,
- XMLPropertyState* pFontCharSet,
+ XMLPropertyState const * pFontFamilyName,
+ XMLPropertyState const * pFontStyleName,
+ XMLPropertyState const * pFontFamily,
+ XMLPropertyState const * pFontPitch,
+ XMLPropertyState const * pFontCharSet,
XMLPropertyState** ppNewFontStyleName,
XMLPropertyState** ppNewFontFamily,
XMLPropertyState** ppNewFontPitch,
diff --git a/include/xmloff/txtparae.hxx b/include/xmloff/txtparae.hxx
index 3702d2103d07..1c534f82b5cc 100644
--- a/include/xmloff/txtparae.hxx
+++ b/include/xmloff/txtparae.hxx
@@ -114,7 +114,7 @@ public:
void exportTextRangeSpan(
const css::uno::Reference< css::text::XTextRange > & rTextRange,
- css::uno::Reference< css::beans::XPropertySet > & xPropSet,
+ css::uno::Reference< css::beans::XPropertySet > const & xPropSet,
css::uno::Reference < css::beans::XPropertySetInfo > & xPropSetInfo,
const bool bIsUICharStyle,
const bool bHasAutoStyle,
diff --git a/include/xmloff/xmlaustp.hxx b/include/xmloff/xmlaustp.hxx
index a9cf607d0268..7b270ce09724 100644
--- a/include/xmloff/xmlaustp.hxx
+++ b/include/xmloff/xmlaustp.hxx
@@ -97,8 +97,8 @@ public:
/// register (families + names)
void RegisterNames(
- css::uno::Sequence<sal_Int32>& aFamilies,
- css::uno::Sequence<OUString>& aNames );
+ css::uno::Sequence<sal_Int32> const & aFamilies,
+ css::uno::Sequence<OUString> const & aNames );
/// Add an item set to the pool and return its generated name.
OUString Add( sal_Int32 nFamily, const ::std::vector< XMLPropertyState >& rProperties );
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index edfd17e4f9e3..e4a390a5ef6a 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -253,10 +253,10 @@ protected:
virtual sal_Int32 GetDocumentSpecificSettings( ::std::list< SettingsGroup >& _out_rSettings );
const css::uno::Reference< css::document::XEmbeddedObjectResolver >& GetEmbeddedResolver() const { return mxEmbeddedResolver; }
- inline void SetEmbeddedResolver( css::uno::Reference< css::document::XEmbeddedObjectResolver >& _xEmbeddedResolver );
+ inline void SetEmbeddedResolver( css::uno::Reference< css::document::XEmbeddedObjectResolver > const & _xEmbeddedResolver );
const css::uno::Reference< css::document::XGraphicObjectResolver >& GetGraphicResolver() const { return mxGraphicResolver; }
- void SetGraphicResolver( css::uno::Reference< css::document::XGraphicObjectResolver >& _xGraphicResolver );
+ void SetGraphicResolver( css::uno::Reference< css::document::XGraphicObjectResolver > const & _xGraphicResolver );
void SetDocHandler( const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler );
@@ -477,7 +477,7 @@ public:
SvXMLExportFlags getExportFlags() const { return mnExportFlags; }
void ExportEmbeddedOwnObject(
- css::uno::Reference<css::lang::XComponent >& rComp );
+ css::uno::Reference<css::lang::XComponent > const & rComp );
OUString GetRelativeReference(const OUString& rValue);
@@ -617,13 +617,13 @@ inline bool SvXMLExport::HasFormExport()
}
inline void SvXMLExport::SetEmbeddedResolver(
- css::uno::Reference< css::document::XEmbeddedObjectResolver >& _xEmbeddedResolver )
+ css::uno::Reference< css::document::XEmbeddedObjectResolver > const & _xEmbeddedResolver )
{
mxEmbeddedResolver = _xEmbeddedResolver;
}
inline void SvXMLExport::SetGraphicResolver(
- css::uno::Reference< css::document::XGraphicObjectResolver >& _xGraphicResolver )
+ css::uno::Reference< css::document::XGraphicObjectResolver > const & _xGraphicResolver )
{
mxGraphicResolver = _xGraphicResolver;
}
diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx
index 3a38ec1919fc..983375b45684 100644
--- a/include/xmloff/xmlimp.hxx
+++ b/include/xmloff/xmlimp.hxx
@@ -128,7 +128,7 @@ private:
public:
SvXMLImportFastNamespaceHandler();
- void addNSDeclAttributes( rtl::Reference < comphelper::AttributeList >& rAttrList );
+ void addNSDeclAttributes( rtl::Reference < comphelper::AttributeList > const & rAttrList );
//XFastNamespaceHandler
virtual void SAL_CALL registerNamespace( const OUString& rNamespacePrefix, const OUString& rNamespaceURI ) override;
@@ -268,10 +268,10 @@ protected:
bool IsODFVersionConsistent( const OUString& aODFVersion );
const css::uno::Reference< css::document::XEmbeddedObjectResolver >& GetEmbeddedResolver() const { return mxEmbeddedResolver; }
- inline void SetEmbeddedResolver( css::uno::Reference< css::document::XEmbeddedObjectResolver >& _xEmbeddedResolver );
+ inline void SetEmbeddedResolver( css::uno::Reference< css::document::XEmbeddedObjectResolver > const & _xEmbeddedResolver );
const css::uno::Reference< css::document::XGraphicObjectResolver >& GetGraphicResolver() const { return mxGraphicResolver; }
- void SetGraphicResolver( css::uno::Reference< css::document::XGraphicObjectResolver >& _xGraphicResolver );
+ void SetGraphicResolver( css::uno::Reference< css::document::XGraphicObjectResolver > const & _xGraphicResolver );
void CreateNumberFormatsSupplier_();
@@ -616,13 +616,13 @@ inline rtl::Reference< ::xmloff::OFormLayerXMLImport > const & SvXMLImport::GetF
}
inline void SvXMLImport::SetEmbeddedResolver(
- css::uno::Reference< css::document::XEmbeddedObjectResolver >& _xEmbeddedResolver )
+ css::uno::Reference< css::document::XEmbeddedObjectResolver > const & _xEmbeddedResolver )
{
mxEmbeddedResolver = _xEmbeddedResolver;
}
inline void SvXMLImport::SetGraphicResolver(
- css::uno::Reference< css::document::XGraphicObjectResolver >& _xGraphicResolver )
+ css::uno::Reference< css::document::XGraphicObjectResolver > const & _xGraphicResolver )
{
mxGraphicResolver = _xGraphicResolver;
}
diff --git a/include/xmloff/xmlnumfi.hxx b/include/xmloff/xmlnumfi.hxx
index 8a9d7d589d0e..cedad8c08436 100644
--- a/include/xmloff/xmlnumfi.hxx
+++ b/include/xmloff/xmlnumfi.hxx
@@ -179,7 +179,7 @@ public:
SvXMLNumImpData* GetData() const { return pData; }
sal_Int32 GetKey();
sal_Int32 CreateAndInsert( SvNumberFormatter* pFormatter );
- sal_Int32 CreateAndInsert( css::uno::Reference< css::util::XNumberFormatsSupplier >& xFormatsSupplier );
+ sal_Int32 CreateAndInsert( css::uno::Reference< css::util::XNumberFormatsSupplier > const & xFormatsSupplier );
sal_uInt16 GetType() const { return nType; } // SvXMLStylesTokens
bool HasLongDoW() const { return bHasLongDoW; }
diff --git a/include/xmloff/xmluconv.hxx b/include/xmloff/xmluconv.hxx
index 9be745f1a259..1dd231e55782 100644
--- a/include/xmloff/xmluconv.hxx
+++ b/include/xmloff/xmluconv.hxx
@@ -230,7 +230,7 @@ public:
static void convertPropertySet(css::uno::Sequence<css::beans::PropertyValue>& rProps,
const css::uno::Reference<css::beans::XPropertySet>& aProperties);
- static void convertPropertySet(css::uno::Reference<css::beans::XPropertySet>& rProperties,
+ static void convertPropertySet(css::uno::Reference<css::beans::XPropertySet> const & rProperties,
const css::uno::Sequence<css::beans::PropertyValue>& aProps);
OUString encodeStyleName( const OUString& rName,