summaryrefslogtreecommitdiffstats
path: root/include/LibreOfficeKit/LibreOfficeKitEnums.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-08-19 15:27:59 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-08-19 16:21:32 +0200
commit0bc553f3ef3c188a96ea4875f4722ad4d40da4a3 (patch)
treead8252ca75b12743b7148487273151672401db4d /include/LibreOfficeKit/LibreOfficeKitEnums.h
parentResolves: tdf#100901 crash pressing tab in r-o document with hyperlink (diff)
downloadcore-0bc553f3ef3c188a96ea4875f4722ad4d40da4a3.tar.gz
core-0bc553f3ef3c188a96ea4875f4722ad4d40da4a3.zip
sw lok: add callbacks for redline table insertion / removal
An alternative would be to follow the Manage Changes dialog approach and subscribe to the SFX_HINT_DOCCHANGED notification in SwDocShell, cache the old redline table and find out the differences to the current one, but that way sound much more complex without benefits. Change-Id: I20a45285b88255ccea9d6646c0b5288ac1c91879
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKitEnums.h')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitEnums.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h
index 651e9bc65707..2c3bcabc496c 100644
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -406,6 +406,30 @@ typedef enum
*/
LOK_CALLBACK_VIEW_LOCK,
+ /**
+ * The size of the change tracking table has changed.
+ *
+ * The payload example:
+ * {
+ * "redline": {
+ * "action": "Remove",
+ * "index": "1",
+ * "author": "Unknown Author",
+ * "type": "Delete",
+ * "comment": "",
+ * "dateTime": "2016-08-18T12:14:00"
+ * }
+ * }
+ *
+ * The format is the same as an entry of
+ * lok::Document::getCommandValues('.uno:AcceptTrackedChanges'), extra
+ * fields:
+ *
+ * - 'action' is either 'Add' or 'Remove', depending on if this is an
+ * insertion into the table or a removal.
+ */
+ LOK_CALLBACK_REDLINE_TABLE_SIZE_CHANGED,
+
}
LibreOfficeKitCallbackType;