summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-09-04 16:51:59 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-09-07 09:07:52 +0200
commit94ebfe7ae7ba7608d2db6359f7a77328781f37d1 (patch)
tree3f3cee45cdabdbd7bb97825d77282324c8982315 /sw/inc
parente46a0fa97f5cf31dbf302e44bdcc6f05139f61dd (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. Conflicts: sw/source/core/doc/docnew.cxx Change-Id: Ic1afc82d7b59f1bd32815586f756e7e8408e5c6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102052 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/doc.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index cc06333cc51b..fab3d74159f6 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -1654,6 +1654,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);