LibreOffice Module sc (master) 1
|
Walk through all cells in an area. More...
#include <dociter.hxx>
Public Member Functions | |
ScCellIterator (ScDocument &rDoc, const ScRange &rRange, SubtotalFlags nSubTotalFlags=SubtotalFlags::NONE) | |
const ScAddress & | GetPos () const |
CellType | getType () const |
OUString | getString () const |
const EditTextObject * | getEditText () const |
ScFormulaCell * | getFormulaCell () |
const ScFormulaCell * | getFormulaCell () const |
ScCellValue | getCellValue () const |
const ScRefCellValue & | getRefCellValue () 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 ScColumn * | getColumn () const |
void | init () |
bool | getCurrent () |
Private Attributes | |
ScDocument & | mrDoc |
ScAddress | maStartPos |
ScAddress | maEndPos |
ScAddress | maCurPos |
PositionType | maCurColPos |
SubtotalFlags | mnSubTotalFlags |
ScRefCellValue | maCurCell |
Walk through all cells in an area.
For SubTotal and Aggregate depending on mnSubTotalFlags.
Definition at line 205 of file dociter.hxx.
|
private |
Definition at line 207 of file dociter.hxx.
ScCellIterator::ScCellIterator | ( | ScDocument & | rDoc, |
const ScRange & | rRange, | ||
SubtotalFlags | nSubTotalFlags = SubtotalFlags::NONE |
||
) |
Definition at line 819 of file dociter.cxx.
References init().
bool ScCellIterator::equalsWithoutFormat | ( | const ScAddress & | rPos | ) | const |
Definition at line 1004 of file dociter.cxx.
References ScRefCellValue::equalsWithoutFormat(), maCurCell, and mrDoc.
bool ScCellIterator::first | ( | ) |
Definition at line 1010 of file dociter.cxx.
References getColumn(), getCurrent(), ScColumn::maCells, maCurColPos, maCurPos, maStartPos, ScAddress::Row(), ScAddress::Tab(), and ValidTab().
Referenced by ScChangeTrack::AppendContentsIfInRefDoc(), ScInterpreter::CreateMatrixFromDoubleRef(), ScViewFunc::DoRefConversion(), ScAccessibleCell::FillDependents(), sc::SearchResultsDlg::FillResults(), ScDetectiveFunc::FindPredLevelArea(), ScDetectiveFunc::FindSuccLevel(), ScDetectiveFunc::GetAllPreds(), ScDetectiveFunc::GetAllSuccs(), ScDocument::GetFormulaEntries(), ScAutoNameCache::GetNameOccurrences(), ScDetectiveFunc::HasError(), ScDocument::HasSubTotalCells(), ScDetectiveFunc::InsertPredLevelArea(), ScDetectiveFunc::InsertSuccLevel(), ScInterpreter::IterateParameters(), lcl_HasErrors(), ScChangeTrack::LookUpContents(), ScDetectiveFunc::MarkInvalid(), ScCompiler::ParseColRowName(), ScCompiler::ParseTableRefColumn(), ScTableLink::Refresh(), ScInterpreter::ScCountEmptyCells(), and ScTransferObj::StripRefs().
ScCellValue ScCellIterator::getCellValue | ( | ) | const |
Definition at line 973 of file dociter.cxx.
References CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_STRING, CELLTYPE_VALUE, ScFormulaCell::Clone(), EditTextObject::Clone(), ScRefCellValue::getDouble(), ScRefCellValue::getEditText(), ScRefCellValue::getFormula(), ScRefCellValue::getSharedString(), ScRefCellValue::getType(), and maCurCell.
Referenced by ScChangeTrack::AppendContentsIfInRefDoc(), and ScChangeTrack::LookUpContents().
|
private |
Definition at line 855 of file dociter.cxx.
References ScAddress::Col(), maCurPos, ScDocument::maTabs, mrDoc, and ScAddress::Tab().
Referenced by first(), getCurrent(), and setPos().
|
private |
Definition at line 892 of file dociter.cxx.
References ScRefCellValue::clear(), ScAddress::Col(), sc::element_type_empty, sc::element_type_formula, ScDocument::GetAllocatedColumnsCount(), getColumn(), ScColumn::GetDoc(), ScFormulaCell::GetErrCode(), IgnoreErrVal, IgnoreFiltered, IgnoreHidden, IgnoreNestedStAg, incBlock(), ScAddress::IncCol(), incPos(), ScAddress::IncTab(), ScColumn::IsEmptyData(), ScFormulaCell::IsSubTotal(), ScColumn::maCells, maCurCell, maCurColPos, maCurPos, maEndPos, maStartPos, mnSubTotalFlags, mrDoc, NONE, ScAddress::Row(), ScDocument::RowFiltered(), ScDocument::RowHidden(), ScAddress::SetCol(), setPos(), ScAddress::SetRow(), ScAddress::Tab(), and sc::toRefCell().
|
inline |
Definition at line 235 of file dociter.hxx.
References ScRefCellValue::getEditText(), and maCurCell.
Referenced by ScAutoNameCache::GetNameOccurrences().
|
inline |
Definition at line 236 of file dociter.hxx.
References ScRefCellValue::getFormula(), and maCurCell.
Referenced by ScViewFunc::DoRefConversion(), ScAccessibleCell::FillDependents(), ScDetectiveFunc::FindSuccLevel(), ScDetectiveFunc::GetAllPreds(), ScDetectiveFunc::GetAllSuccs(), ScAutoNameCache::GetNameOccurrences(), ScDetectiveFunc::HasError(), ScDocument::HasSubTotalCells(), ScDetectiveFunc::InsertSuccLevel(), lcl_HasErrors(), ScCompiler::ParseColRowName(), ScCompiler::ParseTableRefColumn(), ScTableLink::Refresh(), and ScTransferObj::StripRefs().
|
inline |
Definition at line 237 of file dociter.hxx.
References ScRefCellValue::getFormula(), and maCurCell.
|
inline |
Definition at line 231 of file dociter.hxx.
References maCurPos.
Referenced by ScChangeTrack::AppendContentsIfInRefDoc(), ScInterpreter::CreateMatrixFromDoubleRef(), ScViewFunc::DoRefConversion(), ScAccessibleCell::FillDependents(), sc::SearchResultsDlg::FillResults(), ScDetectiveFunc::FindPredLevelArea(), ScDetectiveFunc::FindSuccLevel(), ScDetectiveFunc::GetAllPreds(), ScDetectiveFunc::GetAllSuccs(), ScAutoNameCache::GetNameOccurrences(), ScDetectiveFunc::HasError(), ScDetectiveFunc::InsertPredLevelArea(), ScDetectiveFunc::InsertSuccLevel(), ScChangeTrack::LookUpContents(), ScDetectiveFunc::MarkInvalid(), ScCompiler::ParseColRowName(), ScCompiler::ParseTableRefColumn(), and ScTransferObj::StripRefs().
|
inline |
Definition at line 239 of file dociter.hxx.
References maCurCell.
Referenced by ScInterpreter::CreateMatrixFromDoubleRef(), ScChangeTrack::LookUpContents(), ScDetectiveFunc::MarkInvalid(), and ScInterpreter::ScCountEmptyCells().
OUString ScCellIterator::getString | ( | ) | const |
Definition at line 968 of file dociter.cxx.
References ScRefCellValue::getString(), maCurCell, and mrDoc.
Referenced by ScDocument::GetFormulaEntries(), ScAutoNameCache::GetNameOccurrences(), ScCompiler::ParseColRowName(), and ScCompiler::ParseTableRefColumn().
|
inline |
Definition at line 233 of file dociter.hxx.
References ScRefCellValue::getType(), and maCurCell.
Referenced by ScViewFunc::DoRefConversion(), ScAccessibleCell::FillDependents(), ScDetectiveFunc::FindPredLevelArea(), ScDetectiveFunc::FindSuccLevel(), ScDetectiveFunc::GetAllPreds(), ScDetectiveFunc::GetAllSuccs(), ScAutoNameCache::GetNameOccurrences(), ScDetectiveFunc::HasError(), ScDocument::HasSubTotalCells(), ScDetectiveFunc::InsertPredLevelArea(), ScDetectiveFunc::InsertSuccLevel(), lcl_HasErrors(), ScCompiler::ParseColRowName(), ScCompiler::ParseTableRefColumn(), ScTableLink::Refresh(), and ScTransferObj::StripRefs().
bool ScCellIterator::hasString | ( | ) | const |
Definition at line 994 of file dociter.cxx.
References ScRefCellValue::hasString(), and maCurCell.
Referenced by ScDocument::GetFormulaEntries(), ScAutoNameCache::GetNameOccurrences(), ScCompiler::ParseColRowName(), and ScCompiler::ParseTableRefColumn().
|
private |
Definition at line 828 of file dociter.cxx.
References maCurColPos, maCurPos, and ScAddress::SetRow().
Referenced by getCurrent(), and incPos().
|
private |
Definition at line 836 of file dociter.cxx.
References incBlock(), ScAddress::IncRow(), maCurColPos, and maCurPos.
Referenced by getCurrent(), and next().
|
private |
Definition at line 860 of file dociter.cxx.
References ScAddress::Col(), ScDocument::GetTableCount(), ScAddress::IncTab(), maCurPos, maEndPos, maStartPos, ScDocument::maTabs, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, mrDoc, PutInOrder(), ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::SetTab(), ScAddress::Tab(), ScDocument::ValidCol(), ScDocument::ValidRow(), and ValidTab().
Referenced by ScCellIterator().
bool ScCellIterator::isEmpty | ( | ) | const |
Definition at line 999 of file dociter.cxx.
References ScRefCellValue::isEmpty(), and maCurCell.
Referenced by ScInterpreter::CreateMatrixFromDoubleRef(), and ScInterpreter::IterateParameters().
bool ScCellIterator::next | ( | ) |
Definition at line 1022 of file dociter.cxx.
References getCurrent(), and incPos().
Referenced by ScChangeTrack::AppendContentsIfInRefDoc(), ScInterpreter::CreateMatrixFromDoubleRef(), ScViewFunc::DoRefConversion(), ScAccessibleCell::FillDependents(), sc::SearchResultsDlg::FillResults(), ScDetectiveFunc::FindPredLevelArea(), ScDetectiveFunc::FindSuccLevel(), ScDetectiveFunc::GetAllPreds(), ScDetectiveFunc::GetAllSuccs(), ScDocument::GetFormulaEntries(), ScAutoNameCache::GetNameOccurrences(), ScDetectiveFunc::HasError(), ScDocument::HasSubTotalCells(), ScDetectiveFunc::InsertPredLevelArea(), ScDetectiveFunc::InsertSuccLevel(), ScInterpreter::IterateParameters(), lcl_HasErrors(), ScChangeTrack::LookUpContents(), ScDetectiveFunc::MarkInvalid(), ScCompiler::ParseColRowName(), ScCompiler::ParseTableRefColumn(), ScTableLink::Refresh(), ScInterpreter::ScCountEmptyCells(), and ScTransferObj::StripRefs().
|
private |
Definition at line 849 of file dociter.cxx.
References getColumn(), ScColumn::maCells, maCurColPos, maCurPos, nPos, and ScAddress::SetRow().
Referenced by getCurrent().
|
private |
Definition at line 217 of file dociter.hxx.
Referenced by equalsWithoutFormat(), getCellValue(), getCurrent(), getEditText(), getFormulaCell(), getRefCellValue(), getString(), getType(), hasString(), and isEmpty().
|
private |
Definition at line 214 of file dociter.hxx.
Referenced by first(), getCurrent(), incBlock(), incPos(), and setPos().
|
private |
Definition at line 212 of file dociter.hxx.
Referenced by first(), getColumn(), getCurrent(), GetPos(), incBlock(), incPos(), init(), and setPos().
|
private |
Definition at line 211 of file dociter.hxx.
Referenced by getCurrent(), and init().
|
private |
Definition at line 210 of file dociter.hxx.
Referenced by first(), getCurrent(), and init().
|
private |
Definition at line 215 of file dociter.hxx.
Referenced by getCurrent().
|
private |
Definition at line 209 of file dociter.hxx.
Referenced by equalsWithoutFormat(), getColumn(), getCurrent(), getString(), and init().