a structure used to store a token More...
Public Types | |
enum | Type { Function , Long , Double , String , String2 , External , Cell , CellList , Index , Jump , Empty , Missing , Error , Unknown } |
the different type More... | |
enum | Content { C_Data , C_FunctionOperator } |
the content type More... | |
Public Member Functions | |
Token () | |
constructor | |
bool | get (STOFFCellContent::FormulaInstruction &instr, bool &ignore) |
return a instruction corresponding to a token | |
bool | updateFunction () |
try to update the function/operator | |
Static Public Member Functions | |
static bool | addToken (std::vector< std::vector< Token > > &stack, Token const &token) |
a static function to recompile a formula from Polish notation | |
Public Attributes | |
Type | m_type |
the type | |
Content | m_content |
the content type | |
unsigned | m_operation |
the operation | |
long | m_longValue |
the long value | |
double | m_doubleValue |
the double value | |
librevenge::RVNGString | m_textValue |
the string value | |
STOFFVec3i | m_positions [2] |
the cells positions: col, row, tab | |
STOFFVec3b | m_relPositions [2] |
the cells relative positions | |
int | m_index |
the index | |
std::vector< int > | m_jumpPositions |
the jump position(for if, choose, ...) | |
STOFFCellContent::FormulaInstruction | m_instruction |
the final instruction | |
std::string | m_extra |
extra data | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Token const &tok) |
operator<< | |
a structure used to store a token
|
inline |
constructor
|
static |
a static function to recompile a formula from Polish notation
Referenced by StarCellFormula::readSCFormula().
bool StarCellFormulaInternal::Token::get | ( | STOFFCellContent::FormulaInstruction & | instr, |
bool & | ignore ) |
return a instruction corresponding to a token
Referenced by StarCellFormula::readSCFormula3().
bool StarCellFormulaInternal::Token::updateFunction | ( | ) |
try to update the function/operator
Referenced by StarCellFormula::readSCToken(), and StarCellFormula::readSCToken3().
|
friend |
operator<<
Content StarCellFormulaInternal::Token::m_content |
the content type
Referenced by addToken(), StarCellFormula::readSCToken(), and updateFunction().
double StarCellFormulaInternal::Token::m_doubleValue |
the double value
Referenced by get(), StarCellFormula::readSCToken(), and StarCellFormula::readSCToken3().
std::string StarCellFormulaInternal::Token::m_extra |
extra data
Referenced by StarCellFormula::readSCToken(), and StarCellFormula::readSCToken3().
int StarCellFormulaInternal::Token::m_index |
the index
STOFFCellContent::FormulaInstruction StarCellFormulaInternal::Token::m_instruction |
the final instruction
Referenced by addToken(), get(), StarCellFormula::readSCToken(), StarCellFormula::readSCToken3(), and updateFunction().
std::vector<int> StarCellFormulaInternal::Token::m_jumpPositions |
the jump position(for if, choose, ...)
Referenced by StarCellFormula::readSCToken().
long StarCellFormulaInternal::Token::m_longValue |
the long value
Referenced by addToken(), get(), StarCellFormula::readSCToken(), StarCellFormula::readSCToken3(), and updateFunction().
unsigned StarCellFormulaInternal::Token::m_operation |
the operation
Referenced by StarCellFormula::readSCToken(), StarCellFormula::readSCToken3(), and updateFunction().
STOFFVec3i StarCellFormulaInternal::Token::m_positions[2] |
the cells positions: col, row, tab
Referenced by get(), StarCellFormula::readSCToken(), and StarCellFormula::readSCToken3().
STOFFVec3b StarCellFormulaInternal::Token::m_relPositions[2] |
the cells relative positions
Referenced by get(), StarCellFormula::readSCToken(), and StarCellFormula::readSCToken3().
librevenge::RVNGString StarCellFormulaInternal::Token::m_textValue |
the string value
Referenced by get(), StarCellFormula::readSCToken(), and StarCellFormula::readSCToken3().
Type StarCellFormulaInternal::Token::m_type |
the type
Referenced by addToken(), get(), StarCellFormula::readSCFormula3(), StarCellFormula::readSCToken(), and StarCellFormula::readSCToken3().