It stores the XML data and, when wanted, does its parsing. More...
#include <ODi_Postpone_ListenerState.h>
Public Member Functions | |
ODi_Postpone_ListenerState (ODi_ListenerState *pParserState, bool bDeleteWhenPop, ODi_ElementStack &rElementStack) | |
Constructor. | |
virtual | ~ODi_Postpone_ListenerState () |
Destructor. | |
void | startElement (const gchar *pName, const gchar **ppAtts, ODi_ListenerStateAction &rAction) |
void | endElement (const gchar *pName, ODi_ListenerStateAction &rAction) |
void | charData (const gchar *pBuffer, int length) |
ODi_ListenerState * | getParserState () |
bool | getDeleteParserStateWhenPop () const |
const ODi_XMLRecorder * | getXMLRecorder () const |
Private Attributes | |
ODi_XMLRecorder | m_xmlRecorder |
ODi_ListenerState * | m_pParserState |
bool | m_bDeleteParserStateWhenPop |
UT_uint32 | m_elementStackCount |
It stores the XML data and, when wanted, does its parsing.
This class was created due to a issue with headers/footers parsing. They are defined on the styles stream but their corresponding AbiWord sections can only be added after the definition of all styles, page size and (I think) the sections of the text content.
ODi_Postpone_ListenerState::ODi_Postpone_ListenerState | ( | ODi_ListenerState * | pParserState, | |
bool | bDeleteWhenPop, | |||
ODi_ElementStack & | rElementStack | |||
) |
Constructor.
References m_bDeleteParserStateWhenPop, m_pParserState, and UT_ASSERT.
ODi_Postpone_ListenerState::~ODi_Postpone_ListenerState | ( | ) | [virtual] |
Destructor.
void ODi_Postpone_ListenerState::charData | ( | const gchar * | pBuffer, | |
int | length | |||
) | [virtual] |
Implements ODi_ListenerState.
References ODi_XMLRecorder::charData(), and m_xmlRecorder.
void ODi_Postpone_ListenerState::endElement | ( | const gchar * | pName, | |
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
References ODi_XMLRecorder::endElement(), m_elementStackCount, m_xmlRecorder, and ODi_ListenerStateAction::popState().
bool ODi_Postpone_ListenerState::getDeleteParserStateWhenPop | ( | ) | const [inline] |
References m_bDeleteParserStateWhenPop.
Referenced by ODi_StreamListener::_resumeParsing().
ODi_ListenerState* ODi_Postpone_ListenerState::getParserState | ( | ) | [inline] |
References m_pParserState.
Referenced by ODi_StreamListener::_handleStateAction(), and ODi_StreamListener::_resumeParsing().
const ODi_XMLRecorder* ODi_Postpone_ListenerState::getXMLRecorder | ( | ) | const [inline] |
References m_xmlRecorder.
Referenced by ODi_StreamListener::_resumeParsing().
void ODi_Postpone_ListenerState::startElement | ( | const gchar * | pName, | |
const gchar ** | ppAtts, | |||
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
References m_elementStackCount, m_xmlRecorder, and ODi_XMLRecorder::startElement().
bool ODi_Postpone_ListenerState::m_bDeleteParserStateWhenPop [private] |
Referenced by getDeleteParserStateWhenPop(), and ODi_Postpone_ListenerState().
Referenced by endElement(), and startElement().
Referenced by getParserState(), and ODi_Postpone_ListenerState().
Referenced by charData(), endElement(), getXMLRecorder(), and startElement().