diff options
author | László Németh <nemeth@numbertext.org> | 2022-06-01 16:38:28 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2022-06-02 09:57:39 +0200 |
commit | 7a1d4b7d1db93ca1f541856a8d00d621d50e7bd6 (patch) | |
tree | 62c14075edae32b552caf8688623d11327bc17cc /svx/sdi/svxitems.sdi | |
parent | 6585fe3fc154c518d657202295a2c5214de55b56 (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 'svx/sdi/svxitems.sdi')
-rw-r--r-- | svx/sdi/svxitems.sdi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/sdi/svxitems.sdi b/svx/sdi/svxitems.sdi index 00e4b74237a2..df389994a868 100644 --- a/svx/sdi/svxitems.sdi +++ b/svx/sdi/svxitems.sdi @@ -260,6 +260,7 @@ struct SvxHyphenZone INT16 MinTrail MID_HYPHEN_MIN_TRAIL; INT16 MaxHyphens MID_HYPHEN_MAX_HYPHENS; INT16 MinWordLength MID_HYPHEN_MIN_WORD_LENGTH; + INT16 HyphenZone MID_HYPHEN_ZONE; }; item SvxHyphenZone SvxHyphenZoneItem; |