summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/table/swtable.cxx28
1 files changed, 19 insertions, 9 deletions
diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index c71aec30e7aa..53ab9bbc465b 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -1745,17 +1745,10 @@ void SwTable::dumpAsXml(xmlTextWriterPtr pWriter) const
(void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwTable"));
(void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
(void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("table-format"), "%p", GetFrameFormat());
+ (void)xmlTextWriterStartElement(pWriter, BAD_CAST("lines"));
for (const auto& pLine : m_aLines)
{
- (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwTableLine"));
- (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", pLine);
- pLine->GetFrameFormat()->dumpAsXml(pWriter);
- (void)xmlTextWriterEndElement(pWriter);
- }
- (void)xmlTextWriterStartElement(pWriter, BAD_CAST("tab-sort-content-boxes"));
- for (const auto& pBox : m_TabSortContentBoxes)
- {
- pBox->dumpAsXml(pWriter);
+ pLine->dumpAsXml(pWriter);
}
(void)xmlTextWriterEndElement(pWriter);
(void)xmlTextWriterEndElement(pWriter);
@@ -2001,6 +1994,23 @@ RedlineType SwTableLine::GetRedlineType() const
return RedlineType::None;
}
+void SwTableLine::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwTableLine"));
+ (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
+
+ GetFrameFormat()->dumpAsXml(pWriter);
+
+ (void)xmlTextWriterStartElement(pWriter, BAD_CAST("boxes"));
+ for (const auto& pBox : m_aBoxes)
+ {
+ pBox->dumpAsXml(pWriter);
+ }
+ (void)xmlTextWriterEndElement(pWriter);
+
+ (void)xmlTextWriterEndElement(pWriter);
+}
+
SwTableBox::SwTableBox( SwTableBoxFormat* pFormat, sal_uInt16 nLines, SwTableLine *pUp )
: SwClient(nullptr)
, m_aLines()