#include <FictionBook2TextContext.h>
Public Member Functions | |
| FictionBook2InlineImageContext (FictionBook2ParserContext *parentContext, const FictionBook2Style &style) | |
Public Member Functions inherited from libebook::FictionBook2DataContextBase | |
| FictionBook2DataContextBase (FictionBook2ParserContext *parentContext) | |
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 | |
| 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... | |
Private Attributes | |
| const FictionBook2Style & | m_style |
| std::string | m_href |
| std::string | m_altText |
| bool | m_valid |
| libebook::FictionBook2InlineImageContext::FictionBook2InlineImageContext | ( | FictionBook2ParserContext * | parentContext, |
| const FictionBook2Style & | style | ||
| ) |
|
overrideprivatevirtual |
Process an attribute.
Attributes are handled to the current element's context one by one.
Implements libebook::FictionBook2XMLParserContext.
|
overrideprivatevirtual |
Signalize the end of attributes.
Reimplemented from libebook::FictionBook2DataContextBase.
|
overrideprivatevirtual |
Signalize the end of an element.
Implements libebook::FictionBook2XMLParserContext.
|
overrideprivatevirtual |
Signalize the start of an element.
This can be used if initialization of the context needs virtual function calls.
Reimplemented from libebook::FictionBook2DataContextBase.
|
private |
Referenced by attribute(), and endOfElement().
|
private |
Referenced by attribute(), and endOfElement().
|
private |
Referenced by endOfElement().
|
private |
Referenced by attribute(), and endOfElement().