diff options
author | László Németh <nemeth@numbertext.org> | 2020-06-23 18:49:46 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-06-26 09:01:20 +0200 |
commit | 77b213890a96d144d9cfacdfd35ac0bba68b9f7a (patch) | |
tree | ed07e76887e1eae390a4492467c9bdd8140c0a7d /include | |
parent | 46308ce281ae93e22c0b051b68dad1ee21c6646e (diff) |
tdf#133524 add option to angle quote AutoCorrect
in Localized Options page of AutoCorrect Options
dialog window:
[x] Replace << and >> with angle quotes
Note: this is optional part of Double Quotes replacement.
Change-Id: Ib0c7e8837a89c3772c5db76720811d440e62183a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97094
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/svxacorr.hxx | 3 | ||||
-rw-r--r-- | include/editeng/swafopt.hxx | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index c9908c633d01..52f7bfdd5271 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -72,13 +72,14 @@ enum class ACFlags : sal_uInt32 { ChgSglQuotes = 0x00001000, // Replace simple quotes CorrectCapsLock = 0x00002000, // Correct accidental use of cAPS LOCK key TransliterateRTL = 0x00004000, // Transliterate RTL text + ChgAngleQuotes = 0x00008000, // >>, << -> angle quotes in some languages ChgWordLstLoad = 0x20000000, // Replacement list loaded CplSttLstLoad = 0x40000000, // Exception list for Capital letters Start loaded WrdSttLstLoad = 0x80000000, // Exception list for Word Start loaded }; namespace o3tl { - template<> struct typed_flags<ACFlags> : is_typed_flags<ACFlags, 0xe0007fff> {}; + template<> struct typed_flags<ACFlags> : is_typed_flags<ACFlags, 0xe000ffff> {}; } enum class ACQuotes diff --git a/include/editeng/swafopt.hxx b/include/editeng/swafopt.hxx index 682e85e4d77a..4fd1207cefb4 100644 --- a/include/editeng/swafopt.hxx +++ b/include/editeng/swafopt.hxx @@ -104,6 +104,7 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags bool bChgToEnEmDash : 1; bool bAddNonBrkSpace : 1; bool bTransliterateRTL : 1; + bool bChgAngleQuotes : 1; bool bChgWeightUnderl : 1; bool bSetINetAttr : 1; |