summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-19 14:20:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-19 15:28:33 +0200
commit0f44815ce7b2925189cd603853ce55d8363549dd (patch)
tree87702a1d0f50a8b550ee1b4b9b84ddef60b46ee7 /include/oox
parent9239b11cee9f02cedcb0c240637e58cc8b795086 (diff)
loplugin:constmethods
Change-Id: I786096b989daa6004a6527aafbe825b6f0a22d90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120710 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/core/contexthandler2.hxx2
-rw-r--r--include/oox/export/DMLPresetShapeExport.hxx13
-rw-r--r--include/oox/shape/ShapeContextHandler.hxx4
3 files changed, 10 insertions, 9 deletions
diff --git a/include/oox/core/contexthandler2.hxx b/include/oox/core/contexthandler2.hxx
index 3a75aff5706a..9843a40e95d6 100644
--- a/include/oox/core/contexthandler2.hxx
+++ b/include/oox/core/contexthandler2.hxx
@@ -214,7 +214,7 @@ protected:
void setMCEState( MCE_STATE aState ) { aMceState.back() = aState; }
void addMCEState( MCE_STATE aState ) { aMceState.push_back( aState ); }
void removeMCEState() { aMceState.pop_back(); }
- bool isMCEStateEmpty() { return aMceState.empty(); }
+ bool isMCEStateEmpty() const { return aMceState.empty(); }
private:
ContextHandler2Helper& operator=( const ContextHandler2Helper& ) = delete;
diff --git a/include/oox/export/DMLPresetShapeExport.hxx b/include/oox/export/DMLPresetShapeExport.hxx
index 37cd1c3743b2..1f650f558379 100644
--- a/include/oox/export/DMLPresetShapeExport.hxx
+++ b/include/oox/export/DMLPresetShapeExport.hxx
@@ -97,19 +97,20 @@ private:
typedef AdjustmentPointValueBase YAdjustmentValue;
// Returns true, if the shape has adjusting points
- bool HasHandleValue();
+ bool HasHandleValue() const;
// Returns true if the shape flipped.
- bool IsXFlipped() { return m_bIsFlipped.first; };
- bool IsYFlipped() { return m_bIsFlipped.second; };
+ bool IsXFlipped() const { return m_bIsFlipped.first; };
+ bool IsYFlipped() const { return m_bIsFlipped.second; };
// Returns with the shape type, like triangle for example
- const OUString& GetShapeType();
+ const OUString& GetShapeType() const;
// Returns with the handle points
- const css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>>& GetHandleValues();
+ const css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>>&
+ GetHandleValues() const;
// Returns with the adjustment values
const css::uno::Sequence<css::drawing::EnhancedCustomShapeAdjustmentValue>&
- GetAdjustmentValues();
+ GetAdjustmentValues() const;
// Returns with the raw value of the given property of the shape geometry.
css::uno::Any GetHandleValueOfModificationPoint(sal_Int32 nPoint, std::u16string_view sType);
// Returns with the appropriate value of the handle point.
diff --git a/include/oox/shape/ShapeContextHandler.hxx b/include/oox/shape/ShapeContextHandler.hxx
index ba500dd48f76..3b5e50955ceb 100644
--- a/include/oox/shape/ShapeContextHandler.hxx
+++ b/include/oox/shape/ShapeContextHandler.hxx
@@ -91,7 +91,7 @@ public:
void setRelationFragmentPath(const OUString & the_value);
- sal_Int32 getStartToken();
+ sal_Int32 getStartToken() const;
void setStartToken( sal_Int32 _starttoken );
void setPosition(const css::awt::Point& rPosition);
@@ -102,7 +102,7 @@ public:
void setGraphicMapper(css::uno::Reference<css::graphic::XGraphicMapper> const & rGraphicMapper);
void setTheme(const oox::drawingml::ThemePtr& pTheme) { mpThemePtr = pTheme; }
- const oox::drawingml::ThemePtr& getTheme() { return mpThemePtr; }
+ const oox::drawingml::ThemePtr& getTheme() const { return mpThemePtr; }
private:
ShapeContextHandler(ShapeContextHandler const &) = delete;