summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2024-01-19 01:29:34 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2024-01-24 12:12:12 +0100
commit04c92ff9cfec039f7fc03277de46d77bb3109431 (patch)
treeedacae0350eb2f6a2f5a747d8c4d1a6c003e9b65 /offapi
parent5df7c66193d55af944b3269f11374e60da437c0b (diff)
tdf#106733 sw: implement CharNoHyphenation
Implement CharNoHyphenation character property to disable automatic hyphenation of words in paragraphs with enabled hyphenation. Fix also fo:hyphenate mapping to CharNoHyphenation using automatic inversion of their boolean values defined by xmloff's XML_TYPE_NBOOL, as suggested by Michael Stahl. Update also the test for tdf#159102 to check the available hyphenation dictionary (also custom hyphenation patterns work only with supported locales of the hyphenator). Note: patch of thints.cxx contains also partial revert of commit 53b289eabb3d265b47bc7fb6cc430291c97f0c0b "use more TypedWhichId". Follow-up to commit 73bd04a71e741788a2f2f3b26cc46ddb6a361372 "tdf#106733 xmloff: keep fo:hyphenate in character formatting". Change-Id: If99b94ddcd44a5c2426e646be149078a3b9773b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162300 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162283 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/style/CharacterProperties.idl8
1 files changed, 7 insertions, 1 deletions
diff --git a/offapi/com/sun/star/style/CharacterProperties.idl b/offapi/com/sun/star/style/CharacterProperties.idl
index 6502a47b2886..aaff4a569455 100644
--- a/offapi/com/sun/star/style/CharacterProperties.idl
+++ b/offapi/com/sun/star/style/CharacterProperties.idl
@@ -325,7 +325,13 @@ published service CharacterProperties
/** This optional property determines if the word can be hyphenated at the
- character.
+ character by automatic hyphenation.
+
+ <p>Setting to `true` will disable hyphenation enabled by ParaIsHyphenation.</p>
+
+ <p>Note: implemented since LibreOffice 24.2.</p>
+
+ @see ParaIsHyphenation
*/
[optional, property] boolean CharNoHyphenation;