diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2021-07-21 12:21:07 +0300 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2021-07-26 15:18:16 +0200 |
commit | d44730148a95933f4a45a70241cb6d1d0546f626 (patch) | |
tree | 3bddf56a5f3a578e6852005e95a5d054fec390b8 /include | |
parent | da9bba7cc3c243e936daea689fea64ecaf110f35 (diff) |
tdf#143424: support for "Chapter number without separator"
If LO is using list format strings (this is default behavior since
aa5c6d12) it was not able to show just numbering without all formatting,
as it used in some fields.
Change-Id: Ib4695b8e1c2d7a451522c7e04af2216d16aceefe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119309
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/numitem.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index bbcbecdf4c79..1846e6a8739c 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -175,7 +175,7 @@ public: void SetListFormat(const OUString& rPrefix, const OUString& rSuffix, int nLevel); void SetListFormat(std::optional<OUString> oSet = std::nullopt); bool HasListFormat() const { return sListFormat.has_value(); } - const OUString& GetListFormat() const { return *sListFormat; } + OUString GetListFormat(bool bIncludePrefixSuffix = true) const; void SetCharFormatName(const OUString& rSet){ sCharStyleName = rSet; } virtual OUString GetCharFormatName()const; |