summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-01-19 10:34:17 +0530
committerpranavk <pranavk@collabora.co.uk>2017-01-27 11:49:01 +0000
commita623b3a449dfcddaad5b621ff1c0b7a520edf4d6 (patch)
treeffd18a62765fc12e9f85948b1b6fb2cbe0c5e1c3 /sw/inc
parent6b977d5a24d5db80c59440a3358c629959d7cf86 (diff)
lok: New commandvalues command - .uno:ViewAnnotations
Change-Id: I1c3560ab4609c64da7a77e9a65febeb569ec1a3c Reviewed-on: https://gerrit.libreoffice.org/33468 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/AnnotationWin.hxx2
-rw-r--r--sw/inc/SidebarWin.hxx4
-rw-r--r--sw/inc/unotxdoc.hxx3
3 files changed, 8 insertions, 1 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx
index 8d41b587871c..07dde376b880 100644
--- a/sw/inc/AnnotationWin.hxx
+++ b/sw/inc/AnnotationWin.hxx
@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_INC_ANNOTATIONWIN_HXX
#define INCLUDED_SW_INC_ANNOTATIONWIN_HXX
+#include <docufld.hxx>
#include <SidebarWin.hxx>
class PopupMenu;
@@ -43,6 +44,7 @@ class SwAnnotationWin : public sw::sidebarwindows::SwSidebarWin
virtual void SetPostItText() override;
virtual void Delete() override;
virtual void GotoPos() override;
+ inline const SwPostItField* GetPostItField() { return mpField; }
virtual OUString GetAuthor() override;
virtual Date GetDate() override;
diff --git a/sw/inc/SidebarWin.hxx b/sw/inc/SidebarWin.hxx
index adfb47c16118..742e2f29c5b3 100644
--- a/sw/inc/SidebarWin.hxx
+++ b/sw/inc/SidebarWin.hxx
@@ -30,6 +30,7 @@
#include <vcl/lineinfo.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
+#include <basegfx/range/b2drange.hxx>
#include <editeng/editstat.hxx>
class SwPostItMgr;
@@ -80,6 +81,7 @@ class SwSidebarWin : public vcl::Window
void CheckMetaText();
inline Point GetAnchorPos() { return mAnchorRect.Pos(); }
+ inline const std::vector<basegfx::B2DRange>& GetAnnotationTextRanges() { return maAnnotationTextRanges; }
SwEditWin& EditWin();
inline OutlinerView* GetOutlinerView() { return mpOutlinerView;}
@@ -240,6 +242,8 @@ class SwSidebarWin : public vcl::Window
SwRect mAnchorRect;
long mPageBorder;
+ std::vector<basegfx::B2DRange> maAnnotationTextRanges;
+
bool mbMouseOver;
SwPostItHelper::SwLayoutStatus mLayoutStatus;
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index e358cbd0f19f..aeb55619e716 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -419,7 +419,8 @@ public:
virtual Pointer getPointer() override;
/// @see vcl::ITiledRenderable::getTrackedChangeAuthors().
OUString getTrackedChangeAuthors() override;
-
+ /// @see vcl::ITiledRenderable::getPostIts().
+ OUString getPostIts() override;
// css::tiledrendering::XTiledRenderable
virtual void SAL_CALL paintTile( const ::css::uno::Any& Parent, ::sal_Int32 nOutputWidth, ::sal_Int32 nOutputHeight, ::sal_Int32 nTilePosX, ::sal_Int32 nTilePosY, ::sal_Int32 nTileWidth, ::sal_Int32 nTileHeight ) override;