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)
 
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 1390 of file table.hxx.

Constructor & Destructor Documentation

◆ VisibleDataCellIterator()

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

Definition at line 2364 of file table1.cxx.

Member Function Documentation

◆ getRow()

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 1419 of file table.hxx.

References mnCurRow.

Referenced by ScTable::ExtendPrintArea().

◆ next()

ScRefCellValue ScTable::VisibleDataCellIterator::next ( )

Find the next visible data cell position.

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

Definition at line 2417 of file table1.cxx.

References aData.

Referenced by ScTable::ExtendPrintArea().

◆ reset()

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 2373 of file table1.cxx.

References aData.

Referenced by ScTable::ExtendPrintArea().

Member Data Documentation

◆ maCell

ScRefCellValue ScTable::VisibleDataCellIterator::maCell
private

Definition at line 1425 of file table.hxx.

◆ mnCurRow

SCROW ScTable::VisibleDataCellIterator::mnCurRow
private

Definition at line 1426 of file table.hxx.

Referenced by getRow().

◆ mnUBound

SCROW ScTable::VisibleDataCellIterator::mnUBound
private

Definition at line 1427 of file table.hxx.

◆ mrColumn

ScColumn& ScTable::VisibleDataCellIterator::mrColumn
private

Definition at line 1424 of file table.hxx.

◆ mrDocument

const ScDocument& ScTable::VisibleDataCellIterator::mrDocument
private

Definition at line 1422 of file table.hxx.

◆ mrRowSegs

ScFlatBoolRowSegments& ScTable::VisibleDataCellIterator::mrRowSegs
private

Definition at line 1423 of file table.hxx.

◆ ROW_NOT_FOUND

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

Definition at line 1392 of file table.hxx.


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