summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-04-08 09:15:55 +0200
committerJan Holesovsky <kendy@collabora.com>2016-04-08 09:43:56 +0200
commit788616fe7ce7c56d9dcfccafdd3e1f55036aa8a7 (patch)
treeb8ebed7fd934e0c10d80d6b8e213a413a26ffa24 /include/LibreOfficeKit
parent610db8d5d0500aed2ca6d4da822cf70746b44d49 (diff)
lok context menu: Expose the disabled commands too.
OTOH, don't show choices that don't have the .uno: command, we have no way to handle them. Change-Id: I0df6ffe2049bbf11ba4b8931164be6a3381d3916
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitEnums.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h
index fb713cdde185..4b8ff351689d 100644
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -293,15 +293,22 @@ typedef enum
/**
* Context menu structure
*
- * Returns the structure of context menu
+ * Returns the structure of context menu. Contains all the separators &
+ * submenus, example of the returned structure:
*
* {
- * "menu": [
- * {"text": "label text", "type": "command | separator | menu",
- * "command | menu": "..." },
- * ...
- * ]
+ * "menu": [
+ * { "text": "label text1", "type": "command", "command": ".uno:Something1", "enabled": "true" },
+ * { "text": "label text2", "type": "command", "command": ".uno:Something2", "enabled": "false" },
+ * { "type": "separator" },
+ * { "text": "label text2", "type": "menu", "menu": [ { ... }, { ... }, ... ] },
+ * ...
+ * ]
* }
+ *
+ * The 'command' can additionally have a checkable status, like:
+ *
+ * {"text": "label text3", "type": "command", "command": ".uno:Something3", "checktype": "checkmark|radio|auto", "checked": "true|false"}
*/
LOK_CALLBACK_CONTEXT_MENU,