a class to read formula in a wb1-wb3, qpw file More...
#include <QuattroFormula.h>
| Public Types | |
| typedef std::function< bool(std::shared_ptr< WPSStream > const &stream, long endPos, QuattroFormulaInternal::CellReference &ref, Vec2i const &cPos, int cSheet)> | CellReferenceFunction | 
| Public Member Functions | |
| QuattroFormulaManager (QuattroFormulaManager::CellReferenceFunction const &readCellReference, int version) | |
| constructor, version=1: means .wb1-3, version=2 means .qpw  More... | |
| void | addDLLIdName (int id, librevenge::RVNGString const &name, bool func1) | 
| add a dll's correspondance between an id and a name  More... | |
| bool | readFormula (std::shared_ptr< WPSStream > const &stream, long endPos, Vec2i const &pos, int sheetId, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error) const | 
| reads a formula  More... | |
| Private Attributes | |
| std::shared_ptr< QuattroFormulaInternal::State > | m_state | 
| the formula state  More... | |
a class to read formula in a wb1-wb3, qpw file
| typedef std::function<bool(std::shared_ptr<WPSStream> const &stream, long endPos, QuattroFormulaInternal::CellReference &ref, Vec2i const &cPos, int cSheet)> QuattroFormulaManager::CellReferenceFunction | 
| QuattroFormulaManager::QuattroFormulaManager | ( | QuattroFormulaManager::CellReferenceFunction const & | readCellReference, | 
| int | version | ||
| ) | 
constructor, version=1: means .wb1-3, version=2 means .qpw
| void QuattroFormulaManager::addDLLIdName | ( | int | id, | 
| librevenge::RVNGString const & | name, | ||
| bool | func1 | ||
| ) | 
add a dll's correspondance between an id and a name
| bool QuattroFormulaManager::readFormula | ( | std::shared_ptr< WPSStream > const & | stream, | 
| long | endPos, | ||
| Vec2i const & | pos, | ||
| int | sheetId, | ||
| std::vector< WKSContentListener::FormulaInstruction > & | formula, | ||
| std::string & | error | ||
| ) | const | 
reads a formula
| 
 | private | 
the formula state
Referenced by addDLLIdName(), and readFormula().