|
LibreOffice Module sc (master) 1
|
#include <dociter.hxx>
Public Member Functions | |
| ScValueIterator (ScInterpreterContext &rContext, const ScRange &rRange, SubtotalFlags nSubTotalFlags=SubtotalFlags::NONE, bool bTextAsZero=false) | |
| void | GetCurNumFmtInfo (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... | |
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 | |
| const ScDocument & | mrDoc |
| ScInterpreterContext & | mrContext |
| 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 51 of file dociter.hxx.
|
private |
Definition at line 53 of file dociter.hxx.
| ScValueIterator::ScValueIterator | ( | ScInterpreterContext & | rContext, |
| const ScRange & | rRange, | ||
| SubtotalFlags | nSubTotalFlags = SubtotalFlags::NONE, |
||
| bool | bTextAsZero = false |
||
| ) |
Definition at line 85 of file dociter.cxx.
References ScAddress::Col(), ScDocument::GetTableCount(), maEndPos, maStartPos, ScDocument::MaxCol(), ScDocument::MaxRow(), mrContext, mrDoc, ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::SetTab(), ScAddress::Tab(), UNDEFINED, ScDocument::ValidCol(), ScDocument::ValidRow(), and ValidTab().
| void ScValueIterator::GetCurNumFmtInfo | ( | SvNumFormatType & | nType, |
| sal_uInt32 & | nIndex | ||
| ) |
Definition at line 255 of file dociter.cxx.
References bNumValid, ScColumn::GetNumberFormat(), ScInterpreterContext::GetNumberFormatType(), GetRow(), ScDocument::GetTableCount(), ScDocument::maTabs, mnCol, mnTab, mrContext, mrDoc, nIndex, nNumFmtIndex, nNumFmtType, and nType.
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 270 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::GetRankNumberArray(), ScInterpreter::GetStVarParams(), 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 294 of file dociter.cxx.
References GetThis(), and IncPos().
Referenced by ScInterpreter::CalculateSkew(), ScInterpreter::GetNumberSequenceArray(), ScInterpreter::GetRankNumberArray(), ScInterpreter::GetStVarParams(), 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 114 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 137 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, mrContext, mrDoc, nAttrEndRow, nNumFmtIndex, nNumFmtType, nNumFormat, ScColumnData::pAttrArray, pAttrArray, ScDocument::RoundValueAsShown(), ScAddress::Row(), ScDocument::RowFiltered(), ScDocument::RowHidden(), ScAttrArray_IterGetNumberFormat(), and ScAddress::Tab().
Referenced by GetFirst(), and GetNext().
|
private |
Definition at line 121 of file dociter.cxx.
References maCurPos.
|
private |
Definition at line 127 of file dociter.cxx.
References IncBlock(), and maCurPos.
|
private |
Definition at line 68 of file dociter.hxx.
Referenced by GetThis().
|
private |
Definition at line 67 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), and GetThis().
|
private |
Definition at line 69 of file dociter.hxx.
Referenced by GetThis().
|
private |
Definition at line 72 of file dociter.hxx.
Referenced by GetFirst(), GetRow(), GetThis(), IncBlock(), and IncPos().
|
private |
Definition at line 61 of file dociter.hxx.
Referenced by GetThis(), and ScValueIterator().
|
private |
Definition at line 60 of file dociter.hxx.
Referenced by GetFirst(), GetThis(), and ScValueIterator().
|
private |
Definition at line 62 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), GetFirst(), and GetThis().
|
private |
Definition at line 65 of file dociter.hxx.
Referenced by GetThis().
|
private |
Definition at line 63 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), GetFirst(), and GetThis().
|
private |
Definition at line 71 of file dociter.hxx.
Referenced by GetFirst(), and GetThis().
|
private |
Definition at line 56 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), and GetThis().
|
private |
Definition at line 55 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), GetFirst(), GetThis(), and ScValueIterator().
|
private |
Definition at line 64 of file dociter.hxx.
Referenced by GetFirst(), and GetThis().
|
private |
Definition at line 59 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), and GetThis().
|
private |
Definition at line 66 of file dociter.hxx.
Referenced by GetCurNumFmtInfo(), 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 GetFirst(), and GetThis().