LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XclExpFormulaCell Class Reference

Represents a FORMULA record that describes a cell with a formula. More...

#include <xetable.hxx>

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

Public Member Functions

 XclExpFormulaCell (const XclExpRoot &rRoot, const XclAddress &rXclPos, const ScPatternAttr *pPattern, sal_uInt32 nForcedXFId, const ScFormulaCell &rScFmlaCell, XclExpArrayBuffer &rArrayBfr, XclExpShrfmlaBuffer &rShrfmlaBfr, XclExpTableopBuffer &rTableopBfr)
 
virtual void Save (XclExpStream &rStrm) override
 Writes the FORMULA record and additional records related to the formula. More...
 
virtual void SaveXml (XclExpXmlStream &rStrm) override
 
- Public Member Functions inherited from XclExpSingleCellBase
virtual sal_uInt16 GetLastXclCol () const override
 Returns the last column, which is equal to the first column for single cells. More...
 
virtual sal_uInt32 GetFirstXFId () const override
 Return the XF identifier of the cell. More...
 
virtual bool IsEmpty () const override
 Returns true, if this record does not contain at least one valid cell. More...
 
virtual void ConvertXFIndexes (const XclExpRoot &rRoot) override
 Converts the XF identifier into the Excel XF index. More...
 
- Public Member Functions inherited from XclExpCellBase
const XclAddressGetXclPos () const
 Returns the (first) address of the cell(s). More...
 
sal_uInt16 GetXclCol () const
 Returns the (first) Excel column index of the cell(s). More...
 
sal_uInt32 GetXclRow () const
 Returns the Excel row index of the cell. More...
 
virtual bool IsMultiLineText () const
 Derived classes return whether the cell contains multi-line text. More...
 
virtual bool TryMerge (const XclExpCellBase &rCell)
 Derived classes try to merge the contents of the passed cell to own data. More...
 
virtual void GetBlankXFIndexes (ScfUInt16Vec &rXFIndexes) const
 Derived classes for blank cells insert the Excel XF index(es) into the passed vector. More...
 
virtual void RemoveUnusedBlankCells (const ScfUInt16Vec &rXFIndexes)
 Derived classes for blank cells remove unused Excel XF index(es). More...
 
- Public Member Functions inherited from XclExpRecord
 XclExpRecord (sal_uInt16 nRecId=EXC_ID_UNKNOWN, std::size_t nRecSize=0)
 
 XclExpRecord (XclExpRecord const &)=default
 
virtual ~XclExpRecord () override
 
sal_uInt16 GetRecId () const
 Returns the current record ID. More...
 
std::size_t GetRecSize () const
 Returns the current record size prediction. More...
 
void SetRecId (sal_uInt16 nRecId)
 Sets a new record ID. More...
 
void SetRecSize (std::size_t nRecSize)
 Sets a new record size prediction. More...
 
void AddRecSize (std::size_t nRecSize)
 Adds a size value to the record size prediction. More...
 
void SetRecHeader (sal_uInt16 nRecId, std::size_t nRecSize)
 Sets record ID and size with one call. More...
 
- Public Member Functions inherited from XclExpRecordBase
 XclExpRecordBase ()
 
 XclExpRecordBase (XclExpRecordBase const &)
 
 XclExpRecordBase (XclExpRecordBase &&)
 
XclExpRecordBaseoperator= (XclExpRecordBase const &)
 
XclExpRecordBaseoperator= (XclExpRecordBase &&) noexcept
 
virtual ~XclExpRecordBase ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

virtual void WriteContents (XclExpStream &rStrm) override
 Derived classes write the contents of the specified cell (without XF index). More...
 

Private Attributes

ScFormulaCellmrScFmlaCell
 
XclTokenArrayRef mxTokArr
 The Calc formula cell. More...
 
XclExpRangeFmlaRef mxAddRec
 The token array of the formula. More...
 
XclExpRecordRef mxStringRec
 Additional record for matrix/shared formulas. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator 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 XclExpSingleCellBase
 XclExpSingleCellBase (sal_uInt16 nRecId, std::size_t nContSize, const XclAddress &rXclPos, sal_uInt32 nXFId)
 
 XclExpSingleCellBase (const XclExpRoot &rRoot, sal_uInt16 nRecId, std::size_t nContSize, const XclAddress &rXclPos, const ScPatternAttr *pPattern, sal_Int16 nScript, sal_uInt32 nForcedXFId)
 
void SetContSize (std::size_t nContSize)
 
std::size_t GetContSize () const
 
void SetXFId (sal_uInt32 nXFId)
 
sal_uInt32 GetXFId () const
 
- Protected Member Functions inherited from XclExpCellBase
 XclExpCellBase (sal_uInt16 nRecId, std::size_t nContSize, const XclAddress &rXclPos)
 
void SetXclCol (sal_uInt16 nXclCol)
 Sets this record to a new column position. More...
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Represents a FORMULA record that describes a cell with a formula.

Definition at line 431 of file xetable.hxx.

Constructor & Destructor Documentation

XclExpFormulaCell::XclExpFormulaCell ( const XclExpRoot rRoot,
const XclAddress rXclPos,
const ScPatternAttr pPattern,
sal_uInt32  nForcedXFId,
const ScFormulaCell rScFmlaCell,
XclExpArrayBuffer rArrayBfr,
XclExpShrfmlaBuffer rShrfmlaBfr,
XclExpTableopBuffer rTableopBfr 
)
explicit

Member Function Documentation

void XclExpFormulaCell::Save ( XclExpStream rStrm)
overridevirtual
void XclExpFormulaCell::SaveXml ( XclExpXmlStream rStrm)
overridevirtual
void XclExpFormulaCell::WriteContents ( XclExpStream rStrm)
overrideprivatevirtual

Member Data Documentation

ScFormulaCell& XclExpFormulaCell::mrScFmlaCell
private

Definition at line 449 of file xetable.hxx.

Referenced by SaveXml(), WriteContents(), and XclExpFormulaCell().

XclExpRangeFmlaRef XclExpFormulaCell::mxAddRec
private

The token array of the formula.

Definition at line 451 of file xetable.hxx.

Referenced by Save(), SaveXml(), WriteContents(), and XclExpFormulaCell().

XclExpRecordRef XclExpFormulaCell::mxStringRec
private

Additional record for matrix/shared formulas.

Definition at line 452 of file xetable.hxx.

Referenced by Save(), and WriteContents().

XclTokenArrayRef XclExpFormulaCell::mxTokArr
private

The Calc formula cell.

Definition at line 450 of file xetable.hxx.

Referenced by Save(), SaveXml(), WriteContents(), and XclExpFormulaCell().


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