diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-01-26 20:28:46 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-01-27 11:04:32 +0100 |
commit | 3a68b21c212c1c2fc7f1d8f4d1abc8990bcd91c0 (patch) | |
tree | 9c3fc0e1e217ae9c453ed961e2e1cecb17a3b9a7 /include/comphelper/lok.hxx | |
parent | 079775c0d52a49cef5e22790149ad97747c1e940 (diff) |
lok: Allow whitelisting languages that should be used by LibreOfficeKit.
LOK may get way too many languages if there are dictionaries for them
installed which blows the pre-init to >2G easily; let's allow limiting that.
Also make the preloading of languages work with the internal spell checking
dictionaries and thesauri.
Change-Id: I77119970030a7386a5cccbe4fdc89b15eab56ef1
Reviewed-on: https://gerrit.libreoffice.org/48720
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/comphelper/lok.hxx')
-rw-r--r-- | include/comphelper/lok.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx index e9634e77d6f9..9759bb524541 100644 --- a/include/comphelper/lok.hxx +++ b/include/comphelper/lok.hxx @@ -71,6 +71,8 @@ COMPHELPER_DLLPUBLIC bool isRangeHeaders(); COMPHELPER_DLLPUBLIC void setLanguageTag(const LanguageTag& languageTag); /// Get the current LOK's language. COMPHELPER_DLLPUBLIC const LanguageTag& getLanguageTag(); +/// If the language name should be used for this LOK instance. +COMPHELPER_DLLPUBLIC bool isWhitelistedLanguage(const OUString& lang); // Status indicator handling. Even if in theory there could be several status indicators active at // the same time, in practice there is only one at a time, so we don't handle any identification of |