diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-02-02 15:20:13 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-02-06 06:49:15 +0100 |
commit | 6ed0ffe9177ff6851e1b1e338dd92f81e7987f57 (patch) | |
tree | d1c6e2f95f15a0cccb2d2db464bf49b64b2db7e5 /include/oox | |
parent | c0269fe079f4cefe5a5d98a31e8dda5f60ccb09e (diff) |
vba: small fixes for GetOpenFilename and documenting structs
Check the XFileDialogSelectedItems is using the expected impl.
after dynamic_casting.
Rename VbaKeyBinding to VbaMacroKeyAndMethodBinding and document
the struct.
Change-Id: Ica4b24fed3013c5efa97a14e98bf9bdc2c74b68d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129320
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/ole/vbamodule.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/oox/ole/vbamodule.hxx b/include/oox/ole/vbamodule.hxx index 3028136375bc..4cbb4a41c948 100644 --- a/include/oox/ole/vbamodule.hxx +++ b/include/oox/ole/vbamodule.hxx @@ -40,9 +40,14 @@ namespace oox { namespace oox::ole { -struct VbaKeyBinding +/** Stores, which key shortcut maps to which VBA macro method. */ +struct VbaMacroKeyAndMethodBinding { + // This describes a key combinaton in "raw" VBA Macro form, that + // still needs translated to a key event that can be used in + // LibreOffice. OUString msApiKey; + // The name of the macro method OUString msMethodName; }; @@ -105,7 +110,9 @@ private: bool mbReadOnly; bool mbPrivate; bool mbExecutable; - std::vector<VbaKeyBinding> maKeyBindings; + + /** Keys and VBA macro method bindings */ + std::vector<VbaMacroKeyAndMethodBinding> maKeyBindings; }; |