LibreOffice Module lotuswordpro (master) 1
|
#include <lwptblformula.hxx>
Public Member Functions | |
LwpFormulaInfo (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
OUString | Convert (LwpTableLayout *pCellsMap) |
Make the formula string. More... | |
void | Convert (XFCell *pCell, LwpTableLayout *pCellsMap=nullptr) override |
Fill the XFCell content. More... | |
Public Member Functions inherited from LwpCellList | |
LwpCellList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual void | Parse (IXFStream *pOutputStream) override |
@descr default parse function More... | |
LwpObjectID const & | GetNextID () |
sal_uInt8 | GetColumnID () const |
virtual void | Convert (XFCell *pCell, LwpTableLayout *pCellsMap=nullptr) |
Public Member Functions inherited from LwpDLVList | |
LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
LwpObjectID & | GetNext () |
LwpObjectID & | GetPrevious () |
Public Member Functions inherited from LwpObject | |
LwpObject (LwpObjectHeader objHdr, LwpSvStream *pStrm) | |
@descr construct lwpobject from stream More... | |
void | QuickRead () |
@descr QuickRead template More... | |
void | DoRegisterStyle () |
void | DoParse (IXFStream *pOutputStream) |
void | DoXFConvert (XFContentContainer *pCont) |
LwpFoundry * | GetFoundry () |
void | SetFoundry (LwpFoundry *pFoundry) |
LwpObjectID & | GetObjectID () |
sal_uInt32 | GetTag () const |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Member Functions | |
void | Read () override |
@descr Read LwpDLVList data from object stream More... | |
void | ReadCellID () |
void | ReadText () |
Need more effort for unicode. More... | |
void | ReadCellRange () |
void | ReadExpression () |
Read expression from wordpro file. More... | |
void | ReadArguments (LwpFormulaFunc &aFunc) |
Read arguments of functions from wordpro file. More... | |
virtual | ~LwpFormulaInfo () override |
void | ReadConst () |
void | MarkUnsupported (sal_uInt16 TokenType) |
Private Attributes | |
bool | m_bSupported |
std::vector< std::unique_ptr< LwpFormulaArg > > | m_aStack |
sal_uInt16 | m_nFormulaRow |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from LwpCellList | |
virtual | ~LwpCellList () override |
void | Read () override |
@descr Read LwpDLVList data from object stream More... | |
Protected Member Functions inherited from LwpDLVList | |
virtual | ~LwpDLVList () override |
void | Read () override |
@descr Read LwpDLVList data from object stream More... | |
Protected Member Functions inherited from LwpObject | |
virtual | ~LwpObject () override |
@descr dtor() More... | |
virtual void | Read () |
@descr default read function More... | |
virtual void | RegisterStyle () |
@descr default register style function More... | |
virtual void | Parse (IXFStream *pOutputStream) |
@descr default parse function More... | |
virtual void | XFConvert (XFContentContainer *pCont) |
@descr default XFConvert function pCont is the XFContentContainer for the object conversion More... | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from LwpCellList | |
sal_uInt8 | cColumn |
LwpObjectID | cParent |
LwpObjectID | cValue |
Protected Attributes inherited from LwpObject | |
LwpObjectHeader | m_ObjHdr |
std::unique_ptr< LwpObjectStream > | m_pObjStrm |
LwpFoundry * | m_pFoundry |
LwpSvStream * | m_pStrm |
bool | m_bRegisteringStyle |
bool | m_bParsingStyle |
bool | m_bConvertingContent |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 199 of file lwptblformula.hxx.
LwpFormulaInfo::LwpFormulaInfo | ( | LwpObjectHeader const & | objHdr, |
LwpSvStream * | pStrm | ||
) |
Definition at line 76 of file lwptblformula.cxx.
|
overrideprivatevirtual |
Definition at line 82 of file lwptblformula.cxx.
OUString LwpFormulaInfo::Convert | ( | LwpTableLayout * | pCellsMap | ) |
Make the formula string.
Definition at line 320 of file lwptblformula.cxx.
References m_aStack, and m_bSupported.
Referenced by Convert().
|
overridevirtual |
Fill the XFCell content.
Reimplemented from LwpCellList.
Definition at line 340 of file lwptblformula.cxx.
References Convert(), LwpCellList::Convert(), and XFCell::SetFormula().
|
private |
Definition at line 228 of file lwptblformula.cxx.
References m_bSupported, TK_COUNT, TK_IF, and TK_NOT.
Referenced by ReadExpression().
|
overrideprivatevirtual |
@descr Read LwpDLVList data from object stream
Reimplemented from LwpCellList.
Definition at line 293 of file lwptblformula.cxx.
References LwpCellList::cParent, LwpRowList::GetRowID(), m_nFormulaRow, LwpObject::m_pObjStrm, LwpObjectID::obj(), LwpCellList::Read(), LwpNotifyListPersistent::Read(), ReadExpression(), and SAL_WARN.
|
private |
Read arguments of functions from wordpro file.
LwpFormulaFunc& | aFunc, functions object |
Definition at line 247 of file lwptblformula.cxx.
References LwpFormulaFunc::AddArg(), Count, m_aStack, LwpObject::m_pObjStrm, ReadCellID(), ReadCellRange(), ReadConst(), ReadExpression(), ReadText(), TK_CELLID, TK_CELLRANGE, TK_CONSTANT, TK_EXPRESSION, and TK_TEXT.
Referenced by ReadExpression().
|
private |
Definition at line 111 of file lwptblformula.cxx.
References LwpCellList::cColumn, LwpColumnSpecifier::ColumnID(), m_aStack, m_nFormulaRow, LwpObject::m_pObjStrm, LwpRowSpecifier::QuickRead(), LwpColumnSpecifier::QuickRead(), and LwpRowSpecifier::RowID().
Referenced by ReadArguments(), ReadCellRange(), and ReadExpression().
|
private |
Definition at line 123 of file lwptblformula.cxx.
References m_aStack, and ReadCellID().
Referenced by ReadArguments(), and ReadExpression().
|
private |
Definition at line 86 of file lwptblformula.cxx.
References m_aStack, and LwpObject::m_pObjStrm.
Referenced by ReadArguments(), and ReadExpression().
|
private |
Read expression from wordpro file.
Definition at line 142 of file lwptblformula.cxx.
References m_aStack, LwpObject::m_pObjStrm, MarkUnsupported(), ReadArguments(), ReadCellID(), ReadCellRange(), ReadConst(), TK_ADD, TK_AND, TK_AVERAGE, TK_CELLID, TK_CELLRANGE, TK_CONSTANT, TK_COUNT, TK_DIVIDE, TK_END, TK_EQUAL, TK_GREATER, TK_GREATER_OR_EQUAL, TK_IF, TK_LESS, TK_LESS_OR_EQUAL, TK_MAXIMUM, TK_MINIMUM, TK_MULTIPLY, TK_NOT, TK_NOT_EQUAL, TK_OR, TK_SUBTRACT, TK_SUM, and TK_UNARY_MINUS.
Referenced by Read(), and ReadArguments().
|
private |
Need more effort for unicode.
Definition at line 96 of file lwptblformula.cxx.
References aBuf, m_aStack, and LwpObject::m_pObjStrm.
Referenced by ReadArguments().
|
private |
Definition at line 217 of file lwptblformula.hxx.
Referenced by Convert(), ReadArguments(), ReadCellID(), ReadCellRange(), ReadConst(), ReadExpression(), and ReadText().
|
private |
Definition at line 212 of file lwptblformula.hxx.
Referenced by Convert(), and MarkUnsupported().
|
private |
Definition at line 218 of file lwptblformula.hxx.
Referenced by Read(), and ReadCellID().