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

#include <dociter.hxx>

Collaboration diagram for ScValueIterator:
[legend]

Public Member Functions

 ScValueIterator (ScDocument &rDocument, const ScRange &rRange, SubtotalFlags nSubTotalFlags=SubtotalFlags::NONE, bool bTextAsZero=false)
 
void GetCurNumFmtInfo (const ScInterpreterContext &rContext, SvNumFormatType &nType, sal_uInt32 &nIndex)
 
bool GetFirst (double &rValue, FormulaError &rErr)
 Does NOT reset rValue if no value found! More...
 
bool GetNext (double &rValue, FormulaError &rErr)
 Does NOT reset rValue if no value found! More...
 
void SetInterpreterContext (ScInterpreterContext *context)
 

Private Types

typedef sc::CellStoreType::const_position_type PositionType
 

Private Member Functions

SCROW GetRow () const
 
void IncBlock ()
 
void IncPos ()
 
bool GetThis (double &rValue, FormulaError &rErr)
 See if the cell at the current position is a non-empty cell. More...
 

Private Attributes

ScDocumentmrDoc
 
ScInterpreterContextpContext
 
const ScAttrArraypAttrArray
 
sal_uInt32 nNumFormat
 
sal_uInt32 nNumFmtIndex
 
ScAddress maStartPos
 
ScAddress maEndPos
 
SCCOL mnCol
 
SCTAB mnTab
 
SCROW nAttrEndRow
 
SubtotalFlags mnSubTotalFlags
 
SvNumFormatType nNumFmtType
 
bool bNumValid
 
bool bCalcAsShown
 
bool bTextAsZero
 
const sc::CellStoreTypempCells
 
PositionType maCurPos
 

Detailed Description

Definition at line 52 of file dociter.hxx.

Member Typedef Documentation

typedef sc::CellStoreType::const_position_type ScValueIterator::PositionType
private

Definition at line 54 of file dociter.hxx.

Constructor & Destructor Documentation

ScValueIterator::ScValueIterator ( ScDocument rDocument,
const ScRange rRange,
SubtotalFlags  nSubTotalFlags = SubtotalFlags::NONE,
bool  bTextAsZero = false 
)

Member Function Documentation

void ScValueIterator::GetCurNumFmtInfo ( const ScInterpreterContext rContext,
SvNumFormatType nType,
sal_uInt32 &  nIndex 
)
bool ScValueIterator::GetFirst ( double &  rValue,
FormulaError rErr 
)
bool ScValueIterator::GetNext ( double &  rValue,
FormulaError rErr 
)
SCROW ScValueIterator::GetRow ( ) const
private

Definition at line 129 of file dociter.cxx.

References maCurPos.

Referenced by GetCurNumFmtInfo(), and GetThis().

bool ScValueIterator::GetThis ( double &  rValue,
FormulaError rErr 
)
private
void ScValueIterator::IncBlock ( )
private

Definition at line 136 of file dociter.cxx.

References maCurPos.

Referenced by GetThis(), and IncPos().

void ScValueIterator::IncPos ( )
private

Definition at line 142 of file dociter.cxx.

References IncBlock(), and maCurPos.

Referenced by GetNext(), and GetThis().

void ScValueIterator::SetInterpreterContext ( ScInterpreterContext context)
inline

Member Data Documentation

bool ScValueIterator::bCalcAsShown
private

Definition at line 69 of file dociter.hxx.

Referenced by GetThis().

bool ScValueIterator::bNumValid
private

Definition at line 68 of file dociter.hxx.

Referenced by GetCurNumFmtInfo(), and GetThis().

bool ScValueIterator::bTextAsZero
private

Definition at line 70 of file dociter.hxx.

Referenced by GetThis().

PositionType ScValueIterator::maCurPos
private

Definition at line 73 of file dociter.hxx.

Referenced by GetFirst(), GetRow(), GetThis(), IncBlock(), and IncPos().

ScAddress ScValueIterator::maEndPos
private

Definition at line 62 of file dociter.hxx.

Referenced by GetThis(), and ScValueIterator().

ScAddress ScValueIterator::maStartPos
private

Definition at line 61 of file dociter.hxx.

Referenced by GetFirst(), GetThis(), and ScValueIterator().

SCCOL ScValueIterator::mnCol
private

Definition at line 63 of file dociter.hxx.

Referenced by GetCurNumFmtInfo(), GetFirst(), and GetThis().

SubtotalFlags ScValueIterator::mnSubTotalFlags
private

Definition at line 66 of file dociter.hxx.

Referenced by GetThis().

SCTAB ScValueIterator::mnTab
private

Definition at line 64 of file dociter.hxx.

Referenced by GetCurNumFmtInfo(), GetFirst(), and GetThis().

const sc::CellStoreType* ScValueIterator::mpCells
private

Definition at line 72 of file dociter.hxx.

Referenced by GetFirst(), and GetThis().

ScDocument& ScValueIterator::mrDoc
private

Definition at line 56 of file dociter.hxx.

Referenced by GetCurNumFmtInfo(), GetFirst(), GetThis(), and ScValueIterator().

SCROW ScValueIterator::nAttrEndRow
private

Definition at line 65 of file dociter.hxx.

Referenced by GetFirst(), and GetThis().

sal_uInt32 ScValueIterator::nNumFmtIndex
private

Definition at line 60 of file dociter.hxx.

Referenced by GetCurNumFmtInfo(), and GetThis().

SvNumFormatType ScValueIterator::nNumFmtType
private

Definition at line 67 of file dociter.hxx.

Referenced by GetCurNumFmtInfo(), and GetThis().

sal_uInt32 ScValueIterator::nNumFormat
private

Definition at line 59 of file dociter.hxx.

Referenced by GetFirst(), and GetThis().

const ScAttrArray* ScValueIterator::pAttrArray
private

Definition at line 58 of file dociter.hxx.

Referenced by GetFirst(), and GetThis().

ScInterpreterContext* ScValueIterator::pContext
private

Definition at line 57 of file dociter.hxx.

Referenced by GetThis().


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