From dde389dd0fa3358faef09158245d41bbacd60d6e Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Sun, 6 Oct 2019 22:06:28 +0200 Subject: lok: change-annotation navigation through prev/next command Change-Id: Id62a84e0db24b4d317a5503d468f2e0caf13424b --- sw/source/uibase/uiview/view2.cxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'sw/source') 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 #include +#include +#include #include #include @@ -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; -- cgit