summaryrefslogtreecommitdiff
path: root/sw/source/filter/indexing/IndexingExport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/indexing/IndexingExport.cxx')
-rw-r--r--sw/source/filter/indexing/IndexingExport.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/sw/source/filter/indexing/IndexingExport.cxx b/sw/source/filter/indexing/IndexingExport.cxx
index b02bef0c9fe2..17a1670bd73c 100644
--- a/sw/source/filter/indexing/IndexingExport.cxx
+++ b/sw/source/filter/indexing/IndexingExport.cxx
@@ -56,8 +56,11 @@ public:
{
handleTableNode(pNode->GetTableNode());
}
-
- if (pNode->IsEndNode())
+ else if (pNode->IsSectionNode())
+ {
+ handleSectionNode(pNode->GetSectionNode());
+ }
+ else if (pNode->IsEndNode())
{
handleEndNode(pNode->GetEndNode());
}
@@ -138,6 +141,15 @@ public:
maNodeStack.push_back(pTableNode);
}
+ void handleSectionNode(SwSectionNode* pSectionNode)
+ {
+ m_rXmlWriter.startElement("section");
+ m_rXmlWriter.attribute("index", pSectionNode->GetIndex());
+ m_rXmlWriter.attribute("name", pSectionNode->GetSection().GetSectionName());
+
+ maNodeStack.push_back(pSectionNode);
+ }
+
void handleEndNode(SwEndNode* pEndNode)
{
if (!maNodeStack.empty() && pEndNode->StartOfSectionNode() == maNodeStack.back())