From 7bf6d0d9d8e3e2e07726ca6df246619ee1ead3a3 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 7 Dec 2018 13:10:57 +0300 Subject: tdf#121779: extend TWo CApitals list to also ignore sMALL iNITIALS Now this list is used also in rules for capitalizing first letter of every sentence, and for correcting accidental use of Caps Lock key. Change-Id: I4fbdbccbae32743d5e9a6757344361eefd88e167 Reviewed-on: https://gerrit.libreoffice.org/64759 Tested-by: Jenkins Reviewed-by: Heiko Tietze Reviewed-by: Sophie Gautier Reviewed-by: Mike Kaganski --- include/editeng/svxacorr.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include/editeng/svxacorr.hxx') diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 5dc0e5fbc158..0c7a5fc7cb80 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -67,7 +67,7 @@ enum class ACFlags : sal_uInt32 { Autocorrect = 0x00000080, // Call AutoCorrect ChgQuotes = 0x00000100, // replace double quotes SaveWordCplSttLst = 0x00000200, // Save Auto correction of Capital letter at beginning of sentence. - SaveWordWrdSttLst = 0x00000400, // Save Auto correction of 2 Capital letter at beginning of word. + SaveWordWrdSttLst = 0x00000400, // Save Auto correction of TWo INitial CApitals or sMALL iNITIAL. IgnoreDoubleSpace = 0x00000800, // Ignore 2 Spaces ChgSglQuotes = 0x00001000, // Replace simple quotes CorrectCapsLock = 0x00002000, // Correct accidental use of cAPS LOCK key @@ -209,8 +209,7 @@ public: SvStringsISortDtor* GetCplSttExceptList(); bool AddToCplSttExceptList(const OUString& rNew); - // Load, Set, Get the exception list for 2 Capital letters at the - // beginning of a word. + // Load, Set, Get the exception list for TWo INitial CApitals or sMALL iNITIAL SvStringsISortDtor* LoadWrdSttExceptList(); void SaveWrdSttExceptList(); SvStringsISortDtor* GetWrdSttExceptList(); @@ -363,8 +362,7 @@ public: // Adds a single word. The list will be immediately written to the file! bool AddCplSttException( const OUString& rNew, LanguageType eLang ); - // Load, Set, Get the exception list for 2 Capital letters at the - // beginning of a word. + // Load, Set, Get the exception list for TWo INitial CApitals or sMALL iNITIAL void SaveWrdSttExceptList( LanguageType eLang ); SvStringsISortDtor* LoadWrdSttExceptList( LanguageType eLang ) { return GetLanguageList_( eLang ).LoadWrdSttExceptList(); } -- cgit