LibreOffice Module sc (master)  1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ScTable::VisibleDataCellIterator Class Reference

Use this to iterate through non-empty visible cells in a single column. More...

Collaboration diagram for ScTable::VisibleDataCellIterator:
[legend]

Public Member Functions

 VisibleDataCellIterator (const ScDocument &rDoc, ScFlatBoolRowSegments &rRowSegs, ScColumn &rColumn)
 
 ~VisibleDataCellIterator ()
 
ScRefCellValue reset (SCROW nRow)
 Set the start row position. More...
 
ScRefCellValue next ()
 Find the next visible data cell position. More...
 
SCROW getRow () const
 Get the current row position. More...
 

Private Attributes

const ScDocumentmrDocument
 
ScFlatBoolRowSegmentsmrRowSegs
 
ScColumnmrColumn
 
ScRefCellValue maCell
 
SCROW mnCurRow
 
SCROW mnUBound
 

Static Private Attributes

static constexpr SCROW ROW_NOT_FOUND = -1
 

Detailed Description

Use this to iterate through non-empty visible cells in a single column.

Definition at line 1274 of file table.hxx.

Constructor & Destructor Documentation

ScTable::VisibleDataCellIterator::VisibleDataCellIterator ( const ScDocument rDoc,
ScFlatBoolRowSegments rRowSegs,
ScColumn rColumn 
)
explicit

Definition at line 2242 of file table1.cxx.

ScTable::VisibleDataCellIterator::~VisibleDataCellIterator ( )

Definition at line 2251 of file table1.cxx.

Member Function Documentation

SCROW ScTable::VisibleDataCellIterator::getRow ( ) const
inline

Get the current row position.

Returns
Current row position, or ROW_NOT_FOUND if the iterator doesn't point to a valid data cell position.

Definition at line 1304 of file table.hxx.

References mnCurRow.

Referenced by ScTable::ExtendPrintArea().

ScRefCellValue ScTable::VisibleDataCellIterator::next ( )

Find the next visible data cell position.

Returns
Next visible data cell if found, or NULL otherwise.

Definition at line 2299 of file table1.cxx.

References aData, ScFlatBoolRowSegments::RangeData::mbValue, and ScFlatBoolRowSegments::RangeData::mnRow2.

Referenced by ScTable::ExtendPrintArea().

ScRefCellValue ScTable::VisibleDataCellIterator::reset ( SCROW  nRow)

Set the start row position.

In case there is not visible data cell at the specified row position, it will move to the position of the first visible data cell below that point.

Returns
First visible data cell if found, or NULL otherwise.

Definition at line 2255 of file table1.cxx.

References aData, ScFlatBoolRowSegments::RangeData::mbValue, and ScFlatBoolRowSegments::RangeData::mnRow2.

Referenced by ScTable::ExtendPrintArea().

Member Data Documentation

ScRefCellValue ScTable::VisibleDataCellIterator::maCell
private

Definition at line 1310 of file table.hxx.

SCROW ScTable::VisibleDataCellIterator::mnCurRow
private

Definition at line 1311 of file table.hxx.

Referenced by getRow().

SCROW ScTable::VisibleDataCellIterator::mnUBound
private

Definition at line 1312 of file table.hxx.

ScColumn& ScTable::VisibleDataCellIterator::mrColumn
private

Definition at line 1309 of file table.hxx.

const ScDocument& ScTable::VisibleDataCellIterator::mrDocument
private

Definition at line 1307 of file table.hxx.

ScFlatBoolRowSegments& ScTable::VisibleDataCellIterator::mrRowSegs
private

Definition at line 1308 of file table.hxx.

constexpr SCROW ScTable::VisibleDataCellIterator::ROW_NOT_FOUND = -1
staticprivate

Definition at line 1276 of file table.hxx.


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