summaryrefslogtreecommitdiff
path: root/sw/inc/AnnotationWin.hxx
diff options
context:
space:
mode:
authorScott Clarke <scott.clarke@codethink.co.uk>2019-06-19 17:12:22 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-08-06 07:28:42 +0200
commitf4f5e3f98aee5d9d1679edab8248a4cfd12f74ce (patch)
treef42ebb3e8f9b9b9c23335b437e6caa85b50d794d /sw/inc/AnnotationWin.hxx
parent6311bcff7fcef64fbeff482b820671e62faf5ba4 (diff)
tdf#119228 Add accessors for resolved state
Change-Id: Ic4051f4e7fda11eade1e50ce70bed11f70f0742d Co-authored-by: Jim MacArthur <jim.macarthur@codethink.co.uk> Reviewed-on: https://gerrit.libreoffice.org/75859 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/inc/AnnotationWin.hxx')
-rw-r--r--sw/inc/AnnotationWin.hxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx
index 6002ac615660..196aa1d6dc18 100644
--- a/sw/inc/AnnotationWin.hxx
+++ b/sw/inc/AnnotationWin.hxx
@@ -189,6 +189,17 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window
/// Allows adjusting the point or mark of the selection to a document coordinate.
void SetCursorLogicPosition(const Point& rPosition, bool bPoint, bool bClearMark);
+ // Various access functions for 'resolved' status
+ void SetResolved(bool resolved);
+ void ToggleResolved();
+ void ToggleResolvedForThread();
+ bool IsResolved() const;
+ bool IsThreadResolved();
+
+ /// Find the first annotation for the thread which this annotation is in.
+ /// This may be the same annotation as this one.
+ SwAnnotationWin* GetTopReplyNote();
+
private:
VclPtr<MenuButton> CreateMenuButton();
virtual void LoseFocus() override;
@@ -204,10 +215,6 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window
sal_uInt32 CountFollowing();
- /// Find the first annotation for the thread which this annotation is in.
- /// This may be the same annotation as this one.
- SwAnnotationWin* GetTopReplyNote();
-
SvxLanguageItem GetLanguage();
VclBuilder maBuilder;
@@ -241,6 +248,8 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window
long mPageBorder;
bool mbAnchorRectChanged;
+ bool mbResolvedStateUpdated;
+
std::vector<basegfx::B2DRange> maAnnotationTextRanges;
bool mbMouseOver;