editeng/source/editeng/editstt2.hxx | 3 +++ include/editeng/editstat.hxx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)
New commits: commit 16504e240caeac4d1b63cfc1022133028ecaabf7 Author: Henry Castro <[email protected]> AuthorDate: Tue Jan 31 16:01:08 2023 -0400 Commit: Andras Timar <[email protected]> CommitDate: Wed Feb 15 12:14:58 2023 +0000 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 <[email protected]> Change-Id: I0a01e6d4db51d43707f7cdd0ab9d9cf3288e2221 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146422 Reviewed-by: Dennis Francis <[email protected]> Tested-by: Andras Timar <[email protected]> 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 e23007899267..f05ff8acf82f 100644 --- a/include/editeng/editstat.hxx +++ b/include/editeng/editstat.hxx @@ -49,10 +49,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
