summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2022-06-01 16:38:28 +0200
committerLászló Németh <nemeth@numbertext.org>2022-06-02 09:57:39 +0200
commit7a1d4b7d1db93ca1f541856a8d00d621d50e7bd6 (patch)
tree62c14075edae32b552caf8688623d11327bc17cc /include/unotools
parent6585fe3fc154c518d657202295a2c5214de55b56 (diff)
tdf#149420 sw offapi xmloff: add hyphenation zone
Add hyphenation zone support, i.e. allow the specified amount of extra space in lines instead of forcing hyphenation. It's for limiting hyphenation, used especially with not justified paragraph alignment. Note: this is an OOXML interoperability feature, used also in DTP software and CSS. * Add checkbox to Text Flow in paragraph dialog * Store property in paragraph model (com::sun::star::style::ParagraphProperties::ParaHyphenationZone) * Add ODF import/export * Add ODF unit test * Add layout test Note: extend SvxHyphenZoneItem::GetPresentation() with missing No CAPS and No last word hyphenation options. Note: fix OSL_ENSURE condition in SwTextFormatInfo::GetHyphValues(). Follow-up to commit 29359fc15c435cec17987fd6221ab6833d38746e "tdf#149324 sw offapi xmloff: add option to not hyphenate short words". Change-Id: Ib8eff6ea98a9aa5ca6cb9d17faa0bbb789687ce9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135247 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/linguprops.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/unotools/linguprops.hxx b/include/unotools/linguprops.hxx
index adede0b91777..971c0280444c 100644
--- a/include/unotools/linguprops.hxx
+++ b/include/unotools/linguprops.hxx
@@ -42,6 +42,7 @@ inline constexpr OUStringLiteral UPN_HYPH_MIN_TRAILING = u"HyphMin
inline constexpr OUStringLiteral UPN_HYPH_MIN_WORD_LENGTH = u"HyphMinWordLength";
inline constexpr OUStringLiteral UPN_HYPH_NO_CAPS = u"HyphNoCaps";
inline constexpr OUStringLiteral UPN_HYPH_NO_LAST_WORD = u"HyphNoLastWord";
+inline constexpr OUStringLiteral UPN_HYPH_ZONE = u"HyphZone";
// UNO property names for Lingu
// (those not covered by the SpellChecker and Hyphenator
@@ -109,6 +110,7 @@ inline constexpr OUStringLiteral UPN_IS_GRAMMAR_INTERACTIVE = u"IsInter
#define UPH_IS_GRAMMAR_INTERACTIVE 35
#define UPH_HYPH_NO_CAPS 36
#define UPH_HYPH_NO_LAST_WORD 37
+#define UPH_HYPH_ZONE 38
#ifdef __GNUC__
#pragma GCC diagnostic pop