diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-03-14 15:27:42 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-03-14 14:01:30 +0000 |
commit | 1eb69f6b9c78b19d3944c90c17ff8d498affc316 (patch) | |
tree | abe4ff66996de7e75f3092bac5864a143cdad215 /sw/inc/docary.hxx | |
parent | fe7a5fe993dc9c1361fbf974e725451adce6eef7 (diff) |
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 <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sw/inc/docary.hxx')
-rw-r--r-- | sw/inc/docary.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
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... |