summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2021-01-23 12:01:48 +0300
committerJustin Luth <justin_luth@sil.org>2021-01-26 17:00:48 +0100
commit55933f49f5a04708d27dc69e8778ec126646e3a5 (patch)
tree79a6aa3ff3bee6445b4c8386b4565b06281966ca /include/editeng
parent07ec53a20caa416ba3f64f04151c3317313fa381 (diff)
tdf#139147 sw outline UI: allow clearing of custom list format
Since LO 6.4.5, primarily for DOCX support, numbering can have a custom format that ignores the suffix, prefix etc. Well, the UI has no way to see or edit that. So allow the UI to throw that away and go back to the normal prefix/subLevels/suffix model. Change-Id: I84f93d37c95dabb18facf9140bf8f85b4bac5006 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109839 Tested-by: Jenkins Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de> Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'include/editeng')
-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 961b5301206f..992f07b08241 100644
--- a/include/editeng/numitem.hxx
+++ b/include/editeng/numitem.hxx
@@ -172,7 +172,7 @@ public:
const OUString& GetPrefix() const { return sPrefix;}
void SetSuffix(const OUString& rSet) { sSuffix = rSet;}
const OUString& GetSuffix() const { return sSuffix;}
- void SetListFormat(const OUString& rSet) { sListFormat = rSet; }
+ void SetListFormat(std::optional<OUString> oSet = std::nullopt) { sListFormat = oSet; }
bool HasListFormat() const { return sListFormat.has_value(); }
const OUString& GetListFormat() const { return *sListFormat; }