#include <FictionBook2ParserContext.h>
Public Member Functions | |
| FictionBook2StyleContextBase (FictionBook2ParserContext *parentContext, const FictionBook2Style &style) | |
Public Member Functions inherited from libebook::FictionBook2ParserContext | |
| FictionBook2ParserContext (FictionBook2ParserContext *parentContext, FictionBook2Collector *collector=nullptr) | |
Create a new context with parentContext as parent. More... | |
| FictionBook2XMLParserContext * | leaveContext () const override |
| Destroy this context and return parent. More... | |
| FictionBook2Collector * | getCollector () const |
| Get the collector. More... | |
| FictionBook2ParserContext * | getParentContext () const |
| Get the parent context. More... | |
Public Member Functions inherited from libebook::FictionBook2XMLParserContext | |
| virtual | ~FictionBook2XMLParserContext ()=0 |
| virtual void | startOfElement ()=0 |
| Signalize the start of an element. More... | |
Protected Member Functions | |
| FictionBook2Style & | getStyle () |
| FictionBook2TextFormat & | getTextFormat () |
| FictionBook2XMLParserContext * | element (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override |
| Create a context for parsing a child element. More... | |
| void | endOfElement () override |
| Signalize the end of an element. More... | |
| void | attribute (const FictionBook2TokenData &name, const FictionBook2TokenData *ns, const char *value) override |
| Process an attribute. More... | |
| void | endOfAttributes () override |
| Signalize the end of attributes. More... | |
| void | text (const char *value) override |
| Process textual content of an element. More... | |
Private Attributes | |
| FictionBook2Style | m_style |
| libebook::FictionBook2StyleContextBase::FictionBook2StyleContextBase | ( | FictionBook2ParserContext * | parentContext, |
| const FictionBook2Style & | style | ||
| ) |
|
overrideprotectedvirtual |
Process an attribute.
Attributes are handled to the current element's context one by one.
Implements libebook::FictionBook2XMLParserContext.
Reimplemented in libebook::FictionBook2CellContext, libebook::FictionBook2AContext, and libebook::FictionBook2ParaContextBase.
Referenced by libebook::FictionBook2ParaContextBase::attribute().
|
overrideprotectedvirtual |
Create a context for parsing a child element.
0 if the child element cannot be handled. Implements libebook::FictionBook2XMLParserContext.
Reimplemented in libebook::FictionBook2AContext.
Referenced by libebook::FictionBook2AContext::element().
|
overrideprotectedvirtual |
Signalize the end of attributes.
Implements libebook::FictionBook2XMLParserContext.
Reimplemented in libebook::FictionBook2CellContext, and libebook::FictionBook2AContext.
|
overrideprotectedvirtual |
Signalize the end of an element.
Implements libebook::FictionBook2XMLParserContext.
Reimplemented in libebook::FictionBook2CellContext, libebook::FictionBook2AContext, and libebook::FictionBook2ParaContextBase.
|
protected |
|
protected |
Referenced by libebook::FictionBook2CodeContext::startOfElement(), libebook::FictionBook2EmphasisContext::startOfElement(), libebook::FictionBook2StrikethroughContext::startOfElement(), libebook::FictionBook2StrongContext::startOfElement(), libebook::FictionBook2SubContext::startOfElement(), and libebook::FictionBook2SupContext::startOfElement().
|
overrideprotectedvirtual |
Process textual content of an element.
This function can be called more than once if the element has mixed content.
Implements libebook::FictionBook2XMLParserContext.
Reimplemented in libebook::FictionBook2AContext.
|
private |
Referenced by attribute(), getStyle(), and getTextFormat().