[Libreoffice-commits] .: sw/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Thu Feb 16 00:42:47 PST 2012


 sw/source/core/text/xmldump.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 1087afd9135b54e83c0ec3fa9aae19ac6c2d9c77
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Thu Feb 16 09:26:27 2012 +0100

    sw: mention node indexes in layout xml dump

diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 25e8347..3530753 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -334,6 +334,12 @@ void SwFrm::dumpAsXmlAttributes( xmlTextWriterPtr writer )
     xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "prev" ), "%p", GetPrev() );
     xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "upper" ), "%p", this->GetUpper() );
     xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "lower" ), "%p", this->GetLower() );
+    if ( IsTxtFrm(  ) )
+    {
+        SwTxtFrm *pTxtFrm = ( SwTxtFrm * ) this;
+        SwTxtNode *pTxtNode = pTxtFrm->GetTxtNode();
+        xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "txtNodeIndex" ), "%lu", pTxtNode->GetIndex() );
+    }
 }
 
 void SwFrm::dumpChildrenAsXml( xmlTextWriterPtr writer )


More information about the Libreoffice-commits mailing list