summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2019-10-06 22:06:28 +0200
committerMarco Cecchetti <marco.cecchetti@collabora.com>2019-10-21 12:42:56 +0200
commitdde389dd0fa3358faef09158245d41bbacd60d6e (patch)
tree6f6ccfffa9767985f66ff5f80088db7feb1722e2 /sw/source
parentdcc79dfb0af14b0e6e4f439b04d0d23d610a8440 (diff)
lok: change-annotation navigation through prev/next command
Change-Id: Id62a84e0db24b4d317a5503d468f2e0caf13424b
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/uiview/view2.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index 0985ab6b207b..cbf9c177ce37 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -123,6 +123,8 @@
#include <ndtxt.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/lok.hxx>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <svx/svxdlg.hxx>
#include <svx/dialogs.hrc>
@@ -745,7 +747,18 @@ void SwView::Execute(SfxRequest &rReq)
pNext = m_pWrtShell->SelNextRedline();
if (pNext)
+ {
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ OString aPayload(".uno:CurrentTrackedChangeId=");
+ sal_uInt32 nRedlineId = pNext->GetId();
+ aPayload += OString::number(nRedlineId);
+ libreOfficeKitViewCallback(LOK_CALLBACK_STATE_CHANGED, aPayload.getStr());
+ }
+
m_pWrtShell->SetInSelect();
+ }
+
}
break;
@@ -754,7 +767,17 @@ void SwView::Execute(SfxRequest &rReq)
const SwRangeRedline *pPrev = m_pWrtShell->SelPrevRedline();
if (pPrev)
+ {
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ OString aPayload(".uno:CurrentTrackedChangeId=");
+ sal_uInt32 nRedlineId = pPrev->GetId();
+ aPayload += OString::number(nRedlineId);
+ libreOfficeKitViewCallback(LOK_CALLBACK_STATE_CHANGED, aPayload.getStr());
+ }
+
m_pWrtShell->SetInSelect();
+ }
}
break;