summaryrefslogtreecommitdiff
path: root/sw/inc/ndarr.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-09-23 17:51:41 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-09-23 18:27:57 +0200
commitb848a2eb7ff2d58251d1f83356c6e6e7a74f23ea (patch)
treee2592c62abc33fa61d203f69e27085c4271301a0 /sw/inc/ndarr.hxx
parent6cb1cb26d8b512fa91bed8eb070fb68b6c839dff (diff)
debug support for dumping writer nodes structure
Similarly to the layout debug support. F12 -> layout, Shift+F12 -> nodes.
Diffstat (limited to 'sw/inc/ndarr.hxx')
-rw-r--r--sw/inc/ndarr.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index 71c447ab7c0b..019ccb6a0f9a 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -41,6 +41,9 @@
#include <bparr.hxx>
#include <ndtyp.hxx>
+#include <libxml/encoding.h>
+#include <libxml/xmlwriter.h>
+
class Graphic;
class GraphicObject;
class String;
@@ -333,6 +336,14 @@ public:
SwNode * DocumentSectionStartNode(SwNode * pNode) const;
SwNode * DocumentSectionEndNode(SwNode * pNode) const;
+
+#if OSL_DEBUG_LEVEL > 0
+ /**
+ * Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by default)
+ * @since 3.5
+ */
+ void dumpAsXml( xmlTextWriterPtr writer = NULL );
+#endif
};
#endif