#include <FB2TextContext.h>
Public Member Functions | |
FB2AContext (FB2ParserContext *parentContext, const FB2Style &style) | |
Private Member Functions | |
virtual void | startOfElement () |
Signalize the start of an element. | |
virtual void | endOfAttributes () |
Signalize the end of attributes. | |
virtual void | attribute (const FB2TokenData &name, const FB2TokenData *ns, const char *value) |
Process an attribute. | |
virtual void | text (const char *text) |
Process textual content of an element. | |
Private Attributes | |
std::string | m_href |
bool | m_valid |
bool | m_note |
libebook::FB2AContext::FB2AContext | ( | FB2ParserContext * | parentContext, |
const FB2Style & | style | ||
) |
void libebook::FB2AContext::attribute | ( | const FB2TokenData & | name, |
const FB2TokenData * | ns, | ||
const char * | value | ||
) | [private, virtual] |
Process an attribute.
Attributes are handled to the current element's context one by one.
Reimplemented from libebook::FB2StyleContextBase.
void libebook::FB2AContext::endOfAttributes | ( | ) | [private, virtual] |
Signalize the end of attributes.
Reimplemented from libebook::FB2StyleContextBase.
void libebook::FB2AContext::startOfElement | ( | ) | [private, virtual] |
Signalize the start of an element.
This can be used if initialization of the context needs virtual function calls.
Implements libebook::FB2XMLParserContext.
void libebook::FB2AContext::text | ( | const char * | value | ) | [private, virtual] |
Process textual content of an element.
This function can be called more than once if the element has mixed content.
Reimplemented from libebook::FB2StyleContextBase.
std::string libebook::FB2AContext::m_href [private] |
Referenced by attribute(), endOfAttributes(), and text().
bool libebook::FB2AContext::m_note [private] |
Referenced by attribute(), endOfAttributes(), and text().
bool libebook::FB2AContext::m_valid [private] |
Referenced by attribute(), and endOfAttributes().