Kaydet (Commit) c4c1fa13 authored tarafından Adam Co's avatar Adam Co Kaydeden (comit) Miklos Vajna

Add XML dumping of the new 'SwTableCellRedline'

Change-Id: I4072130ff0ce712f02d1dd8f12003170116216a2
Reviewed-on: https://gerrit.libreoffice.org/7876Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst a8db386a
...@@ -618,8 +618,11 @@ void SwExtraRedlineTbl::dumpAsXml( xmlTextWriterPtr w ) ...@@ -618,8 +618,11 @@ void SwExtraRedlineTbl::dumpAsXml( xmlTextWriterPtr w )
writer.startElement( "swextraredline" ); writer.startElement( "swextraredline" );
{ {
const SwTableRowRedline* pTableRowRedline = dynamic_cast<const SwTableRowRedline*>(pExtraRedline); const SwTableRowRedline* pTableRowRedline = dynamic_cast<const SwTableRowRedline*>(pExtraRedline);
const SwTableCellRedline* pTableCellRedline = dynamic_cast<const SwTableCellRedline*>(pExtraRedline);
if (pTableRowRedline) if (pTableRowRedline)
writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "table row" ) ); writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "table row" ) );
else if (pTableCellRedline)
writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "table cell" ) );
else else
writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "UNKNOWN" ) ); writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "UNKNOWN" ) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment