Kaydet (Commit) e580246b authored tarafından Michael Stahl's avatar Michael Stahl

sw: xmldump: print pointers again

üst cc9a1018
...@@ -345,6 +345,7 @@ void SwFrm::dumpInfosAsXml( xmlTextWriterPtr writer ) ...@@ -345,6 +345,7 @@ void SwFrm::dumpInfosAsXml( xmlTextWriterPtr writer )
void SwFrm::dumpAsXmlAttributes( xmlTextWriterPtr writer ) void SwFrm::dumpAsXmlAttributes( xmlTextWriterPtr writer )
{ {
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "ptr" ), "%p", this );
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "id" ), "%u", GetFrmId() ); xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "id" ), "%u", GetFrmId() );
if ( GetNext( ) ) if ( GetNext( ) )
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "next" ), "%u", GetNext()->GetFrmId() ); xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "next" ), "%u", GetNext()->GetFrmId() );
...@@ -378,6 +379,7 @@ void SwAnchoredObject::dumpAsXml( xmlTextWriterPtr writer ) ...@@ -378,6 +379,7 @@ void SwAnchoredObject::dumpAsXml( xmlTextWriterPtr writer )
writer = lcl_createDefaultWriter(); writer = lcl_createDefaultWriter();
xmlTextWriterStartElement( writer, BAD_CAST( getElementName() ) ); xmlTextWriterStartElement( writer, BAD_CAST( getElementName() ) );
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "ptr" ), "%p", this );
xmlTextWriterEndElement( writer ); xmlTextWriterEndElement( writer );
if ( bCreateWriter ) if ( bCreateWriter )
......
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