libetonyek::IWORKTableCellFormulaElement Class Reference

class to parse the sf:TableCellFormula element More...

#include <IWORKFormulaElement.h>

Inheritance diagram for libetonyek::IWORKTableCellFormulaElement:
libetonyek::IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > libetonyek::IWORKXMLContextEmpty libetonyek::IWORKXMLContextMinimal libetonyek::IWORKXMLContext

Public Member Functions

 IWORKTableCellFormulaElement (IWORKXMLParserState &state)
Public Member Functions inherited from libetonyek::IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState >
 IWORKXMLContextBase (IWORKXMLParserState &state)
 IWORKXMLContextBase (IWORKXMLParserState &state, const T &a)
IWORKXMLParserStategetState ()
Public Member Functions inherited from libetonyek::IWORKXMLContext
virtual ~IWORKXMLContext ()=0
virtual void CDATA (const char *value)
 Process CDATA content of an element.

Private Member Functions

void attribute (int name, const char *value) override
 Process an attribute.
IWORKXMLContextPtr_t element (int name) override
 Create a context for parsing a child element.
void endOfElement () override
 Signalize the end of an element.
const boost::optional< ID_t > & getId () const

Private Attributes

boost::optional< ID_tm_id
boost::optional< std::string > m_formula
boost::optional< std::string > m_tableId

Additional Inherited Members

Protected Member Functions inherited from libetonyek::IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState >
IWORKCollectorgetCollector () const
int getToken (const char *const value) const
bool isCollector () const
Protected Member Functions inherited from libetonyek::IWORKXMLContextEmpty
 IWORKXMLContextEmpty (IWORKXMLParserState &)
void attribute (int name, const char *value) override
 Process an attribute.
IWORKXMLContextPtr_t element (int token) override
 Create a context for parsing a child element.
void text (const char *value) override
 Process textual content of an element.
const boost::optional< ID_t > & getId () const
void setId (const char *value)
const boost::optional< ID_t > & getRef () const
Protected Member Functions inherited from libetonyek::IWORKXMLContextMinimal
 IWORKXMLContextMinimal ()
void startOfElement () override
 Signalize the start of an element.
void endOfElement () override
 Signalize the end of an element.
Protected Attributes inherited from libetonyek::IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState >
IWORKXMLParserStatem_state

Detailed Description

class to parse the sf:TableCellFormula element

Constructor & Destructor Documentation

◆ IWORKTableCellFormulaElement()

libetonyek::IWORKTableCellFormulaElement::IWORKTableCellFormulaElement ( IWORKXMLParserState & state)
explicit

Member Function Documentation

◆ attribute()

void libetonyek::IWORKTableCellFormulaElement::attribute ( int name,
const char * value )
overrideprivatevirtual

Process an attribute.

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

Implements libetonyek::IWORKXMLContext.

◆ element()

IWORKXMLContextPtr_t libetonyek::IWORKTableCellFormulaElement::element ( int name)
overrideprivatevirtual

Create a context for parsing a child element.

Returns
A new context or an empty pointer if the child element cannot be handled.

Implements libetonyek::IWORKXMLContext.

◆ endOfElement()

void libetonyek::IWORKTableCellFormulaElement::endOfElement ( )
overrideprivatevirtual

Signalize the end of an element.

Implements libetonyek::IWORKXMLContext.

◆ getId()

const boost::optional< ID_t > & libetonyek::IWORKTableCellFormulaElement::getId ( ) const
private

Referenced by endOfElement().

Member Data Documentation

◆ m_formula

boost::optional<std::string> libetonyek::IWORKTableCellFormulaElement::m_formula
private

◆ m_id

boost::optional<ID_t> libetonyek::IWORKTableCellFormulaElement::m_id
private

◆ m_tableId

boost::optional<std::string> libetonyek::IWORKTableCellFormulaElement::m_tableId
private

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

Generated for libetonyek by doxygen 1.14.0