summaryrefslogtreecommitdiff
path: root/sw/inc/redline.hxx
diff options
context:
space:
mode:
authorAdam Co <rattles2013@gmail.com>2014-02-03 17:44:22 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-02-11 14:18:34 +0000
commitd688069023959ab97d14eb1dbfd5bf6ad3c1b160 (patch)
tree18eec4c66e6e5a2177a5b008ae8ebf64688993cb /sw/inc/redline.hxx
parent6cab3069caf9fd5c1ce938d2891e14e6eec7850b (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/redline.hxx')
-rw-r--r--sw/inc/redline.hxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index 3dc9dea3e587..a4e0a29e05ca 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -304,7 +304,7 @@ public:
class SW_DLLPUBLIC SwExtraRedline
{
public:
- SwExtraRedline( RedlineType_t eType );
+ SwExtraRedline( );
SwExtraRedline( const SwExtraRedline& );
virtual ~SwExtraRedline();
};
@@ -312,10 +312,25 @@ public:
/// Redline that holds information about a table-row that had some change
class SW_DLLPUBLIC SwTableRowRedline : public SwExtraRedline
{
+private:
+ SwRedlineData* pRedlineData;
+ const SwTableLine* pTableLine;
+
public:
- SwTableRowRedline( RedlineType_t eType, SwTableLine* pTableLine );
+ SwTableRowRedline( const SwRedlineData& rData, SwTableLine& aTableLine );
SwTableRowRedline( const SwTableRowRedline& );
virtual ~SwTableRowRedline();
+
+ /** ExtraData gets copied, the pointer is therefor not taken over by
+ * the RedLineObject.*/
+ void SetExtraData( const SwRedlineExtraData* pData )
+ { pRedlineData->SetExtraData( pData ); }
+ const SwRedlineExtraData* GetExtraData() const
+ { return pRedlineData->GetExtraData(); }
+ const SwTableLine* GetTableLine() const
+ { return pTableLine; }
+ const SwRedlineData& GetRedlineData() const
+ { return *pRedlineData; }
};