summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-02-16 09:26:27 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-02-16 09:40:51 +0100
commit1087afd9135b54e83c0ec3fa9aae19ac6c2d9c77 (patch)
treec31032e29cea792421399638b2a759bc49e7f913 /sw
parent3ac780d8a2f8d1b94e9b4776d7f556274d3197dc (diff)
sw: mention node indexes in layout xml dump
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/xmldump.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 25e83475d1ba..3530753a7402 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 )