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

#include <dociter.hxx>

Collaboration diagram for ScHorizontalCellIterator:
[legend]

Classes

struct  ColParam
 

Public Member Functions

 ScHorizontalCellIterator (ScDocument &rDocument, SCTAB nTable, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
 
 ~ScHorizontalCellIterator ()
 
ScRefCellValueGetNext (SCCOL &rCol, SCROW &rRow)
 
bool GetPos (SCCOL &rCol, SCROW &rRow)
 
void SetTab (SCTAB nTab)
 Set a(nother) sheet and (re)init. More...
 

Private Member Functions

void Advance ()
 
void SkipInvalid ()
 
bool SkipInvalidInRow ()
 
SCROW FindNextNonEmptyRow ()
 Find the next row that has some real content in one of its columns. More...
 

Private Attributes

std::vector< ColParam >::iterator maColPos
 
std::vector< ColParammaColPositions
 
ScDocumentrDoc
 
SCTAB mnTab
 
SCCOL nStartCol
 
SCCOL nEndCol
 
SCROW nStartRow
 
SCROW nEndRow
 
SCCOL mnCol
 
SCROW mnRow
 
ScRefCellValue maCurCell
 
bool mbMore
 

Detailed Description

Definition at line 292 of file dociter.hxx.

Constructor & Destructor Documentation

◆ ScHorizontalCellIterator()

ScHorizontalCellIterator::ScHorizontalCellIterator ( ScDocument rDocument,
SCTAB  nTable,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2 
)

◆ ~ScHorizontalCellIterator()

ScHorizontalCellIterator::~ScHorizontalCellIterator ( )

Definition at line 1055 of file dociter.cxx.

Member Function Documentation

◆ Advance()

void ScHorizontalCellIterator::Advance ( )
private

Definition at line 1218 of file dociter.cxx.

References maColPos, maColPositions, mbMore, and SkipInvalid().

Referenced by GetNext().

◆ FindNextNonEmptyRow()

SCROW ScHorizontalCellIterator::FindNextNonEmptyRow ( )
private

Find the next row that has some real content in one of its columns.

Definition at line 1203 of file dociter.cxx.

References debugiter, maColPositions, o3tl::make_unsigned(), ScDocument::MaxRow(), mnRow, and rDoc.

Referenced by SkipInvalid().

◆ GetNext()

ScRefCellValue * ScHorizontalCellIterator::GetNext ( SCCOL rCol,
SCROW rRow 
)

◆ GetPos()

bool ScHorizontalCellIterator::GetPos ( SCCOL rCol,
SCROW rRow 
)

Definition at line 1119 of file dociter.cxx.

References mbMore, mnCol, and mnRow.

◆ SetTab()

void ScHorizontalCellIterator::SetTab ( SCTAB  nTab)

◆ SkipInvalid()

void ScHorizontalCellIterator::SkipInvalid ( )
private

Definition at line 1228 of file dociter.cxx.

References debugiter, FindNextNonEmptyRow(), maColPos, maColPositions, mbMore, mnRow, nEndRow, and SkipInvalidInRow().

Referenced by Advance(), and SetTab().

◆ SkipInvalidInRow()

bool ScHorizontalCellIterator::SkipInvalidInRow ( )
private

Member Data Documentation

◆ maColPos

std::vector<ColParam>::iterator ScHorizontalCellIterator::maColPos
private

Definition at line 301 of file dociter.hxx.

Referenced by Advance(), GetNext(), SetTab(), SkipInvalid(), and SkipInvalidInRow().

◆ maColPositions

std::vector<ColParam> ScHorizontalCellIterator::maColPositions
private

◆ maCurCell

ScRefCellValue ScHorizontalCellIterator::maCurCell
private

Definition at line 312 of file dociter.hxx.

Referenced by GetNext().

◆ mbMore

bool ScHorizontalCellIterator::mbMore
private

Definition at line 313 of file dociter.hxx.

Referenced by Advance(), GetNext(), GetPos(), SetTab(), SkipInvalid(), and SkipInvalidInRow().

◆ mnCol

SCCOL ScHorizontalCellIterator::mnCol
private

Definition at line 310 of file dociter.hxx.

Referenced by GetNext(), GetPos(), SetTab(), and SkipInvalidInRow().

◆ mnRow

SCROW ScHorizontalCellIterator::mnRow
private

Definition at line 311 of file dociter.hxx.

Referenced by FindNextNonEmptyRow(), GetNext(), GetPos(), SetTab(), SkipInvalid(), and SkipInvalidInRow().

◆ mnTab

SCTAB ScHorizontalCellIterator::mnTab
private

Definition at line 305 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

◆ nEndCol

SCCOL ScHorizontalCellIterator::nEndCol
private

Definition at line 307 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

◆ nEndRow

SCROW ScHorizontalCellIterator::nEndRow
private

Definition at line 309 of file dociter.hxx.

Referenced by SkipInvalid().

◆ nStartCol

SCCOL ScHorizontalCellIterator::nStartCol
private

Definition at line 306 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

◆ nStartRow

SCROW ScHorizontalCellIterator::nStartRow
private

Definition at line 308 of file dociter.hxx.

Referenced by SetTab().

◆ rDoc

ScDocument& ScHorizontalCellIterator::rDoc
private

Definition at line 304 of file dociter.hxx.

Referenced by FindNextNonEmptyRow(), ScHorizontalCellIterator(), and SetTab().


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