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

Walk through all cells in an area. More...

#include <dociter.hxx>

Collaboration diagram for ScCellIterator:

Public Member Functions

 ScCellIterator (ScDocument &rDoc, const ScRange &rRange, SubtotalFlags nSubTotalFlags=SubtotalFlags::NONE)
const ScAddressGetPos () const
CellType getType () const
OUString getString () const
const EditTextObjectgetEditText () const
ScFormulaCellgetFormulaCell ()
const ScFormulaCellgetFormulaCell () const
ScCellValue getCellValue () const
const ScRefCellValuegetRefCellValue () const
bool hasString () const
bool isEmpty () const
bool equalsWithoutFormat (const ScAddress &rPos) const
bool first ()
bool next ()

Private Types

typedef std::pair< sc::CellStoreType::const_iterator, size_t > PositionType

Private Member Functions

void incBlock ()
void incPos ()
void setPos (size_t nPos)
const ScColumngetColumn () const
void init ()
bool getCurrent ()

Private Attributes

ScAddress maStartPos
ScAddress maEndPos
ScAddress maCurPos
PositionType maCurColPos
SubtotalFlags mnSubTotalFlags
ScRefCellValue maCurCell

Detailed Description

Walk through all cells in an area.

For SubTotal and Aggregate depending on mnSubTotalFlags.

Definition at line 207 of file dociter.hxx.

Member Typedef Documentation

typedef std::pair<sc::CellStoreType::const_iterator, size_t> ScCellIterator::PositionType

Definition at line 209 of file dociter.hxx.

Constructor & Destructor Documentation

ScCellIterator::ScCellIterator ( ScDocument rDoc,
const ScRange rRange,
SubtotalFlags  nSubTotalFlags = SubtotalFlags::NONE 

Definition at line 834 of file dociter.cxx.

References init().

Member Function Documentation

bool ScCellIterator::equalsWithoutFormat ( const ScAddress rPos) const
bool ScCellIterator::first ( )
ScCellValue ScCellIterator::getCellValue ( ) const
const ScColumn * ScCellIterator::getColumn ( ) const

Definition at line 870 of file dociter.cxx.

References ScAddress::Col(), maCurPos, ScDocument::maTabs, mrDoc, and ScAddress::Tab().

Referenced by first(), getCurrent(), and setPos().

bool ScCellIterator::getCurrent ( )
const EditTextObject* ScCellIterator::getEditText ( ) const

Definition at line 237 of file dociter.hxx.

References ScRefCellValue::mpEditText.

ScFormulaCell* ScCellIterator::getFormulaCell ( )
const ScFormulaCell* ScCellIterator::getFormulaCell ( ) const

Definition at line 239 of file dociter.hxx.

References ScRefCellValue::mpFormula.

const ScAddress& ScCellIterator::GetPos ( ) const
const ScRefCellValue& ScCellIterator::getRefCellValue ( ) const
OUString ScCellIterator::getString ( ) const
CellType ScCellIterator::getType ( ) const
bool ScCellIterator::hasString ( ) const
void ScCellIterator::incBlock ( )

Definition at line 843 of file dociter.cxx.

References maCurColPos, maCurPos, and ScAddress::SetRow().

Referenced by getCurrent(), and incPos().

void ScCellIterator::incPos ( )

Definition at line 851 of file dociter.cxx.

References incBlock(), ScAddress::IncRow(), maCurColPos, and maCurPos.

Referenced by getCurrent(), and next().

void ScCellIterator::init ( )
bool ScCellIterator::isEmpty ( ) const
bool ScCellIterator::next ( )
void ScCellIterator::setPos ( size_t  nPos)

Definition at line 864 of file dociter.cxx.

References getColumn(), ScColumn::maCells, maCurColPos, maCurPos, and ScAddress::SetRow().

Referenced by getCurrent().

Member Data Documentation

ScRefCellValue ScCellIterator::maCurCell
PositionType ScCellIterator::maCurColPos

Definition at line 216 of file dociter.hxx.

Referenced by first(), getCurrent(), incBlock(), incPos(), and setPos().

ScAddress ScCellIterator::maCurPos

Definition at line 214 of file dociter.hxx.

Referenced by first(), getColumn(), getCurrent(), GetPos(), incBlock(), incPos(), init(), and setPos().

ScAddress ScCellIterator::maEndPos

Definition at line 213 of file dociter.hxx.

Referenced by getCurrent(), and init().

ScAddress ScCellIterator::maStartPos

Definition at line 212 of file dociter.hxx.

Referenced by first(), getCurrent(), and init().

SubtotalFlags ScCellIterator::mnSubTotalFlags

Definition at line 217 of file dociter.hxx.

Referenced by getCurrent().

ScDocument& ScCellIterator::mrDoc

Definition at line 211 of file dociter.hxx.

Referenced by equalsWithoutFormat(), getColumn(), getCurrent(), getString(), and init().

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