21 #ifndef RVNGRAWGENERATORBASE_H
22 #define RVNGRAWGENERATORBASE_H
27 #ifdef RVNG_CALLGRAPH_ENTER
28 #warning who defined RVNG_CALLGRAPH_ENTER?
29 #undef RVNG_CALLGRAPH_ENTER
32 #define RVNG_CALLGRAPH_ENTER(M, L) \
33 m_impl->m_atLeastOneCallback = true; \
34 if (!m_impl->m_printCallgraphScore) \
37 m_impl->m_callStack.push(L);
39 #ifdef RVNG_CALLGRAPH_LEAVE
40 #warning who defined RVNG_CALLGRAPH_LEAVE?
41 #undef RVNG_CALLGRAPH_LEAVE
44 #define RVNG_CALLGRAPH_LEAVE(M, L) \
45 m_impl->m_atLeastOneCallback = true; \
46 if (!m_impl->m_printCallgraphScore) \
50 if (m_impl->m_callStack.empty()) \
52 m_impl->m_callbackMisses++; \
56 const int lc = m_impl->m_callStack.top(); \
58 m_impl->m_callbackMisses++; \
59 m_impl->m_callStack.pop(); \
71 CALLBACK_OPEN_ANIMATION_GROUP,
72 CALLBACK_OPEN_ANIMATION_ITERATION,
73 CALLBACK_OPEN_ANIMATION_SEQUENCE,
75 CALLBACK_OPEN_CHART_TEXTOBJECT,
76 CALLBACK_OPEN_CHART_PLOTAREA,
77 CALLBACK_OPEN_CHART_SERIE,
78 CALLBACK_OPEN_COMMENT,
79 CALLBACK_OPEN_ENDNOTE,
80 CALLBACK_OPEN_FOOTNOTE,
82 CALLBACK_OPEN_GRAPHIC,
83 CALLBACK_OPEN_GRAPHIC_LAYER,
84 CALLBACK_OPEN_GRAPHIC_PAGE,
86 CALLBACK_OPEN_HEADER_FOOTER,
88 CALLBACK_OPEN_LIST_ELEMENT,
89 CALLBACK_OPEN_ORDERED_LIST_LEVEL,
90 CALLBACK_OPEN_PAGE_SPAN,
91 CALLBACK_OPEN_PARAGRAPH,
92 CALLBACK_OPEN_SECTION,
94 CALLBACK_OPEN_SHEET_CELL,
95 CALLBACK_OPEN_SHEET_ROW,
98 CALLBACK_OPEN_TABLE_CELL,
99 CALLBACK_OPEN_TABLE_ROW,
100 CALLBACK_OPEN_TEXT_BOX,
101 CALLBACK_OPEN_UNORDERED_LIST_LEVEL,
102 CALLBACK_START_COMMENT,
103 CALLBACK_START_DOCUMENT,
104 CALLBACK_START_EMBEDDED_GRAPHICS,
105 CALLBACK_START_LAYER,
106 CALLBACK_START_NOTES,
108 CALLBACK_START_MASTER_PAGE,
109 CALLBACK_START_SLIDE,
110 CALLBACK_START_MASTER_SLIDE,
111 CALLBACK_START_TEXT_OBJECT
133 if (m_indent > 0) m_indent--;
138 void idprintf(const
char *format, ...) REVENGE_ATTRIBUTE_PRINTF(2, 3);
143 #endif // RVNGRAWGENERATORBASE_H
void void iuprintf(const char *format,...) REVENGE_ATTRIBUTE_PRINTF(2
Definition: RVNGRawGeneratorBase.cpp:57
Definition: RVNGBinaryData.cpp:38
void void void idprintf(const char *format,...) REVENGE_ATTRIBUTE_PRINTF(2
Definition: RVNGRawGeneratorBase.cpp:69
#define REVENGE_ATTRIBUTE_PRINTF(fmt, arg)
Definition: librevenge-api.h:41
void indentDown()
Definition: RVNGRawGeneratorBase.h:131
int m_callbackMisses
Definition: RVNGRawGeneratorBase.h:122
bool m_printCallgraphScore
Definition: RVNGRawGeneratorBase.h:124
virtual ~RVNGRawGeneratorBase()
Definition: RVNGRawGeneratorBase.cpp:40
void iprintf(const char *format,...) REVENGE_ATTRIBUTE_PRINTF(2
Definition: RVNGRawGeneratorBase.cpp:44
void indentUp()
Definition: RVNGRawGeneratorBase.h:127
bool m_atLeastOneCallback
Definition: RVNGRawGeneratorBase.h:123
Definition: RVNGRawGeneratorBase.h:116
std::stack< int > m_callStack
Definition: RVNGRawGeneratorBase.h:125
RVNGRawGeneratorBase(bool printCallgraphScore)
Definition: RVNGRawGeneratorBase.cpp:31
int m_indent
Definition: RVNGRawGeneratorBase.h:121