#include <FB2TableContext.h>
Public Member Functions | |
FB2CellContext (FB2ParserContext *parentContext, FB2TableModel *model, const FB2BlockFormat &format, bool header) | |
Private Member Functions | |
FB2CellContext (const FB2CellContext &other) | |
FB2CellContext & | operator= (const FB2CellContext &other) |
virtual void | startOfElement () |
Signalize the start of an element. | |
virtual void | endOfElement () |
Signalize the end of an element. | |
virtual void | attribute (const EBOOKToken &name, const EBOOKToken *ns, const char *value) |
Process an attribute. | |
virtual void | endOfAttributes () |
Signalize the end of attributes. | |
void | openCell () |
Private Attributes | |
FB2TableModel *const | m_model |
const bool | m_header |
bool | m_opened |
int | m_columnSpan |
int | m_rowSpan |
size_t | m_coveredColumns |
libebook::FB2CellContext::FB2CellContext | ( | const FB2CellContext & | other | ) | [private] |
libebook::FB2CellContext::FB2CellContext | ( | FB2ParserContext * | parentContext, |
FB2TableModel * | model, | ||
const FB2BlockFormat & | format, | ||
bool | header | ||
) |
void libebook::FB2CellContext::attribute | ( | const EBOOKToken & | name, |
const EBOOKToken * | ns, | ||
const char * | value | ||
) | [private, virtual] |
Process an attribute.
Attributes are handled to the current element's context one by one.
Reimplemented from libebook::FB2StyleContextBase.
void libebook::FB2CellContext::endOfAttributes | ( | ) | [private, virtual] |
Signalize the end of attributes.
Reimplemented from libebook::FB2StyleContextBase.
void libebook::FB2CellContext::endOfElement | ( | ) | [private, virtual] |
Signalize the end of an element.
Reimplemented from libebook::FB2StyleContextBase.
void libebook::FB2CellContext::openCell | ( | ) | [private] |
Referenced by endOfAttributes(), and endOfElement().
FB2CellContext& libebook::FB2CellContext::operator= | ( | const FB2CellContext & | other | ) | [private] |
void libebook::FB2CellContext::startOfElement | ( | ) | [private, virtual] |
Signalize the start of an element.
This can be used if initialization of the context needs virtual function calls.
Implements libebook::FB2XMLParserContext.
int libebook::FB2CellContext::m_columnSpan [private] |
Referenced by attribute(), and openCell().
size_t libebook::FB2CellContext::m_coveredColumns [private] |
Referenced by endOfElement(), and openCell().
const bool libebook::FB2CellContext::m_header [private] |
FB2TableModel* const libebook::FB2CellContext::m_model [private] |
Referenced by openCell().
bool libebook::FB2CellContext::m_opened [private] |
Referenced by endOfElement(), and openCell().
int libebook::FB2CellContext::m_rowSpan [private] |
Referenced by attribute(), and openCell().