diff options
author | Jim Raykowski <raykowj@gmail.com> | 2022-03-12 02:07:46 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2022-03-16 08:42:34 +0100 |
commit | b802cecbc0f57d0ba0d70434cf619a7e91c7393f (patch) | |
tree | 120047fe8d6849f5d7db5ea601f98bfd06eb7a90 /sw/source/uibase/inc | |
parent | 2e8cbf38b760d2d5d76048542f15962b94acc03a (diff) |
Provides for sorting content members by order in document or
alphabetically. The option to sort comment and footnote content types
members alphabetically is not done by this patch.
Change-Id: If68c08bb0f1035b32cd1dad1d5bd08a340834b49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131448
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase/inc')
-rw-r--r-- | sw/source/uibase/inc/content.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/inc/content.hxx b/sw/source/uibase/inc/content.hxx index 0a4e18013be4..2d6ac1a7d925 100644 --- a/sw/source/uibase/inc/content.hxx +++ b/sw/source/uibase/inc/content.hxx @@ -183,6 +183,8 @@ class SwContentType final : public SwTypeNumber bool m_bEdit: 1; // can this type be edited? bool m_bDelete: 1; // can this type be deleted? + bool m_bAlphabeticSort = false; + static OUString RemoveNewline(const OUString&); public: SwContentType(SwWrtShell* pParent, ContentTypeId nType, sal_uInt8 nLevel ); @@ -206,6 +208,9 @@ public: Invalidate(); } + bool GetSortType() const {return m_bAlphabeticSort;} + void SetSortType(bool bAlphabetic) {m_bAlphabeticSort = bAlphabetic;} + void Invalidate(); // only nMemberCount is read again bool IsEditable() const {return m_bEdit;} |