LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LwpFormulaInfo Class Referencefinal

#include <lwptblformula.hxx>

Inheritance diagram for LwpFormulaInfo:
[legend]
Collaboration diagram for LwpFormulaInfo:
[legend]

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)
 
LwpObjectIDGetNext ()
 
LwpObjectIDGetPrevious ()
 
- 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)
 
LwpFoundryGetFoundry ()
 
void SetFoundry (LwpFoundry *pFoundry)
 
LwpObjectIDGetObjectID ()
 
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< LwpObjectStreamm_pObjStrm
 
LwpFoundrym_pFoundry
 
LwpSvStreamm_pStrm
 
bool m_bRegisteringStyle
 
bool m_bParsingStyle
 
bool m_bConvertingContent
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 199 of file lwptblformula.hxx.

Constructor & Destructor Documentation

◆ LwpFormulaInfo()

LwpFormulaInfo::LwpFormulaInfo ( LwpObjectHeader const &  objHdr,
LwpSvStream pStrm 
)

Definition at line 76 of file lwptblformula.cxx.

◆ ~LwpFormulaInfo()

LwpFormulaInfo::~LwpFormulaInfo ( )
overrideprivatevirtual

Definition at line 82 of file lwptblformula.cxx.

Member Function Documentation

◆ Convert() [1/2]

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().

◆ Convert() [2/2]

void LwpFormulaInfo::Convert ( XFCell pCell,
LwpTableLayout pCellsMap = nullptr 
)
overridevirtual

Fill the XFCell content.

Reimplemented from LwpCellList.

Definition at line 340 of file lwptblformula.cxx.

References Convert(), LwpCellList::Convert(), and XFCell::SetFormula().

◆ MarkUnsupported()

void LwpFormulaInfo::MarkUnsupported ( sal_uInt16  TokenType)
private

Definition at line 228 of file lwptblformula.cxx.

References m_bSupported, TK_COUNT, TK_IF, and TK_NOT.

Referenced by ReadExpression().

◆ Read()

void LwpFormulaInfo::Read ( )
overrideprivatevirtual

◆ ReadArguments()

void LwpFormulaInfo::ReadArguments ( LwpFormulaFunc aFunc)
private

Read arguments of functions from wordpro file.

Parameters
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().

◆ ReadCellID()

void LwpFormulaInfo::ReadCellID ( )
private

◆ ReadCellRange()

void LwpFormulaInfo::ReadCellRange ( )
private

Definition at line 123 of file lwptblformula.cxx.

References m_aStack, and ReadCellID().

Referenced by ReadArguments(), and ReadExpression().

◆ ReadConst()

void LwpFormulaInfo::ReadConst ( )
private

Definition at line 86 of file lwptblformula.cxx.

References m_aStack, and LwpObject::m_pObjStrm.

Referenced by ReadArguments(), and ReadExpression().

◆ ReadExpression()

void LwpFormulaInfo::ReadExpression ( )
private

◆ ReadText()

void LwpFormulaInfo::ReadText ( )
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().

Member Data Documentation

◆ m_aStack

std::vector<std::unique_ptr<LwpFormulaArg> > LwpFormulaInfo::m_aStack
private

◆ m_bSupported

bool LwpFormulaInfo::m_bSupported
private

Definition at line 212 of file lwptblformula.hxx.

Referenced by Convert(), and MarkUnsupported().

◆ m_nFormulaRow

sal_uInt16 LwpFormulaInfo::m_nFormulaRow
private

Definition at line 218 of file lwptblformula.hxx.

Referenced by Read(), and ReadCellID().


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