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 438 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 2086 of file dociter.cxx.

Member Function Documentation

void ScHorizontalCellIterator::Advance ( )
private

Definition at line 2249 of file dociter.cxx.

References assert(), 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 2234 of file dociter.cxx.

References assert(), 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 2150 of file dociter.cxx.

References mbMore, mnCol, and mnRow.

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

Definition at line 2259 of file dociter.cxx.

References assert(), debugiter, FindNextNonEmptyRow(), maColPos, maColPositions, mbMore, mnRow, 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 447 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 458 of file dociter.hxx.

Referenced by GetNext().

bool ScHorizontalCellIterator::mbMore
private

Definition at line 459 of file dociter.hxx.

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

SCCOL ScHorizontalCellIterator::mnCol
private

Definition at line 456 of file dociter.hxx.

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

SCROW ScHorizontalCellIterator::mnRow
private

Definition at line 457 of file dociter.hxx.

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

SCTAB ScHorizontalCellIterator::mnTab
private

Definition at line 451 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

SCCOL ScHorizontalCellIterator::nEndCol
private

Definition at line 453 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

SCROW ScHorizontalCellIterator::nEndRow
private

Definition at line 455 of file dociter.hxx.

SCCOL ScHorizontalCellIterator::nStartCol
private

Definition at line 452 of file dociter.hxx.

Referenced by ScHorizontalCellIterator(), and SetTab().

SCROW ScHorizontalCellIterator::nStartRow
private

Definition at line 454 of file dociter.hxx.

Referenced by SetTab().

ScDocument& ScHorizontalCellIterator::rDoc
private

Definition at line 450 of file dociter.hxx.

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


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