libebook::FB2StyleContextBase Class Reference

#include <FB2ParserContext.h>

Inheritance diagram for libebook::FB2StyleContextBase:
libebook::FB2ParserContext libebook::FB2XMLParserContext libebook::FB2AContext libebook::FB2CellContext libebook::FB2CodeContext libebook::FB2EmphasisContext libebook::FB2ParaContextBase libebook::FB2StrikethroughContext libebook::FB2StrongContext libebook::FB2StyleContext libebook::FB2SubContext libebook::FB2SupContext

List of all members.

Public Member Functions

 FB2StyleContextBase (FB2ParserContext *parentContext, const FB2Style &style)

Protected Member Functions

FB2StylegetStyle ()
FB2TextFormatgetTextFormat ()
virtual FB2XMLParserContextelement (const FB2TokenData &name, const FB2TokenData &ns)
 Create a context for parsing a child element.
virtual void endOfElement ()
 Signalize the end of an element.
virtual void attribute (const FB2TokenData &name, const FB2TokenData *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

Constructor & Destructor Documentation


Member Function Documentation

void libebook::FB2StyleContextBase::attribute ( const FB2TokenData name,
const FB2TokenData ns,
const char *  value 
) [protected, 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 FB2TokenData name,
const FB2TokenData ns 
) [protected, virtual]

Create a context for parsing a child element.

Returns:
A new context or 0 if the child element cannot be handled.

Implements libebook::FB2XMLParserContext.

void libebook::FB2StyleContextBase::endOfAttributes ( ) [protected, virtual]

Signalize the end of attributes.

Implements libebook::FB2XMLParserContext.

Reimplemented in libebook::FB2CellContext, and libebook::FB2AContext.

void libebook::FB2StyleContextBase::endOfElement ( ) [protected, virtual]

Signalize the end of an element.

Implements libebook::FB2XMLParserContext.

Reimplemented in libebook::FB2CellContext, and libebook::FB2ParaContextBase.

void libebook::FB2StyleContextBase::text ( const char *  value) [protected, 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.


Member Data Documentation


The documentation for this class was generated from the following files: