LibreOffice Module sc (master)
1
|
#include <dociter.hxx>
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 | |
ScDocument & | mrDoc |
ScInterpreterContext * | pContext |
const ScAttrArray * | pAttrArray |
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::CellStoreType * | mpCells |
PositionType | maCurPos |
Definition at line 52 of file dociter.hxx.
|
private |
Definition at line 54 of file dociter.hxx.
ScValueIterator::ScValueIterator | ( | ScDocument & | rDocument, |
const ScRange & | rRange, | ||
SubtotalFlags | nSubTotalFlags = SubtotalFlags::NONE , |
||
bool | bTextAsZero = false |
||
) |
Definition at line 100 of file dociter.cxx.
References ScAddress::Col(), ScDocument::GetTableCount(), maEndPos, maStartPos, ScDocument::MaxCol(), ScDocument::MaxRow(), mrDoc, ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::SetTab(), ScAddress::Tab(), UNDEFINED, ScDocument::ValidCol(), ScDocument::ValidRow(), and ValidTab().
void ScValueIterator::GetCurNumFmtInfo | ( | const ScInterpreterContext & | rContext, |
SvNumFormatType & | nType, | ||
sal_uInt32 & | nIndex | ||
) |
Definition at line 270 of file dociter.cxx.
References bNumValid, ScColumn::GetNumberFormat(), ScInterpreterContext::GetNumberFormatType(), GetRow(), ScDocument::GetTableCount(), ScDocument::maTabs, mnCol, mnTab, mrDoc, nNumFmtIndex, and nNumFmtType.
Referenced by ScInterpreter::IterateParameters(), ScInterpreter::ScMax(), and ScInterpreter::ScMin().
bool ScValueIterator::GetFirst | ( | double & | rValue, |
FormulaError & | rErr | ||
) |
Does NOT reset rValue if no value found!
Definition at line 285 of file dociter.cxx.
References ScTable::aCol, ScAddress::Col(), ScDocument::FetchTable(), GetThis(), maCurPos, maStartPos, mnCol, mnTab, mpCells, mrDoc, nAttrEndRow, nNumFormat, pAttrArray, ScAddress::Row(), and ScAddress::Tab().
Referenced by ScInterpreter::CalculateSkew(), ScInterpreter::GetNumberSequenceArray(), ScInterpreter::GetStVarParams(), ScInterpreter::GetTopNumberArray(), ScInterpreter::IterateParameters(), ScInterpreter::ScAnd(), ScInterpreter::ScAveDev(), ScInterpreter::ScGCD(), ScInterpreter::ScGeoMean(), ScInterpreter::ScHarMean(), ScInterpreter::ScIRR(), ScInterpreter::ScLCM(), ScInterpreter::ScMax(), ScInterpreter::ScMin(), ScInterpreter::ScMIRR(), ScInterpreter::ScOr(), ScInterpreter::ScXor(), and ScInterpreter::ScZTest().
bool ScValueIterator::GetNext | ( | double & | rValue, |
FormulaError & | rErr | ||
) |
Does NOT reset rValue if no value found!
Definition at line 309 of file dociter.cxx.
References GetThis(), and IncPos().
Referenced by ScInterpreter::CalculateSkew(), ScInterpreter::GetNumberSequenceArray(), ScInterpreter::GetStVarParams(), ScInterpreter::GetTopNumberArray(), ScInterpreter::IterateParameters(), ScInterpreter::ScAnd(), ScInterpreter::ScAveDev(), ScInterpreter::ScGCD(), ScInterpreter::ScGeoMean(), ScInterpreter::ScHarMean(), ScInterpreter::ScIRR(), ScInterpreter::ScLCM(), ScInterpreter::ScMax(), ScInterpreter::ScMin(), ScInterpreter::ScMIRR(), ScInterpreter::ScOr(), ScInterpreter::ScXor(), and ScInterpreter::ScZTest().
|
private |
Definition at line 129 of file dociter.cxx.
References maCurPos.
Referenced by GetCurNumFmtInfo(), and GetThis().
|
private |
See if the cell at the current position is a non-empty cell.
If not, move to the next non-empty cell position.
Definition at line 152 of file dociter.cxx.
References bCalcAsShown, bNumValid, bTextAsZero, ScAddress::Col(), sc::element_type_edittext, sc::element_type_empty, sc::element_type_formula, sc::element_type_numeric, sc::element_type_string, ScFormulaCell::GetErrorOrValue(), GetRow(), IgnoreErrVal, IgnoreFiltered, IgnoreHidden, IgnoreNestedStAg, IncBlock(), IncPos(), ScColumn::IsEmptyData(), ScFormulaCell::IsSubTotal(), ScColumn::maCells, maCurPos, maEndPos, maStartPos, ScDocument::maTabs, mnCol, mnSubTotalFlags, mnTab, mpCells, mrDoc, nAttrEndRow, nNumFmtIndex, nNumFmtType, nNumFormat, pAttrArray, ScColumn::pAttrArray, pContext, ScAddress::Row(), ScDocument::RowFiltered(), ScDocument::RowHidden(), ScAttrArray_IterGetNumberFormat(), and ScAddress::Tab().
Referenced by GetFirst(), and GetNext().
|
private |
Definition at line 136 of file dociter.cxx.
References maCurPos.
|
private |
Definition at line 142 of file dociter.cxx.
References IncBlock(), and maCurPos.
|
inline |
Definition at line 99 of file dociter.hxx.
Referenced by ScInterpreter::IterateParameters(), ScInterpreter::ScMax(), and ScInterpreter::ScMin().
|
private |
Definition at line 69 of file dociter.hxx.
Referenced by GetThis().
|
private |
Definition at line 68 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), and GetThis().
|
private |
Definition at line 70 of file dociter.hxx.
Referenced by GetThis().
|
private |
Definition at line 73 of file dociter.hxx.
Referenced by GetFirst(), GetRow(), GetThis(), IncBlock(), and IncPos().
|
private |
Definition at line 62 of file dociter.hxx.
Referenced by GetThis(), and ScValueIterator().
|
private |
Definition at line 61 of file dociter.hxx.
Referenced by GetFirst(), GetThis(), and ScValueIterator().
|
private |
Definition at line 63 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), GetFirst(), and GetThis().
|
private |
Definition at line 66 of file dociter.hxx.
Referenced by GetThis().
|
private |
Definition at line 64 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), GetFirst(), and GetThis().
|
private |
Definition at line 72 of file dociter.hxx.
Referenced by GetFirst(), and GetThis().
|
private |
Definition at line 56 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), GetFirst(), GetThis(), and ScValueIterator().
|
private |
Definition at line 65 of file dociter.hxx.
Referenced by GetFirst(), and GetThis().
|
private |
Definition at line 60 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), and GetThis().
|
private |
Definition at line 67 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), and GetThis().
|
private |
Definition at line 59 of file dociter.hxx.
Referenced by GetFirst(), and GetThis().
|
private |
Definition at line 58 of file dociter.hxx.
Referenced by GetFirst(), and GetThis().
|
private |
Definition at line 57 of file dociter.hxx.
Referenced by GetThis().