sw/source/core/docnode/node.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit c86a47a9d3debbc7e8ee6247f573e7f98c611f19
Author:     Miklos Vajna <vmik...@collabora.co.uk>
AuthorDate: Tue Aug 7 14:12:07 2018 +0200
Commit:     Miklos Vajna <vmik...@collabora.co.uk>
CommitDate: Tue Aug 7 16:19:14 2018 +0200

    sw doc model xml dump: handle frame format of table boxes
    
    Shows e.g. table cell borders.
    
    Change-Id: Ic93fb8bcb11b1d5dc0a3eab88ac7fa33672d177b
    Reviewed-on: https://gerrit.libreoffice.org/58681
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index 7abe6c8b07e9..66bd7395d990 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -971,6 +971,13 @@ void SwStartNode::dumpAsXml(xmlTextWriterPtr pWriter) const
         
GetTableNode()->GetTable().GetFrameFormat()->GetAttrSet().dumpAsXml(pWriter);
         xmlTextWriterEndElement(pWriter);
     }
+    else if (GetStartNodeType() == SwTableBoxStartNode)
+    {
+        xmlTextWriterStartElement(pWriter, BAD_CAST("attrset"));
+        if (SwTableBox* pBox = GetTableBox())
+            pBox->GetFrameFormat()->GetAttrSet().dumpAsXml(pWriter);
+        xmlTextWriterEndElement(pWriter);
+    }
 
     // xmlTextWriterEndElement(pWriter); - it is a start node, so don't end, 
will make xml better nested
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to