summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-02 15:06:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-02 20:40:04 +0200
commit8cbafb908d5150aec9d4047ea06c5c5bc1854e8d (patch)
tree78c438ca71326937a3a8374ff74f0959e89af6c9 /include
parente015ce45c299bec5d4a571e127ca7422caea523b (diff)
loplugin:constmethod in editeng
Change-Id: I07e22d880940ea6df928565942dac268f4b94fea Reviewed-on: https://gerrit.libreoffice.org/78399 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/AccessibleContextBase.hxx2
-rw-r--r--include/editeng/editeng.hxx6
-rw-r--r--include/editeng/editobj.hxx2
-rw-r--r--include/editeng/editview.hxx6
-rw-r--r--include/editeng/outliner.hxx8
-rw-r--r--include/editeng/splwrap.hxx10
-rw-r--r--include/editeng/urlfieldhelper.hxx4
7 files changed, 19 insertions, 19 deletions
diff --git a/include/editeng/AccessibleContextBase.hxx b/include/editeng/AccessibleContextBase.hxx
index 23a91f817d1c..9c5027f4d9c3 100644
--- a/include/editeng/AccessibleContextBase.hxx
+++ b/include/editeng/AccessibleContextBase.hxx
@@ -288,7 +288,7 @@ protected:
@return TRUE, if the object is disposed or in the course
of being disposed. Otherwise, FALSE is returned.
*/
- bool IsDisposed();
+ bool IsDisposed() const;
/** sets the role as returned by XaccessibleContext::getAccessibleRole
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index 64581f930aab..73a2b5eba5f6 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -205,7 +205,7 @@ public:
OutputDevice* GetRefDevice() const;
void SetRefMapMode( const MapMode& rMapMode );
- MapMode const & GetRefMapMode();
+ MapMode const & GetRefMapMode() const;
void SetUpdateMode( bool bUpdate );
bool GetUpdateMode() const;
@@ -334,10 +334,10 @@ public:
void UndoActionStart( sal_uInt16 nId );
void UndoActionStart(sal_uInt16 nId, const ESelection& rSel);
void UndoActionEnd();
- bool IsInUndo();
+ bool IsInUndo() const;
void EnableUndo( bool bEnable );
- bool IsUndoEnabled();
+ bool IsUndoEnabled() const;
/** returns the value last used for bTryMerge while calling ImpEditEngine::InsertUndo
This is currently used in a bad but needed hack to get undo actions merged in the
diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx
index 46a05372b3dd..360c3ce0d48b 100644
--- a/include/editeng/editobj.hxx
+++ b/include/editeng/editobj.hxx
@@ -123,7 +123,7 @@ public:
const OUString& rOldName, SfxStyleFamily eOldFamily, const OUString& rNewName, SfxStyleFamily eNewFamily);
void ChangeStyleSheetName(SfxStyleFamily eFamily, const OUString& rOldName, const OUString& rNewName);
- editeng::FieldUpdater GetFieldUpdater();
+ editeng::FieldUpdater GetFieldUpdater() const;
bool operator==( const EditTextObject& rCompare ) const;
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index a47da81cb8a4..6fb972182357 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -177,7 +177,7 @@ public:
bool IsInsertMode() const;
void SetInsertMode( bool bInsert );
- OUString GetSelected();
+ OUString GetSelected() const;
void DeleteSelected();
SvtScriptType GetSelectedScriptType() const;
@@ -244,7 +244,7 @@ public:
void InsertText( const EditTextObject& rTextObject );
void InsertText( css::uno::Reference< css::datatransfer::XTransferable > const & xDataObj, const OUString& rBaseURL, bool bUseSpecial );
- css::uno::Reference< css::datatransfer::XTransferable > GetTransferable();
+ css::uno::Reference< css::datatransfer::XTransferable > GetTransferable() const;
// An EditView, so that when TRUE the update will be free from flickering:
void SetEditEngineUpdateMode( bool bUpdate );
@@ -278,7 +278,7 @@ public:
const SvxFieldItem* GetFieldAtSelection() const;
/// Select and return the field at the current cursor position
- const SvxFieldData* GetFieldAtCursor();
+ const SvxFieldData* GetFieldAtCursor() const;
void SelectFieldAtCursor();
void SetInvalidateMore( sal_uInt16 nPixel );
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 787434031b33..f62f3e0fde15 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -253,7 +253,7 @@ public:
void CollapseAll();
void SetBackgroundColor( const Color& rColor );
- Color const & GetBackgroundColor();
+ Color const & GetBackgroundColor() const;
/// Informs this edit view about which view shell contains it.
void RegisterViewShell(OutlinerViewShell* pViewShell);
@@ -286,7 +286,7 @@ public:
void TransliterateText( TransliterationFlags nTransliterationMode );
- ESelection GetSelection();
+ ESelection GetSelection() const;
SvtScriptType GetSelectedScriptType() const;
@@ -302,7 +302,7 @@ public:
const SvxFieldItem* GetFieldUnderMousePointer() const;
const SvxFieldItem* GetFieldAtSelection() const;
/// Return the field at the current cursor position or nullptr if no field found
- const SvxFieldData* GetFieldAtCursor();
+ const SvxFieldData* GetFieldAtCursor() const;
/// Select the field at the current cursor position
void SelectFieldAtCursor();
@@ -721,7 +721,7 @@ public:
void UndoActionStart( sal_uInt16 nId );
void UndoActionEnd();
void InsertUndo( std::unique_ptr<EditUndo> pUndo );
- bool IsInUndo();
+ bool IsInUndo() const;
void ClearModifyFlag();
bool IsModified() const;
diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx
index 8443b9bb437b..705fedd8ea33 100644
--- a/include/editeng/splwrap.hxx
+++ b/include/editeng/splwrap.hxx
@@ -90,15 +90,15 @@ public:
static void ShowLanguageErrors();
void SpellDocument(); // Perform Spell Checking
- bool IsStartDone(){ return bStartDone; }
- bool IsEndDone(){ return bEndDone; }
- bool IsHyphen(){ return bHyphen; } // Split instead of Spell check
+ bool IsStartDone() const { return bStartDone; }
+ bool IsEndDone() const { return bEndDone; }
+ bool IsHyphen() const { return bHyphen; } // Split instead of Spell check
void SetHyphen() { bHyphen = true; }
- bool IsAllRight() { return bAllRight; }
+ bool IsAllRight() const { return bAllRight; }
protected:
const css::uno::Reference< css::uno::XInterface >&
- GetLast() { return xLast; }
+ GetLast() const { return xLast; }
void SetLast(const css::uno::Reference< css::uno::XInterface > &xNewLast)
{ xLast = xNewLast; }
virtual bool SpellMore(); // examine further documents?
diff --git a/include/editeng/urlfieldhelper.hxx b/include/editeng/urlfieldhelper.hxx
index a2f20b560065..547e2654ea9b 100644
--- a/include/editeng/urlfieldhelper.hxx
+++ b/include/editeng/urlfieldhelper.hxx
@@ -16,8 +16,8 @@
class EDITENG_DLLPUBLIC URLFieldHelper
{
public:
- static void RemoveURLField(Outliner* pOutl, OutlinerView* pOLV);
- static bool IsCursorAtURLField(OutlinerView* pOLV);
+ static void RemoveURLField(Outliner* pOutl, const OutlinerView* pOLV);
+ static bool IsCursorAtURLField(const OutlinerView* pOLV);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */