From 60366c5e3e326eb0d5b828ba8bbd81f317cd24e3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 10 Aug 2015 10:57:06 +0200 Subject: Implement support for suspending/resuming indentation in serializer --- xml/details/genx/genx.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'xml/details/genx/genx.h') diff --git a/xml/details/genx/genx.h b/xml/details/genx/genx.h index e55b467..89f0637 100644 --- a/xml/details/genx/genx.h +++ b/xml/details/genx/genx.h @@ -118,6 +118,24 @@ genxStatus genxSetPrettyPrint(genxWriter w, int indentation); int genxGetPrettyPrint(genxWriter w); /* + * Suspend/resume pretty-printing. Pretty-printing can be suspended + * only inside an element and, unless explicitly resumed, it will + * remain suspended until the end of that element. You should only + * explicitly resume pretty-printing at the element nesting level + * of suspension. If pretty-printing is already suspended at an + * outer nesting level, then subsequent calls to suspend/resume + * are ignored. The PrettyPrintSuspended() function can be used + * to check if pretty-printing is currently suspended. If it is + * not, then this function returns 0. Otherwise, it returns the + * level at which pretty-printing was suspended, with root element + * being level 1. + */ +genxStatus genxSuspendPrettyPrint(genxWriter w); +genxStatus genxResumePrettyPrint(genxWriter w); +int genxPrettyPrintSuspended(genxWriter w); + + +/* * Set/get canonicalization. If true, then output explicit closing * tags and sort attributes. Default is false. */ -- cgit v1.1