editeng/source/editeng/editstt2.hxx | 3 +++ include/editeng/editstat.hxx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)
New commits: commit cb9de0256ae56966ace00af9bec73572f23e423b Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Jan 31 16:01:08 2023 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Sat May 6 00:44:06 2023 +0200 editeng: add flag EEControlBits::SINGLELINE The purpose of this flag is to draw a paragraph into a single line ignoring line breaks Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: I0a01e6d4db51d43707f7cdd0ab9d9cf3288e2221 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147999 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/editeng/source/editeng/editstt2.hxx b/editeng/source/editeng/editstt2.hxx index 4474df8b429b..334622b23495 100644 --- a/editeng/source/editeng/editstt2.hxx +++ b/editeng/source/editeng/editstt2.hxx @@ -91,6 +91,9 @@ public: bool ULSpaceSummation() const { return bool( nControlBits & EEControlBits::ULSPACESUMMATION ); } + + bool IsSingleLine() const + { return bool( nControlBits & EEControlBits::SINGLELINE ); } }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/editeng/editstat.hxx b/include/editeng/editstat.hxx index eec50ea67c20..29653d5eec4f 100644 --- a/include/editeng/editstat.hxx +++ b/include/editeng/editstat.hxx @@ -50,10 +50,11 @@ enum class EEControlBits AUTOPAGESIZE = (AUTOPAGESIZEX | AUTOPAGESIZEY), FORMAT100 = 0x01000000, // Always format to 100% ULSPACESUMMATION = 0x02000000, // MS Compat: sum SA and SB, not maximum value + SINGLELINE = 0x04000000, // One line for all text }; namespace o3tl { - template<> struct typed_flags<EEControlBits> : is_typed_flags<EEControlBits, 0x037afff9> {}; + template<> struct typed_flags<EEControlBits> : is_typed_flags<EEControlBits, 0x07ffffff> {}; } enum class EVControlBits