diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2019-10-06 22:06:28 +0200 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2019-10-21 12:42:56 +0200 |
commit | dde389dd0fa3358faef09158245d41bbacd60d6e (patch) | |
tree | 6f6ccfffa9767985f66ff5f80088db7feb1722e2 /sw/source | |
parent | dcc79dfb0af14b0e6e4f439b04d0d23d610a8440 (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.cxx | 23 |
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; |