diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2017-12-01 21:56:55 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-22 23:53:38 +0100 |
commit | 67a4b2e69ce9e34d95e9a41960df76670ed3d5be (patch) | |
tree | 5454108eebafb546c0055e5b5a76a1c4c20fabd7 /desktop/source/lib/init.cxx | |
parent | dcedc4ef100dffc87b6580d9a2f9e331a46b8455 (diff) |
Initialize more for sharing during pre-init.
Reviewed-on: https://gerrit.libreoffice.org/46120
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/48510
(cherry picked from commit 5fc484a786a04d65811518b7effab66925dcec72)
Change-Id: I12b90504ec9161318683ebad8f8e4dd1e614da89
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r-- | desktop/source/lib/init.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index e33226be7f8c..879dad11eabd 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -55,6 +55,7 @@ #include <com/sun/star/datatransfer/clipboard/XClipboard.hpp> #include <com/sun/star/text/TextContentAnchorType.hpp> #include <com/sun/star/document/XRedlinesSupplier.hpp> +#include <com/sun/star/ui/GlobalAcceleratorConfiguration.hpp> #include <com/sun/star/linguistic2/LinguServiceManager.hpp> #include <com/sun/star/linguistic2/XSpellChecker.hpp> @@ -84,6 +85,7 @@ #include <vcl/ptrstyle.hxx> #include <vcl/sysdata.hxx> #include <vcl/virdev.hxx> +#include <vcl/ImageTree.hxx> #include <vcl/ITiledRenderable.hxx> #include <vcl/IDialogRenderable.hxx> #include <unicode/uchar.h> @@ -96,6 +98,8 @@ #include <svl/undo.hxx> #include <unotools/datetime.hxx> #include <android/compatibility.hxx> +#include <i18nlangtag/languagetag.hxx> + #include <app.hxx> @@ -3667,6 +3671,20 @@ static void preloadData() xThesaurus->queryMeanings("forcefed", it, aNone); } std::cerr << "\n"; + + css::uno::Reference< css::ui::XAcceleratorConfiguration > xGlobalCfg; + xGlobalCfg = css::ui::GlobalAcceleratorConfiguration::create( + comphelper::getProcessComponentContext()); + xGlobalCfg->getAllKeyEvents(); + + std::cerr << "Preload icons\n"; + ImageTree &images = ImageTree::get(); + images.getImageUrl("forcefed.png", "style", "FO_oo"); + + std::cerr << "Preload languages\n"; + // force load language singleton + SvtLanguageTable::HasLanguageType(LANGUAGE_SYSTEM); + LanguageTag::isValidBcp47("foo", nullptr); } static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char* pUserProfileUrl) |