diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-06-01 08:30:03 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-06-01 09:09:40 +0200 |
commit | 9cb1a07dc2760a30d7f321aa7fa4ce2a460dfa6c (patch) | |
tree | 9d2d703bc1d8dfbb8f5cdc61f3c4607daeae4d56 /include | |
parent | 64f8a70298695d1952c3a399e897755ab861add5 (diff) |
sw content controls, date: add LOK API
- send a LOK_CALLBACK_CONTENT_CONTROL with date=true when entering a
date content control
- extend lok::Document::sendContentControlEvent() to be able to set the
date of a date content control (after the client's date picker is
closed)
- update gtktiledviewer to work with these
Change-Id: I0abf21eb1d4ba233050f0aa2607b68740c048262
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135214
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 6 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitEnums.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 993654c88345..6dbfbf964b29 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -851,6 +851,12 @@ public: * "type": "picture", * "changed": "file:///path/to/test.png" * } + * + * To select a date of the current date content control: + * { + * "type": "date", + * "selected": "2022-05-29T00:00:00Z" + * } */ void sendContentControlEvent(const char* pArguments) { diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index 63ddec957be0..f1b2328510b3 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -822,6 +822,13 @@ typedef enum * { * "action": "change-picture" * } + * + * Entered a date content control: + * { + * "action": "show", + * "rectangles": "...", + * "date": "true" + * } */ LOK_CALLBACK_CONTENT_CONTROL = 55, |