diff options
author | Gökay Şatır <gokaysatir@collabora.com> | 2023-02-16 16:47:22 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-05-23 15:40:57 +0200 |
commit | d4bc98c5bf8d099ab1df32cc8ac30169ac537e62 (patch) | |
tree | 84f830febb400fa16c05b0e44e30b20d001aec65 /sfx2/source/inc/appdata.hxx | |
parent | ef76718e7146b9c7c878d598d2e9b5125b278d69 (diff) |
[API CHANGE] Add createShortCutManager function to uiconfigurationmanager.
We need to have different accelerator classes for differnt languages.
This PR creates a new accelerator class for different languages.
Since current code uses single instance for accelerators, i needed to add a create function.
Also we now have an unordered map for different languages and modules.
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147157
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148680
Tested-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia646f20b3206f430ece614fc127e8b748044e4c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151798
Tested-by: Jenkins
Diffstat (limited to 'sfx2/source/inc/appdata.hxx')
-rw-r--r-- | sfx2/source/inc/appdata.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/inc/appdata.hxx b/sfx2/source/inc/appdata.hxx index 7f2c99d6332a..6362d05d093d 100644 --- a/sfx2/source/inc/appdata.hxx +++ b/sfx2/source/inc/appdata.hxx @@ -32,6 +32,7 @@ #include <sfx2/msgpool.hxx> #include <o3tl/enumarray.hxx> #include "sfxpicklist.hxx" +#include <com/sun/star/ui/XAcceleratorConfiguration.hpp> #include <bitset.hxx> #include <memory> @@ -98,6 +99,7 @@ public: maStbCtrlFactories; std::vector<SfxViewFrame*> maViewFrames; std::vector<SfxViewShell*> maViewShells; + std::unordered_map<OUString, css::uno::Reference<css::ui::XAcceleratorConfiguration>> maAcceleratorConfs; std::vector<SfxObjectShell*> maObjShells; std::unique_ptr<SfxBasicManagerHolder> |