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

Represents a BLANK or MULBLANK record that describes empty but formatted cells. More...

#include <xetable.hxx>

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

Public Member Functions

 XclExpBlankCell (const XclAddress &rXclPos, const XclExpMultiXFId &rXFId)
 
 XclExpBlankCell (const XclExpRoot &rRoot, const XclAddress &rXclPos, sal_uInt16 nLastXclCol, const ScPatternAttr *pPattern, sal_uInt32 nForcedXFId)
 
virtual bool TryMerge (const XclExpCellBase &rCell) override
 Tries to merge the contents of the passed cell to own data. More...
 
virtual void GetBlankXFIndexes (ScfUInt16Vec &rXFIndexes) const override
 Inserts the Excel XF index(es) into the passed vector. More...
 
virtual void RemoveUnusedBlankCells (const ScfUInt16Vec &rXFIndexes) override
 Tries to remove unused Excel XF index(es). More...
 
- Public Member Functions inherited from XclExpMultiCellBase
virtual sal_uInt16 GetLastXclCol () const override
 Returns the column index of the last cell this record describes. More...
 
virtual sal_uInt32 GetFirstXFId () const override
 Return the XF identifier of the first contained 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
 Convert all XF identifiers into the Excel XF indexes. More...
 
virtual void Save (XclExpStream &rStrm) override
 Writes the record, calls WriteContents() for each contained cell. More...
 
virtual void SaveXml (XclExpXmlStream &rStrm) override
 
- 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...
 
- 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, sal_uInt16 nRelCol) override
 Writes the remaining contents of the specified cell (without XF index). More...
 
virtual void WriteXmlContents (XclExpXmlStream &rStrm, const XclAddress &rAddress, sal_uInt32 nXFId, sal_uInt16 nRelCol) override
 

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 XclExpMultiCellBase
 XclExpMultiCellBase (sal_uInt16 nRecId, sal_uInt16 nMulRecId, std::size_t nContSize, const XclAddress &rXclPos)
 
sal_uInt16 GetCellCount () const
 Returns the number of cells this record represents. More...
 
void AppendXFId (const XclExpMultiXFId &rXFId)
 Appends the passed XF identifier nCount times to the list of XF identifiers. More...
 
void AppendXFId (const XclExpRoot &rRoot, const ScPatternAttr *pPattern, sal_uInt16 nScript, sal_uInt32 nForcedXFId, sal_uInt16 nCount=1)
 Appends the passed cell format nCount times to the list of XF identifiers. More...
 
bool TryMergeXFIds (const XclExpMultiCellBase &rCell)
 Tries to merge the XF ID list of the passed cell with the own list. More...
 
void GetXFIndexes (ScfUInt16Vec &rXFIndexes) const
 Inserts the Excel XF index(es) into the passed vector. More...
 
void RemoveUnusedXFIndexes (const ScfUInt16Vec &rXFIndexes)
 Removes unused Excel XF index(es). More...
 
- 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 XclExpRecord
virtual void WriteBody (XclExpStream &rStrm)
 Writes the body of the record (without record header). 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 BLANK or MULBLANK record that describes empty but formatted cells.

Definition at line 521 of file xetable.hxx.

Constructor & Destructor Documentation

XclExpBlankCell::XclExpBlankCell ( const XclAddress rXclPos,
const XclExpMultiXFId rXFId 
)
explicit

Definition at line 1306 of file xetable.cxx.

References XclExpMultiCellBase::AppendXFId(), and XclExpMultiXFId::mnCount.

XclExpBlankCell::XclExpBlankCell ( const XclExpRoot rRoot,
const XclAddress rXclPos,
sal_uInt16  nLastXclCol,
const ScPatternAttr pPattern,
sal_uInt32  nForcedXFId 
)
explicit

Member Function Documentation

void XclExpBlankCell::GetBlankXFIndexes ( ScfUInt16Vec rXFIndexes) const
overridevirtual

Inserts the Excel XF index(es) into the passed vector.

Reimplemented from XclExpCellBase.

Definition at line 1329 of file xetable.cxx.

References XclExpMultiCellBase::GetXFIndexes().

void XclExpBlankCell::RemoveUnusedBlankCells ( const ScfUInt16Vec rXFIndexes)
overridevirtual

Tries to remove unused Excel XF index(es).

Reimplemented from XclExpCellBase.

Definition at line 1334 of file xetable.cxx.

References XclExpMultiCellBase::RemoveUnusedXFIndexes().

bool XclExpBlankCell::TryMerge ( const XclExpCellBase rCell)
overridevirtual

Tries to merge the contents of the passed cell to own data.

Reimplemented from XclExpCellBase.

Definition at line 1323 of file xetable.cxx.

References XclExpMultiCellBase::TryMergeXFIds().

void XclExpBlankCell::WriteContents ( XclExpStream rStrm,
sal_uInt16  nRelCol 
)
overrideprivatevirtual

Writes the remaining contents of the specified cell (without XF index).

Implements XclExpMultiCellBase.

Definition at line 1339 of file xetable.cxx.

void XclExpBlankCell::WriteXmlContents ( XclExpXmlStream rStrm,
const XclAddress rAddress,
sal_uInt32  nXFId,
sal_uInt16  nRelCol 
)
overrideprivatevirtual

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