11 //#define DITA_DOC_VISITOR_TRACE(fn,op) printf("DITA_DOC_VISITOR: %s(): type=%d first=%d, last=%d text=`%s'\n", \ |
11 //#define DITA_DOC_VISITOR_TRACE(fn,op) printf("DITA_DOC_VISITOR: %s(): type=%d first=%d, last=%d text=`%s'\n", \ |
12 //fn,op->type(),op->isFirst(),op->isLast(),op->text().data()); |
12 //fn,op->type(),op->isFirst(),op->isLast(),op->text().data()); |
13 #ifdef DITA_TRACE_TO_XML |
13 #ifdef DITA_TRACE_TO_XML |
14 #define DITA_DOC_VISITOR_TRACE(fn,pNode) xmlStream.comment(QString(fn)); |
14 #define DITA_DOC_VISITOR_TRACE(fn,pNode) xmlStream.comment(QString(fn)); |
15 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) xmlStream.comment(QString(fn)); |
15 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) xmlStream.comment(QString(fn)); |
|
16 #define DITA_DOC_VISITOR_TRACE_STRING(str) xmlStream.comment(QString(str)); |
16 #else |
17 #else |
17 #define DITA_DOC_VISITOR_TRACE(fn,pNode) printf("DITA_DOC_VISITOR: `%s': kind=%d node=0x%X, parent=0x%X\n", \ |
18 #define DITA_DOC_VISITOR_TRACE(fn,pNode) printf("DITA_DOC_VISITOR: `%s': kind=%d node=0x%X, parent=0x%X\n", \ |
18 fn, pNode->kind(), pNode,pNode->parent()); |
19 fn, pNode->kind(), pNode,pNode->parent()); |
19 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) printf("DITA_DOC_VISITOR: `%s'\n", fn); |
20 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) printf("DITA_DOC_VISITOR: `%s'\n", fn); |
|
21 #define DITA_DOC_VISITOR_TRACE_STRING(str) printf("`%s'\n", str); |
20 #endif |
22 #endif |
21 #else |
23 #else |
22 #define DITA_DOC_VISITOR_TRACE(fn,op) |
24 #define DITA_DOC_VISITOR_TRACE(fn,op) |
23 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) |
25 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) |
|
26 #define DITA_DOC_VISITOR_TRACE_STRING(str) |
24 #endif |
27 #endif |
25 |
28 |
26 |
29 |
27 #endif //_XMLDITATRACE_H |
30 #endif //_XMLDITATRACE_H |