From b848a2eb7ff2d58251d1f83356c6e6e7a74f23ea Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Fri, 23 Sep 2011 17:51:41 +0200 Subject: debug support for dumping writer nodes structure Similarly to the layout debug support. F12 -> layout, Shift+F12 -> nodes. --- sw/inc/ndarr.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sw/inc/ndarr.hxx') 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 #include +#include +#include + 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 -- cgit