libebook::FictionBook2CellContext Class Reference

#include <FictionBook2TableContext.h>

Inheritance diagram for libebook::FictionBook2CellContext:
libebook::FictionBook2StyleContextBase libebook::FictionBook2ParserContext libebook::FictionBook2XMLParserContext

Public Member Functions

 FictionBook2CellContext (std::shared_ptr< FictionBook2ParserContext > parentContext, const std::shared_ptr< FictionBook2TableModel > &model, const FictionBook2BlockFormat &format, bool header)
 
- Public Member Functions inherited from libebook::FictionBook2StyleContextBase
 FictionBook2StyleContextBase (std::shared_ptr< FictionBook2ParserContext > parentContext, const FictionBook2Style &style)
 
- Public Member Functions inherited from libebook::FictionBook2ParserContext
 FictionBook2ParserContext (std::shared_ptr< FictionBook2ParserContext > parentContext, FictionBook2Collector *collector=nullptr)
 Create a new context with parentContext as parent. More...
 
virtual ~FictionBook2ParserContext ()
 
std::shared_ptr< FictionBook2XMLParserContextleaveContext () const override
 Destroy this context and return parent. More...
 
FictionBook2CollectorgetCollector () const
 Get the collector. More...
 
std::shared_ptr< FictionBook2ParserContextgetParentContext () const
 Get the parent context. More...
 
- Public Member Functions inherited from libebook::FictionBook2XMLParserContext
virtual ~FictionBook2XMLParserContext ()=0
 

Private Member Functions

 FictionBook2CellContext (const FictionBook2CellContext &other)
 
FictionBook2CellContextoperator= (const FictionBook2CellContext &other)
 
void startOfElement () override
 Signalize the start of an 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 openCell ()
 

Private Attributes

const std::shared_ptr< FictionBook2TableModelm_model
 
const bool m_header
 
bool m_opened
 
int m_columnSpan
 
int m_rowSpan
 
size_t m_coveredColumns
 

Additional Inherited Members

- Protected Member Functions inherited from libebook::FictionBook2StyleContextBase
FictionBook2StylegetStyle ()
 
FictionBook2TextFormatgetTextFormat ()
 
std::shared_ptr< FictionBook2XMLParserContextelement (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override
 Create a context for parsing a child element. More...
 
void text (const char *value) override
 Process textual content of an element. More...
 

Constructor & Destructor Documentation

libebook::FictionBook2CellContext::FictionBook2CellContext ( const FictionBook2CellContext other)
private
libebook::FictionBook2CellContext::FictionBook2CellContext ( std::shared_ptr< FictionBook2ParserContext parentContext,
const std::shared_ptr< FictionBook2TableModel > &  model,
const FictionBook2BlockFormat format,
bool  header 
)

Member Function Documentation

void libebook::FictionBook2CellContext::attribute ( const FictionBook2TokenData name,
const FictionBook2TokenData ns,
const char *  value 
)
overrideprivatevirtual

Process an attribute.

Attributes are handled to the current element's context one by one.

Reimplemented from libebook::FictionBook2StyleContextBase.

void libebook::FictionBook2CellContext::endOfAttributes ( )
overrideprivatevirtual

Signalize the end of attributes.

Reimplemented from libebook::FictionBook2StyleContextBase.

void libebook::FictionBook2CellContext::endOfElement ( )
overrideprivatevirtual

Signalize the end of an element.

Reimplemented from libebook::FictionBook2StyleContextBase.

void libebook::FictionBook2CellContext::openCell ( )
private

Referenced by endOfAttributes(), and endOfElement().

FictionBook2CellContext& libebook::FictionBook2CellContext::operator= ( const FictionBook2CellContext other)
private
void libebook::FictionBook2CellContext::startOfElement ( )
overrideprivatevirtual

Signalize the start of an element.

This can be used if initialization of the context needs virtual function calls.

Implements libebook::FictionBook2XMLParserContext.

Member Data Documentation

int libebook::FictionBook2CellContext::m_columnSpan
private

Referenced by attribute(), and openCell().

size_t libebook::FictionBook2CellContext::m_coveredColumns
private

Referenced by endOfElement(), and openCell().

const bool libebook::FictionBook2CellContext::m_header
private
const std::shared_ptr<FictionBook2TableModel> libebook::FictionBook2CellContext::m_model
private

Referenced by openCell().

bool libebook::FictionBook2CellContext::m_opened
private

Referenced by endOfElement(), and openCell().

int libebook::FictionBook2CellContext::m_rowSpan
private

Referenced by attribute(), and openCell().


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

Generated for libe-book by doxygen 1.8.10