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 const int lc = m_impl->m_callStack.top(); \ 52 m_impl->m_callbackMisses++; \ 53 m_impl->m_callStack.pop(); \ 64 CALLBACK_OPEN_ANIMATION_GROUP,
65 CALLBACK_OPEN_ANIMATION_ITERATION,
66 CALLBACK_OPEN_ANIMATION_SEQUENCE,
68 CALLBACK_OPEN_CHART_TEXTOBJECT,
69 CALLBACK_OPEN_CHART_PLOTAREA,
70 CALLBACK_OPEN_CHART_SERIE,
71 CALLBACK_OPEN_COMMENT,
72 CALLBACK_OPEN_ENDNOTE,
73 CALLBACK_OPEN_FOOTNOTE,
75 CALLBACK_OPEN_GRAPHIC,
76 CALLBACK_OPEN_GRAPHIC_LAYER,
77 CALLBACK_OPEN_GRAPHIC_PAGE,
79 CALLBACK_OPEN_HEADER_FOOTER,
81 CALLBACK_OPEN_LIST_ELEMENT,
82 CALLBACK_OPEN_ORDERED_LIST_LEVEL,
83 CALLBACK_OPEN_PAGE_SPAN,
84 CALLBACK_OPEN_PARAGRAPH,
85 CALLBACK_OPEN_SECTION,
87 CALLBACK_OPEN_SHEET_CELL,
88 CALLBACK_OPEN_SHEET_ROW,
91 CALLBACK_OPEN_TABLE_CELL,
92 CALLBACK_OPEN_TABLE_ROW,
93 CALLBACK_OPEN_TEXT_BOX,
94 CALLBACK_OPEN_UNORDERED_LIST_LEVEL,
95 CALLBACK_START_COMMENT,
96 CALLBACK_START_DOCUMENT,
97 CALLBACK_START_EMBEDDED_GRAPHICS,
101 CALLBACK_START_MASTER_PAGE,
102 CALLBACK_START_SLIDE,
103 CALLBACK_START_MASTER_SLIDE,
104 CALLBACK_START_TEXT_OBJECT
126 if (m_indent > 0) m_indent--;
129 void iprintf(
const char *format, ...);
130 void iuprintf(
const char *format, ...);
131 void idprintf(
const char *format, ...);
136 #endif // RVNGRAWGENERATORBASE_H Definition: RVNGBinaryData.cpp:38
void iuprintf(const char *format,...)
Definition: RVNGRawGeneratorBase.cpp:57
void indentDown()
Definition: RVNGRawGeneratorBase.h:124
int m_callbackMisses
Definition: RVNGRawGeneratorBase.h:115
bool m_printCallgraphScore
Definition: RVNGRawGeneratorBase.h:117
RVNGCallback
Definition: RVNGRawGeneratorBase.h:62
virtual ~RVNGRawGeneratorBase()
Definition: RVNGRawGeneratorBase.cpp:40
void iprintf(const char *format,...)
Definition: RVNGRawGeneratorBase.cpp:44
void indentUp()
Definition: RVNGRawGeneratorBase.h:120
bool m_atLeastOneCallback
Definition: RVNGRawGeneratorBase.h:116
Definition: RVNGRawGeneratorBase.h:109
void idprintf(const char *format,...)
Definition: RVNGRawGeneratorBase.cpp:69
std::stack< int > m_callStack
Definition: RVNGRawGeneratorBase.h:118
RVNGRawGeneratorBase(bool printCallgraphScore)
Definition: RVNGRawGeneratorBase.cpp:31
int m_indent
Definition: RVNGRawGeneratorBase.h:114