[Libreoffice-commits] core.git: sw/source
Adam Co
rattles2013 at gmail.com
Tue Feb 11 06:30:58 PST 2014
sw/source/core/docnode/nodedump.cxx | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
New commits:
commit 07c84c123ab1cc65e606812623827fa76103f9c0
Author: Adam Co <rattles2013 at gmail.com>
Date: Mon Feb 3 18:27:31 2014 +0200
Add XML dumping of the new 'SwExtraRedlineTbl'
Change-Id: Ifeba2d07391258ebf55ff3aa9f604e679cc5d7c9
Reviewed-on: https://gerrit.libreoffice.org/7824
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index 4959207..c15ba59 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -119,6 +119,7 @@ void SwDoc::dumpAsXml( xmlTextWriterPtr w )
mpCharFmtTbl->dumpAsXml( writer );
mpNumRuleTbl->dumpAsXml( writer );
mpRedlineTbl->dumpAsXml( writer );
+ mpExtraRedlineTbl->dumpAsXml( writer );
writer.endElement();
}
@@ -592,7 +593,7 @@ void SwRedlineTbl::dumpAsXml( xmlTextWriterPtr w )
else
writer.writeFormatAttribute( "extra_data_type", "%s", BAD_CAST( "UNKNOWN" ) );
}
- writer.endElement( ); // end_swposition
+ writer.endElement( ); // extra_redline_data
}
writer.endElement( ); // extra_redline_data
@@ -615,8 +616,13 @@ void SwExtraRedlineTbl::dumpAsXml( xmlTextWriterPtr w )
const SwExtraRedline* pExtraRedline = extraRedlineTbl.GetRedline( nCurExtraRedlinePos );
writer.startElement( "swextraredline" );
- writer.writeFormatAttribute( "ptr", "%p", pExtraRedline );
-
+ {
+ const SwTableRowRedline* pTableRowRedline = dynamic_cast<const SwTableRowRedline*>(pExtraRedline);
+ if (pTableRowRedline)
+ writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "table row" ) );
+ else
+ writer.writeFormatAttribute( "extra_redline_type", "%s", BAD_CAST( "UNKNOWN" ) );
+ }
writer.endElement( ); // extra_redline_data
}
More information about the Libreoffice-commits
mailing list