#include <FictionBook2TextContext.h>
Public Member Functions | |
| FictionBook2AContext (FictionBook2ParserContext *parentContext, const FictionBook2Style &style) | |
Public Member Functions inherited from libebook::FictionBook2StyleContextBase | |
| 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 |
Private Member Functions | |
| FictionBook2XMLParserContext * | element (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override |
| Create a context for parsing a child element. More... | |
| void | startOfElement () override |
| Signalize the start of an element. More... | |
| void | endOfElement () override |
| Signalize the end of an element. More... | |
| void | endOfAttributes () override |
| Signalize the end of attributes. More... | |
| void | attribute (const FictionBook2TokenData &name, const FictionBook2TokenData *ns, const char *value) override |
| Process an attribute. More... | |
| void | text (const char *text) override |
| Process textual content of an element. More... | |
Private Attributes | |
| std::string | m_href |
| bool | m_valid |
| bool | m_note |
Additional Inherited Members | |
Protected Member Functions inherited from libebook::FictionBook2StyleContextBase | |
| FictionBook2Style & | getStyle () |
| FictionBook2TextFormat & | getTextFormat () |
| libebook::FictionBook2AContext::FictionBook2AContext | ( | FictionBook2ParserContext * | parentContext, |
| const FictionBook2Style & | style | ||
| ) |
|
overrideprivatevirtual |
Process an attribute.
Attributes are handled to the current element's context one by one.
Reimplemented from libebook::FictionBook2StyleContextBase.
|
overrideprivatevirtual |
Create a context for parsing a child element.
0 if the child element cannot be handled. Reimplemented from libebook::FictionBook2StyleContextBase.
|
overrideprivatevirtual |
Signalize the end of attributes.
Reimplemented from libebook::FictionBook2StyleContextBase.
|
overrideprivatevirtual |
Signalize the end of an element.
Reimplemented from libebook::FictionBook2StyleContextBase.
|
overrideprivatevirtual |
Signalize the start of an element.
This can be used if initialization of the context needs virtual function calls.
Implements libebook::FictionBook2XMLParserContext.
|
overrideprivatevirtual |
Process textual content of an element.
This function can be called more than once if the element has mixed content.
Reimplemented from libebook::FictionBook2StyleContextBase.
|
private |
Referenced by attribute(), endOfAttributes(), and endOfElement().
|
private |
Referenced by attribute(), element(), endOfAttributes(), endOfElement(), and text().
|
private |
Referenced by attribute(), and endOfAttributes().