summaryrefslogtreecommitdiff
path: root/include/editeng/svxacorr.hxx
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2020-05-28 08:50:39 +0200
committerLászló Németh <nemeth@numbertext.org>2020-05-31 23:13:23 +0200
commit57f07b1d7378d218648667c5b1315cc8ad905875 (patch)
tree5637c6bb18c61d960c1d1771a1f7d887649d8ba2 /include/editeng/svxacorr.hxx
parentc87c7ddca46ae093a703ca673a204e4593402c38 (diff)
tdf#133524 AutoCorrect: support double angle quotes
Add two methods to support double angle quotes, as part of "Double quotes" replacement: 1. Correct ">>" and "<<" to » and « in several languages, where double angle quotes are default or alternative primary or second level quotation marks, but actual LibreOffice locale settings don't contain double angle quotes. 2. Correct " to double angle quotes, if the cursor is there in a primary level quotation (i.e. there is a preceding primary level opening quote, but not other quotes). For example, it's possible to type Hungarian or Romanian quotation marks in „... »quote« ...” pressing only Shift + 2 (") for them. (These languages, where "Single quotes" replacement is used for apostrophe and third level quotes instead of the standard second level quotation marks.) Change-Id: Icd1584a5a2b81422de693217d2d1f7f3058a74b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95212 Tested-by: Jenkins Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'include/editeng/svxacorr.hxx')
-rw-r--r--include/editeng/svxacorr.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index 708c25adb52a..c9d9a866a949 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -85,6 +85,7 @@ enum class ACQuotes
NONE,
NonBreakingSpace,
CapitalizeIAm,
+ DoubleAngleQuote,
};
// TODO: handle code points > U+FFFF and check users of this class