From e6271a8a4eafcbb357bbd3cf21126f64b45125e9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 10 Dec 2019 10:40:22 +0000 Subject: Resolves: tdf#129250 move redline type into RedlinData so we can sort on it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia8e6744c1679655240a9a9cee9425030e994e16b Reviewed-on: https://gerrit.libreoffice.org/84805 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/svx/ctredlin.hxx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx index 884ce5aeb50c..91c95fa52454 100644 --- a/include/svx/ctredlin.hxx +++ b/include/svx/ctredlin.hxx @@ -46,15 +46,32 @@ enum class SvxRedlinDateMode BEFORE, SINCE, EQUAL, NOTEQUAL, BETWEEN, SAVE, NONE }; +enum class RedlineType : sal_uInt16 +{ + // Range of RedlineTypes is 0 to 127. + Insert = 0x0,// Content has been inserted. + Delete = 0x1,// Content has been deleted. + Format = 0x2,// Attributes have been applied. + Table = 0x3,// Table structure has been altered. + FmtColl = 0x4,// Style has been altered (Autoformat!). + ParagraphFormat = 0x5,// Paragraph attributes have been changed. + TableRowInsert = 0x6,// Table row has been inserted. + TableRowDelete = 0x7,// Table row has been deleted. + TableCellInsert = 0x8,// Table cell has been inserted. + TableCellDelete = 0x9,// Table cell has been deleted. + Any = USHRT_MAX // special value to indicate any redline type in some method calls +}; + /// Struct for sorting data. class SAL_WARN_UNUSED SVX_DLLPUBLIC RedlinData { public: RedlinData(); virtual ~RedlinData(); - bool bDisabled; DateTime aDateTime; void* pData; + RedlineType eType; + bool bDisabled; }; class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxRedlinTable -- cgit