diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-10 10:57:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-10 10:57:06 +0200 |
commit | 60366c5e3e326eb0d5b828ba8bbd81f317cd24e3 (patch) | |
tree | 94e5183599242668deadf8f6b415f3ef05058d63 /xml/details/genx/genx.h | |
parent | e8e3ce68f3ea3ccbfaaa9a189b46676b91261a65 (diff) |
Implement support for suspending/resuming indentation in serializer
Diffstat (limited to 'xml/details/genx/genx.h')
-rw-r--r-- | xml/details/genx/genx.h | 18 |
1 files changed, 18 insertions, 0 deletions
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. */ |