diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-01-27 15:10:34 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-01-27 11:52:22 +0000 |
commit | 4b8e711ead69aaa129637aad484c63877fa10890 (patch) | |
tree | 3136319d7f13ce0c1eb51d19a16220b8a9abcbd9 /sw/inc | |
parent | 5f5073a84518e4a8660e0153c2e218fb75a85ec4 (diff) |
lok: Calculate and return parent comment id
... instead of just checking if its a root comment or reply one.
Change-Id: I2539e6893ee69bfe12911807504df49edf422be2
Reviewed-on: https://gerrit.libreoffice.org/33470
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.hxx | 3 | ||||
-rw-r--r-- | sw/inc/SidebarWin.hxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index 07dde376b880..0062f96481e5 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -52,7 +52,8 @@ class SwAnnotationWin : public sw::sidebarwindows::SwSidebarWin virtual sal_uInt32 MoveCaret() override; - virtual bool CalcFollow() override; + /// Calculate parent postit id of currrent annotation window + virtual sal_uInt32 CalcParent() override; void InitAnswer(OutlinerParaObject* pText); virtual bool IsProtected() override; diff --git a/sw/inc/SidebarWin.hxx b/sw/inc/SidebarWin.hxx index 742e2f29c5b3..bb6dab546d5b 100644 --- a/sw/inc/SidebarWin.hxx +++ b/sw/inc/SidebarWin.hxx @@ -146,7 +146,7 @@ class SwSidebarWin : public vcl::Window bool IsFollow() { return mbIsFollow; } void SetFollow( bool bIsFollow) { mbIsFollow = bIsFollow; }; - virtual bool CalcFollow() = 0; + virtual sal_uInt32 CalcParent() = 0; sal_Int32 GetMetaHeight(); sal_Int32 GetMinimumSizeWithMeta(); |