#include <FB2ParserContext.h>
Public Member Functions | |
FB2StyleContextBase (FB2ParserContext *parentContext, const FB2Style &style) | |
Protected Member Functions | |
FB2Style & | getStyle () |
FB2TextFormat & | getTextFormat () |
Private Member Functions | |
virtual FB2XMLParserContext * | element (const EBOOKToken &name, const EBOOKToken &ns) |
Create a context for parsing a child element. | |
virtual void | endOfElement () |
Signalize the end of an element. | |
virtual void | attribute (const EBOOKToken &name, const EBOOKToken *ns, const char *value) |
Process an attribute. | |
virtual void | endOfAttributes () |
Signalize the end of attributes. | |
virtual void | text (const char *value) |
Process textual content of an element. | |
Private Attributes | |
FB2Style | m_style |
libebook::FB2StyleContextBase::FB2StyleContextBase | ( | FB2ParserContext * | parentContext, |
const FB2Style & | style | ||
) |
void libebook::FB2StyleContextBase::attribute | ( | const EBOOKToken & | name, |
const EBOOKToken * | ns, | ||
const char * | value | ||
) | [private, virtual] |
Process an attribute.
Attributes are handled to the current element's context one by one.
Implements libebook::FB2XMLParserContext.
Reimplemented in libebook::FB2CellContext, libebook::FB2AContext, and libebook::FB2ParaContextBase.
FB2XMLParserContext * libebook::FB2StyleContextBase::element | ( | const EBOOKToken & | name, |
const EBOOKToken & | ns | ||
) | [private, virtual] |
Create a context for parsing a child element.
0
if the child element cannot be handled. Implements libebook::FB2XMLParserContext.
void libebook::FB2StyleContextBase::endOfAttributes | ( | ) | [private, virtual] |
Signalize the end of attributes.
Implements libebook::FB2XMLParserContext.
Reimplemented in libebook::FB2CellContext, and libebook::FB2AContext.
void libebook::FB2StyleContextBase::endOfElement | ( | ) | [private, virtual] |
Signalize the end of an element.
Implements libebook::FB2XMLParserContext.
Reimplemented in libebook::FB2CellContext, and libebook::FB2ParaContextBase.
FB2Style & libebook::FB2StyleContextBase::getStyle | ( | ) | [protected] |
Referenced by element(), libebook::FB2ParaContextBase::startOfElement(), libebook::FB2AContext::text(), and text().
FB2TextFormat & libebook::FB2StyleContextBase::getTextFormat | ( | ) | [protected] |
void libebook::FB2StyleContextBase::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.
Implements libebook::FB2XMLParserContext.
Reimplemented in libebook::FB2AContext.
Referenced by getStyle(), and getTextFormat().