diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-05-13 08:26:32 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-05-13 09:10:25 +0200 |
commit | c7d80d229a5660a0ee702477bfbd2ca137992a7d (patch) | |
tree | 841439801c80dab822561b224b162f86c748f4e5 /include/vcl/ITiledRenderable.hxx | |
parent | 09e0cfd9b3e391435c39d3bc933d26a87e2b082e (diff) |
sw content controls, dropdown: add LOK API
- expose the available list items in a new "items" key of the
LOK_CALLBACK_CONTENT_CONTROL callback
- add a new lok::Document::sendContentControlEvent() function to be able
to select a list item from the current drop-down
- add a new listbox to the gtktiledviewer toolbar to select a content
control list item when the cursor is inside a dropdown
- add tests for the array API of tools::JsonWriter
Change-Id: I47f1333a7815d67952f7c20a9cba1b248886f6dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134256
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include/vcl/ITiledRenderable.hxx')
-rw-r--r-- | include/vcl/ITiledRenderable.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx index 0156db0f17c5..1bddde538c71 100644 --- a/include/vcl/ITiledRenderable.hxx +++ b/include/vcl/ITiledRenderable.hxx @@ -336,6 +336,12 @@ public: { return std::vector<basegfx::B2DRange>(); } + + /** + * Execute a content control event in the document. + * E.g. select a list item from a drop down content control. + */ + virtual void executeContentControlEvent(const StringMap&) {} }; } // namespace vcl |