From 1eb69f6b9c78b19d3944c90c17ff8d498affc316 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Tue, 14 Mar 2017 15:27:42 +0530 Subject: sw lok: Notify when redline position is changed + unit test Make RedlineNotification function a static member of SwRedlineTable class Change-Id: Ifbd6014198838b1106e873c9563d215e95b3572d Reviewed-on: https://gerrit.libreoffice.org/35177 Reviewed-by: pranavk Tested-by: pranavk --- sw/inc/docary.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw/inc/docary.hxx') diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx index f9aa44231eca..cc3bfb4bf1f9 100644 --- a/sw/inc/docary.hxx +++ b/sw/inc/docary.hxx @@ -313,6 +313,9 @@ struct CompareSwRedlineTable bool operator()(SwRangeRedline* const &lhs, SwRangeRedline* const &rhs) const; }; +// Notification type for notifying about redlines to LOK clients +enum class RedlineNotification { Add, Remove, Modify }; + class SwRedlineTable { public: @@ -362,6 +365,9 @@ public: vector_type::const_iterator begin() const { return maVector.begin(); } vector_type::const_iterator end() const { return maVector.end(); } void Resort() { maVector.Resort(); } + + // Notifies all LOK clients when redliens are added/modified/removed + static void LOKRedlineNotification(RedlineNotification eType, SwRedlineTable::size_type nPos, SwRangeRedline* pRedline); }; /// Table that holds 'extra' redlines, such as 'table row insert\delete', 'paragraph moves' etc... -- cgit