summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 13:01:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 20:58:11 +0200
commit581efdec36787dc5e378e54d13e7328fddcf3a50 (patch)
tree29f04e719f8402028a4e26088a8ea825ebe9fdca /include/editeng
parente512b53ef8ae7945131876d32121fdbbdeb1de35 (diff)
loplugin:constmethod
Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/editeng.hxx6
-rw-r--r--include/editeng/outliner.hxx8
-rw-r--r--include/editeng/unoedprx.hxx2
3 files changed, 8 insertions, 8 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index 9f078cc5f0ab..97b1437f3b5d 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -330,9 +330,9 @@ public:
SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs::All );
bool HasParaAttrib( sal_Int32 nPara, sal_uInt16 nWhich ) const;
- const SfxPoolItem& GetParaAttrib( sal_Int32 nPara, sal_uInt16 nWhich );
+ const SfxPoolItem& GetParaAttrib( sal_Int32 nPara, sal_uInt16 nWhich ) const;
template<class T>
- const T& GetParaAttrib( sal_Int32 nPara, TypedWhichId<T> nWhich )
+ const T& GetParaAttrib( sal_Int32 nPara, TypedWhichId<T> nWhich ) const
{
return static_cast<const T&>(GetParaAttrib(nPara, sal_uInt16(nWhich)));
}
@@ -585,7 +585,7 @@ public:
EditPaM DeleteSelection(const EditSelection& rSel);
- ESelection CreateESelection(const EditSelection& rSel);
+ ESelection CreateESelection(const EditSelection& rSel) const;
EditSelection CreateSelection(const ESelection& rSel);
const SfxItemSet& GetBaseParaAttribs(sal_Int32 nPara) const;
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 999981c69af0..fc0f75d89c62 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -712,7 +712,7 @@ public:
sal_Int32 GetChildCount( Paragraph const * pParent ) const;
bool IsExpanded( Paragraph const * pPara ) const;
Paragraph* GetParent( Paragraph const * pParagraph ) const;
- sal_Int32 GetAbsPos( Paragraph const * pPara );
+ sal_Int32 GetAbsPos( Paragraph const * pPara ) const;
sal_Int16 GetDepth( sal_Int32 nPara ) const;
void SetDepth( Paragraph* pParagraph, sal_Int16 nNewDepth );
@@ -839,7 +839,7 @@ public:
SfxStyleSheet* GetStyleSheet( sal_Int32 nPara );
void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& );
- SfxItemSet const & GetParaAttribs( sal_Int32 nPara );
+ SfxItemSet const & GetParaAttribs( sal_Int32 nPara ) const;
void Remove( Paragraph const * pPara, sal_Int32 nParaCount );
bool Expand( Paragraph const * );
@@ -947,10 +947,10 @@ public:
/** sets a link that is called after a drop or paste operation. */
void SetEndPasteOrDropHdl( const Link<PasteOrDropInfos*,void>& rLink );
- sal_Int16 GetNumberingStartValue( sal_Int32 nPara );
+ sal_Int16 GetNumberingStartValue( sal_Int32 nPara ) const;
void SetNumberingStartValue( sal_Int32 nPara, sal_Int16 nNumberingStartValue );
- bool IsParaIsNumberingRestart( sal_Int32 nPara );
+ bool IsParaIsNumberingRestart( sal_Int32 nPara ) const;
void SetParaIsNumberingRestart( sal_Int32 nPara, bool bParaIsNumberingRestart );
/** determine the bullets/numbering status of the given paragraphs
diff --git a/include/editeng/unoedprx.hxx b/include/editeng/unoedprx.hxx
index 9786b2399ce3..f1db61fe9b63 100644
--- a/include/editeng/unoedprx.hxx
+++ b/include/editeng/unoedprx.hxx
@@ -102,7 +102,7 @@ public:
be changed, and sal_False if e.g. a field or a bullet is
contained therein.
*/
- bool IsEditable( const ESelection& rSelection );
+ bool IsEditable( const ESelection& rSelection ) const;
private:
SvxTextForwarder* mpTextForwarder;