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:
[legend]

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

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

Member Typedef Documentation

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

Definition at line 210 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
private

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 ( )
private
const EditTextObject* ScCellIterator::getEditText ( ) const
inline

Definition at line 238 of file dociter.hxx.

References ScRefCellValue::mpEditText.

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

Definition at line 240 of file dociter.hxx.

References ScRefCellValue::mpFormula.

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

Definition at line 843 of file dociter.cxx.

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

Referenced by getCurrent(), and incPos().

void ScCellIterator::incPos ( )
private

Definition at line 851 of file dociter.cxx.

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

Referenced by getCurrent(), and next().

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

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
private
PositionType ScCellIterator::maCurColPos
private

Definition at line 217 of file dociter.hxx.

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

ScAddress ScCellIterator::maCurPos
private

Definition at line 215 of file dociter.hxx.

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

ScAddress ScCellIterator::maEndPos
private

Definition at line 214 of file dociter.hxx.

Referenced by getCurrent(), and init().

ScAddress ScCellIterator::maStartPos
private

Definition at line 213 of file dociter.hxx.

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

SubtotalFlags ScCellIterator::mnSubTotalFlags
private

Definition at line 218 of file dociter.hxx.

Referenced by getCurrent().

ScDocument& ScCellIterator::mrDoc
private

Definition at line 212 of file dociter.hxx.

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


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