diff options
author | Adam Co <rattles2013@gmail.com> | 2014-02-03 17:44:22 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-11 14:18:34 +0000 |
commit | d688069023959ab97d14eb1dbfd5bf6ad3c1b160 (patch) | |
tree | 18eec4c66e6e5a2177a5b008ae8ebf64688993cb /sw/inc/IDocumentRedlineAccess.hxx | |
parent | 6cab3069caf9fd5c1ce938d2891e14e6eec7850b (diff) |
Add support for 'Table Row Redlines' in SW core
This patch adds support for 'Table Row Redlines' (such as 'table row inserted'
or 'table row deleted' in SW core).
This is done by adding a new object called 'SwExtraRedlineTbl' that holds all
the redlines that are not of type 'SwRangedRedline'.
Also this patch adds a function for adding these types of redlines to the
'SwExtraRedlineTbl' object.
It also further develops the 'SwTableRowRedline' object.
Change-Id: Ic285f33e4f5af8f197d8fc24c2a8a3777755afad
Reviewed-on: https://gerrit.libreoffice.org/7821
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/inc/IDocumentRedlineAccess.hxx')
-rw-r--r-- | sw/inc/IDocumentRedlineAccess.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/inc/IDocumentRedlineAccess.hxx b/sw/inc/IDocumentRedlineAccess.hxx index 8125717feb5e..144eb4a4b131 100644 --- a/sw/inc/IDocumentRedlineAccess.hxx +++ b/sw/inc/IDocumentRedlineAccess.hxx @@ -28,7 +28,9 @@ #include <com/sun/star/uno/Sequence.hxx> class SwRangeRedline; + class SwTableRowRedline; class SwRedlineTbl; + class SwExtraRedlineTbl; class SwPaM; struct SwPosition; class SwStartNode; @@ -64,7 +66,9 @@ namespace nsRedlineType_t const RedlineType_t REDLINE_FORMAT = 0x2;// Attributes have been applied. const RedlineType_t REDLINE_TABLE = 0x3;// Table structure has been altered. const RedlineType_t REDLINE_FMTCOLL = 0x4;// Style has been altered (Autoformat!). - const RedlineType_t REDLINE_PARAGRAPH_FORMAT = 0x5;// Paragraph attributes have been changed + const RedlineType_t REDLINE_PARAGRAPH_FORMAT = 0x5;// Paragraph attributes have been changed. + const RedlineType_t REDLINE_TABLE_ROW_INSERT = 0x6;// Table row has been inserted. + const RedlineType_t REDLINE_TABLE_ROW_DELETE = 0x7;// Table row has been deleted. // When larger than 128, flags can be inserted. const RedlineType_t REDLINE_NO_FLAG_MASK = 0x7F; @@ -126,6 +130,7 @@ public: virtual bool IsIgnoreRedline() const = 0; virtual const SwRedlineTbl& GetRedlineTbl() const = 0; + virtual const SwExtraRedlineTbl& GetExtraRedlineTbl() const = 0; virtual bool IsInRedlines(const SwNode& rNode) const = 0; @@ -143,6 +148,8 @@ public: */ virtual bool AppendRedline(/*[in]*/SwRangeRedline* pPtr, /*[in]*/bool bCallDelete) = 0; + virtual bool AppendTableRowRedline(/*[in]*/SwTableRowRedline* pPtr, /*[in]*/bool bCallDelete) = 0; + virtual bool SplitRedline(/*[in]*/const SwPaM& rPam) = 0; virtual bool DeleteRedline( |