diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-09-04 16:51:59 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-09-04 18:00:29 +0200 |
commit | 7d379bd8535b32a8d63a5fa8131cd9e82c7ff94f (patch) | |
tree | ca0524cb6048c799bd89e5bc373ef79f0816a2d3 /sw/inc/doc.hxx | |
parent | 74244dc85ee597ec6e9a40351d123257c342fbfb (diff) |
sw: default to UI locale when language is missing
This means that when extras/source/shellnew/soffice.odt is opened, it'll
always match the user's language. The same was already working in Calc
and Impress.
Change-Id: Ic1afc82d7b59f1bd32815586f756e7e8408e5c6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102051
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r-- | sw/inc/doc.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index ba8c67e3521c..aff7d10e0ce3 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1653,6 +1653,8 @@ public: /// Returns true if no dictionary can be found for any content bool IsDictionaryMissing() const { return meDictionaryMissing == MissingDictionary::True; } + void SetLanguage(const LanguageType eLang, const sal_uInt16 nId); + private: // Copies master header to left / first one, if necessary - used by ChgPageDesc(). void CopyMasterHeader(const SwPageDesc &rChged, const SwFormatHeader &rHead, SwPageDesc &pDesc, bool bLeft, bool bFirst); |