From a925476352b3cb32f6384e7b0fb07e323bb6e64f Mon Sep 17 00:00:00 2001 From: Sarper Akdemir Date: Fri, 7 Apr 2023 13:32:49 +0300 Subject: xmloff: ODF import/export for style:overflow-behavior "clip" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds initial support for style:overflow-behavior According to OpenDocument-v1.3-part3 style:overflow-behavior can take values of: - "clip" - "auto-create-new-frame" This patch doesn't properly implement support "auto-create-new-frame", only "clip". If "clip" is set, TextClipVerticalOverflow is set to true, causing the vertical overflowing text to be clipped. "auto-create-new-frame" is treated the same as omitting the style:overflow-behavior attribute, setting TextClipVerticalOverflow to false. Change-Id: Iea298f41fbf0cf18dc07f41788ba0b665515db8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150122 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- xmloff/inc/xmlprop.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'xmloff/inc') diff --git a/xmloff/inc/xmlprop.hxx b/xmloff/inc/xmlprop.hxx index 3b2cd86816bc..b93bf926e569 100644 --- a/xmloff/inc/xmlprop.hxx +++ b/xmloff/inc/xmlprop.hxx @@ -611,6 +611,7 @@ inline constexpr OUStringLiteral PROP_TextAutoGrowWidth = u"TextAutoGrowWidth"; inline constexpr OUStringLiteral PROP_TextBreak = u"TextBreak"; inline constexpr OUStringLiteral PROP_TextCanOverlap = u"TextCanOverlap"; inline constexpr OUStringLiteral PROP_TextChainNextName = u"TextChainNextName"; +inline constexpr OUStringLiteral PROP_TextClipVerticalOverflow = u"TextClipVerticalOverflow"; inline constexpr OUStringLiteral PROP_TextColor = u"TextColor"; inline constexpr OUStringLiteral PROP_TextColumns = u"TextColumns"; inline constexpr OUStringLiteral PROP_TextContourFrame = u"TextContourFrame"; -- cgit