summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2023-01-31 16:01:08 -0400
committerAndras Timar <andras.timar@collabora.com>2023-02-15 12:14:58 +0000
commit16504e240caeac4d1b63cfc1022133028ecaabf7 (patch)
tree004a7f1ae2b21ba02fa635f415ba79e1702d573a /editeng
parentf91e083e2565f07a6ebd2f2c0aa69bbacb4cfd19 (diff)
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 <hcastro@collabora.com> Change-Id: I0a01e6d4db51d43707f7cdd0ab9d9cf3288e2221 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146422 Reviewed-by: Dennis Francis <dennis.francis@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editstt2.hxx3
1 files changed, 3 insertions, 0 deletions
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: */