summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2021-07-21 12:21:07 +0300
committerThorsten Behrens <thorsten.behrens@allotropia.de>2021-07-27 10:51:59 +0200
commitcd5c97ef20510bf13ef32bf268f086d758e8d577 (patch)
treeb8b766923080459a135f94ae2f8cd3605ae2597c /include
parent446771fe3e91eb7d154e86b9c6a614374110e9ca (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 (cherry picked from commit d44730148a95933f4a45a70241cb6d1d0546f626) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119440
Diffstat (limited to 'include')
-rw-r--r--include/editeng/numitem.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx
index f955ea15d008..19cfd3922c1e 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;