From b4d1aaa074e2be9fd778134c40f99d2ab8a01e93 Mon Sep 17 00:00:00 2001 From: Jeremy Brown Date: Sun, 11 Nov 2012 08:06:46 +0100 Subject: fdo#36324 fdo#42929 - option to ingore system input language changes Created a new checkbox on the Langauges options page: [] Ignore system input language This is unchecked by default so that the current behavior remains the default, i.e. newly entered text will be flagged as whatever the current system input language is. When checked however, this instructs LibreOffice to ignore the system language (on Windows for example, the language from the Language Bar) when determining the language for newly entered text. This is handled in the lcl_isNonDefaultLanguage method of sw/source/ui/docvw/edtwin.cxx. The option is also saved in registrymodifications.xcu There are two main use cases: 1. This allows someone to use a single "international" keyboard on Windows to type in multiple languages, (e.g. English, French, Spanish) without changing the system keyboard. The person is then responsible for setting the language for each word or run of text themselves in LibreOffice. This seems to be the preferred workflow for some translators and some educators developing language materials. 2. This allows someone writing in a minority language that is not represented in one of Windows' locale options to still be able to type in LibreOffice in their language using a keyboard tagged for another language. Once they set the language in LibreOffice (e.g. to Teke-Eboo [ebo_CG]), they can type with a keyboard as being for "Swahili" but still succeed in entering new text in their language. This allows spell-checking to work properly without them having to select each new word they enter and reset the language of that word to Teke-Eboo (as is currently the case). Change-Id: I86248f5865b69048eb1f3e427a8c03b093138796 Reviewed-on: https://gerrit.libreoffice.org/1029 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- sw/source/ui/docvw/edtwin.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sw/source/ui/docvw/edtwin.cxx') diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index 99f315aa88f6..6a6d7443f1e2 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -149,6 +149,8 @@ #include "../../core/inc/rootfrm.hxx" +#include + using namespace sw::mark; using namespace ::com::sun::star; @@ -773,6 +775,16 @@ static sal_uInt16 lcl_isNonDefaultLanguage(LanguageType eBufferLanguage, SwView& const String &rInBuffer) { sal_uInt16 nWhich = INVALID_HINT; + + //If the option to IgnoreLanguageChange is set, short-circuit this method + //which results in the document/paragraph language remaining the same + //despite a change to the keyboard/input language + SvtSysLocaleOptions aSysLocaleOptions; + if(aSysLocaleOptions.IsIgnoreLanguageChange()) + { + return INVALID_HINT; + } + bool bLang = true; if(eBufferLanguage != LANGUAGE_DONTKNOW) { -- cgit alue='distro/collabora/cp-4.2'>distro/collabora/cp-4.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-14tdf#125010 No compression to mimetype in all embded filesLaurent BP
same change as change https://gerrit.libreoffice.org/71473/ for : - autocorrection files .DAT - autotext share files .BAU - autotext user file .BAU - Writer templates: OfficeCorr, OfficeMisc, Personal, Styles .OTT - Impress templates .OTP Change-Id: Ie467b19bc833006fdfef45a72b9cb4a0eba8e7bd Reviewed-on: https://gerrit.libreoffice.org/71830 Tested-by: Jenkins Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2019-05-05tdf#125010 No compression to mimetype in templatesLaurent BP
For Offimisc Writer template zip mimetype file with -0 option --filesync option must be removed as it remove mimetype remove unused test of exiting files restore script extras_Tploffimisc_make_file_deps Change-Id: I7851635f483d10bcf179b568250be31d763d60b9 Reviewed-on: https://gerrit.libreoffice.org/71473 Tested-by: Jenkins Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2018-08-19Writer templates: built from XML codeLaurent BP
Maintaining XML code is easier if we need to change a font (name or size). See tdf#114749 Change-Id: I1c1e5951c24863be717aef3dd22d533f5fd23a4f Reviewed-on: https://gerrit.libreoffice.org/58787 Tested-by: Jenkins Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> Tested-by: Heiko Tietze <tietze.heiko@gmail.com>