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 294 of file dociter.hxx.

Constructor & Destructor Documentation

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

Definition at line 1056 of file dociter.cxx.

Member Function Documentation

void ScHorizontalCellIterator::Advance ( )
private

Definition at line 1219 of file dociter.cxx.

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

Referenced by GetNext().

SCROW ScHorizontalCellIterator::FindNextNonEmptyRow ( )
private

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

Definition at line 1204 of file dociter.cxx.

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

Referenced by SkipInvalid().

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

Definition at line 1120 of file dociter.cxx.

References mbMore, mnCol, and mnRow.

void ScHorizontalCellIterator::SetTab ( SCTAB  nTab)
void ScHorizontalCellIterator::SkipInvalid ( )
private

Definition at line 1229 of file dociter.cxx.

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

Referenced by Advance(), and SetTab().

bool ScHorizontalCellIterator::SkipInvalidInRow ( )
private

Member Data Documentation

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

Definition at line 303 of file dociter.hxx.

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

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

Definition at line 314 of file dociter.hxx.

Referenced by GetNext().

bool ScHorizontalCellIterator::mbMore
private

Definition at line 315 of file dociter.hxx.

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

SCCOL ScHorizontalCellIterator::mnCol
private

Definition at line 312 of file dociter.hxx.

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

SCROW ScHorizontalCellIterator::mnRow
private

Definition at line 313 of file dociter.hxx.

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

SCTAB ScHorizontalCellIterator::mnTab
private

Definition at line 307 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

SCCOL ScHorizontalCellIterator::nEndCol
private

Definition at line 309 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

SCROW ScHorizontalCellIterator::nEndRow
private

Definition at line 311 of file dociter.hxx.

Referenced by SkipInvalid().

SCCOL ScHorizontalCellIterator::nStartCol
private

Definition at line 308 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

SCROW ScHorizontalCellIterator::nStartRow
private

Definition at line 310 of file dociter.hxx.

Referenced by SetTab().

ScDocument& ScHorizontalCellIterator::rDoc
private

Definition at line 306 of file dociter.hxx.

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


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