summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Co <rattles2013@gmail.com>2014-02-05 13:47:40 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-02-12 10:01:55 +0000
commitc4c1fa13989c8bd4f7a4ba8f57be4c7a40522b8f (patch)
treeda1943984ed930ef944cf4c73e8c42278ffa763a
parenta8db386ad206029ab8c769856f8c452db8712c2b (diff)
Add XML dumping of the new 'SwTableCellRedline'
Change-Id: I4072130ff0ce712f02d1dd8f12003170116216a2 Reviewed-on: https://gerrit.libreoffice.org/7876 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sw/source/core/docnode/nodedump.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index c15ba592d244..b4d455b5caf1 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -618,8 +618,11 @@ void SwExtraRedlineTbl::dumpAsXml( xmlTextWriterPtr w )
writer.startElement( "swextraredline" );
{
const SwTableRowRedline* pTableRowRedline = dynamic_cast<const SwTableRowRedline*>(pExtraRedline);
+ const SwTableCellRedline* pTableCellRedline = dynamic_cast<const SwTableCellRedline*>(pExtraRedline);
if (pTableRowRedline)
writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "table row" ) );
+ else if (pTableCellRedline)
+ writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "table cell" ) );
else
writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "UNKNOWN" ) );
}