diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 10:01:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 11:28:41 +0200 |
commit | 6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (patch) | |
tree | 87e8ccbbfc4d369e079098eb8be09abf988f1c44 /sw/inc/AnnotationWin.hxx | |
parent | fc79f23922ccae8b494b31a5dd7bb4767e50c87e (diff) |
loplugin:constmethod in sw
Change-Id: I73c3c6d2165287d2d581a04b23b1d3b48166a488
Reviewed-on: https://gerrit.libreoffice.org/79780
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/AnnotationWin.hxx')
-rw-r--r-- | sw/inc/AnnotationWin.hxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index 18ebe2e7f8c1..4d920621405e 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -70,12 +70,12 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window void SetPostItText(); void Delete(); void GotoPos(); - const SwPostItField* GetPostItField() { return mpField; } + const SwPostItField* GetPostItField() const { return mpField; } void UpdateText(const OUString& aText); - OUString GetAuthor(); - Date GetDate(); - tools::Time GetTime(); + OUString GetAuthor() const; + Date GetDate() const; + tools::Time GetTime() const; sal_uInt32 MoveCaret(); @@ -83,7 +83,7 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window sal_uInt32 CalcParent(); void InitAnswer(OutlinerParaObject const * pText); - bool IsProtected(); + bool IsProtected() const; void SetSize( const Size& rNewSize ); void SetPosSizePixelRect( long nX, @@ -97,10 +97,10 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window void CheckMetaText(); Point const & GetAnchorPos() { return mAnchorRect.Pos(); } - const SwRect& GetAnchorRect() { return mAnchorRect; } - bool IsAnchorRectChanged() { return mbAnchorRectChanged; } + const SwRect& GetAnchorRect() const { return mAnchorRect; } + bool IsAnchorRectChanged() const { return mbAnchorRectChanged; } void ResetAnchorRectChanged() { mbAnchorRectChanged = false; } - const std::vector<basegfx::B2DRange>& GetAnnotationTextRanges() { return maAnnotationTextRanges; } + const std::vector<basegfx::B2DRange>& GetAnnotationTextRanges() const { return maAnnotationTextRanges; } SwEditWin& EditWin(); SwSidebarItem& GetSidebarItem() { return mrSidebarItem; } @@ -136,7 +136,7 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window void SetSidebarPosition(sw::sidebarwindows::SidebarPosition eSidebarPosition); void SetReadonly(bool bSet); - bool IsReadOnly() + bool IsReadOnly() const { return mbReadonly; } @@ -149,14 +149,14 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window void SetViewState(::sw::sidebarwindows::ViewState bViewState); - bool IsFollow() { return mbIsFollow; } + bool IsFollow() const { return mbIsFollow; } void SetFollow( bool bIsFollow) { mbIsFollow = bIsFollow; }; sal_Int32 GetMetaHeight(); - sal_Int32 GetMinimumSizeWithMeta(); - sal_Int32 GetMinimumSizeWithoutMeta(); - sal_Int32 GetMetaButtonAreaWidth(); - sal_Int32 GetScrollbarWidth(); + sal_Int32 GetMinimumSizeWithMeta() const; + sal_Int32 GetMinimumSizeWithoutMeta() const; + sal_Int32 GetMetaButtonAreaWidth() const; + sal_Int32 GetScrollbarWidth() const; sal_Int32 GetNumFields(); void SetSpellChecking(); @@ -168,8 +168,8 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window void SetChangeTracking( const SwPostItHelper::SwLayoutStatus aStatus, const Color& aColor); - SwPostItHelper::SwLayoutStatus GetLayoutStatus() { return mLayoutStatus; } - const Color& GetChangeColor() { return mChangeColor; } + SwPostItHelper::SwLayoutStatus GetLayoutStatus() const { return mLayoutStatus; } + const Color& GetChangeColor() const { return mChangeColor; } DECL_LINK( WindowEventListener, VclWindowEvent&, void ); bool IsMouseOverSidebarWin() const { return mbMouseOver; } @@ -216,7 +216,7 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window sal_uInt32 CountFollowing(); - SvxLanguageItem GetLanguage(); + SvxLanguageItem GetLanguage() const; VclBuilder maBuilder; SwPostItMgr& mrMgr; |