LibreOffice Module sc (master) 1
|
#include <rangelst.hxx>
Public Member Functions | |
ScRangeList () | |
ScRangeList (const ScRangeList &rList) | |
ScRangeList (ScRangeList &&rList) noexcept | |
ScRangeList (const ScRange &rRange) | |
virtual | ~ScRangeList () override |
ScRangeList & | operator= (const ScRangeList &rList) |
ScRangeList & | operator= (ScRangeList &&rList) noexcept |
ScRefFlags | Parse (std::u16string_view, const ScDocument &, formula::FormulaGrammar::AddressConvention eConv=formula::FormulaGrammar::CONV_OOO, SCTAB nDefaultTab=0, sal_Unicode cDelimiter=0) |
void | Format (OUString &, ScRefFlags nFlags, const ScDocument &, formula::FormulaGrammar::AddressConvention eConv=formula::FormulaGrammar::CONV_OOO, sal_Unicode cDelimiter=0, bool bFullAddressNotation=false) const |
void | Join (const ScRange &, bool bIsInList=false) |
bool | UpdateReference (UpdateRefMode, const ScDocument *, const ScRange &rWhere, SCCOL nDx, SCROW nDy, SCTAB nDz) |
void | InsertRow (SCTAB nTab, SCCOL nColStart, SCCOL nColEnd, SCROW nRowPos, SCSIZE nSize) |
void | InsertCol (SCTAB nTab, SCROW nRowStart, SCROW nRowEnd, SCCOL nColPos, SCSIZE nSize) |
void | InsertCol (SCTAB nTab, SCCOL nColPos) |
bool | DeleteArea (SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2) |
For now this method assumes that nTab1 == nTab2 The algorithm will be much more complicated if nTab1 != nTab2. More... | |
const ScRange * | Find (const ScAddress &) const |
ScRange * | Find (const ScAddress &) |
bool | operator== (const ScRangeList &) const |
bool | operator!= (const ScRangeList &r) const |
bool | Intersects (const ScRange &) const |
bool | Contains (const ScRange &) const |
sal_uInt64 | GetCellCount () const |
ScAddress | GetTopLeftCorner () const |
ScRangeList | GetIntersectedRange (const ScRange &rRange) const |
void | Remove (size_t nPos) |
void | RemoveAll () |
ScRange | Combine () const |
void | AddAndPartialCombine (const ScRange &) |
bool | empty () const |
size_t | size () const |
ScRange & | operator[] (size_t idx) |
const ScRange & | operator[] (size_t idx) const |
ScRange & | front () |
const ScRange & | front () const |
ScRange & | back () |
const ScRange & | back () const |
void | push_back (const ScRange &rRange) |
::std::vector< ScRange >::const_iterator | begin () const |
::std::vector< ScRange >::const_iterator | end () const |
::std::vector< ScRange >::iterator | begin () |
::std::vector< ScRange >::iterator | end () |
void | insert (std::vector< ScRange >::iterator aPos, std::vector< ScRange >::const_iterator aSourceBegin, std::vector< ScRange >::const_iterator aSourceEnd) |
void | swap (ScRangeList &r) |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Private Attributes | |
::std::vector< ScRange > | maRanges |
SCROW | mnMaxRowUsed |
Additional Inherited Members | |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Definition at line 31 of file rangelst.hxx.
ScRangeList::ScRangeList | ( | ) |
Definition at line 1041 of file rangelst.cxx.
ScRangeList::ScRangeList | ( | const ScRangeList & | rList | ) |
Definition at line 1043 of file rangelst.cxx.
|
noexcept |
Definition at line 1050 of file rangelst.cxx.
ScRangeList::ScRangeList | ( | const ScRange & | rRange | ) |
Definition at line 1056 of file rangelst.cxx.
References maRanges, and push_back().
|
overridevirtual |
Definition at line 88 of file rangelst.cxx.
void ScRangeList::AddAndPartialCombine | ( | const ScRange & | rNewRange | ) |
Definition at line 299 of file rangelst.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), maRanges, mnMaxRowUsed, push_back(), ScAddress::Row(), ScAddress::SetRow(), and ScAddress::Tab().
|
inline |
Definition at line 94 of file rangelst.hxx.
Referenced by ScTabViewShell::DoAutoSum(), oox::xls::SheetDataBuffer::setCellFormat(), and XclImpXFRangeBuffer::SetXF().
|
inline |
Definition at line 95 of file rangelst.hxx.
|
inline |
Definition at line 99 of file rangelst.hxx.
|
inline |
Definition at line 97 of file rangelst.hxx.
Referenced by oox::xls::addIfNotInMyMap(), ScDPCollection::SheetCaches::getCache(), ScDPCollection::SheetCaches::getExistingCache(), ScDPCollection::SheetCaches::hasCache(), and ScDPCollection::SheetCaches::updateCache().
ScRange ScRangeList::Combine | ( | ) | const |
Definition at line 1107 of file rangelst.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), maRanges, ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::SetTab(), and ScAddress::Tab().
Referenced by ScUndoPaste::DoChange(), ScClipParam::getWholeRange(), ScDocShell::PostPaint(), XclImpValidationManager::ReadDV(), ScDocFunc::ReplaceConditionalFormat(), ScMarkData::ScMarkData(), ScGridWindow::SetCellSelectionPixel(), ScConditionEntry::UpdateReference(), and XclExpCondfmt::XclExpCondfmt().
bool ScRangeList::Contains | ( | const ScRange & | rRange | ) | const |
Definition at line 1082 of file rangelst.cxx.
References maRanges.
Referenced by ScDBFunc::DoUpdateCharts(), ScHTMLImport::GetHTMLRangeNameList(), ScMyTables::IsPartOfMatrix(), and ScTabView::MoveCursorAbs().
bool ScRangeList::DeleteArea | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCTAB | nTab1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
SCTAB | nTab2 | ||
) |
For now this method assumes that nTab1 == nTab2 The algorithm will be much more complicated if nTab1 != nTab2.
Definition at line 951 of file rangelst.cxx.
References ScRange::Contains(), i, Join(), maRanges, and Remove().
Referenced by ScConditionalFormat::DeleteArea(), and UpdateReference().
|
inline |
Definition at line 88 of file rangelst.hxx.
Referenced by ScConditionalFormatList::AddToDocument(), ScVbaEventListener::changesOccurred(), oox::xls::DefinedName::convertFormula(), ScViewFunc::CopyToClip(), XclExpNameManagerImpl::CreateBuiltInNames(), ScCondFormatsObj::createByRange(), ScTableSheetObj::createCursorByRange(), ScConditionalFormat::DeleteArea(), ScUndoPaste::DoChange(), ScCellShell::ExecuteEdit(), oox::xls::FormulaProcessorBase::extractCellRange(), oox::xls::Scenario::finalizeImport(), FuInsertChart::FuInsertChart(), ScViewFunc::GetAutoSumFormula(), oox::xls::WorksheetGlobals::getCellRangeList(), ScDocument::GetClipArea(), ScDocument::GetClipStart(), ScCondFormatDlg::GetConditionalFormat(), ScTabViewShell::GetDrawInsState(), ScClipParam::getPasteColSize(), ScClipParam::getPasteRowSize(), ScTableSheetObj::GetTab_Impl(), GetTopLeftCorner(), ScDocument::HasClipFilteredRows(), ScAcceptChgDlg::Init(), ScHighlightChgDlg::Init(), XclExpNameManager::InsertBuiltInName(), ScMyTables::IsPartOfMatrix(), ScTableProtectionImpl::isSelectionEditable(), lcl_collectAllPredOrSuccRanges(), lcl_FirstTab(), lcl_TotalRange(), ScViewFunc::MarkAndJumpToRanges(), ScVbaRange::obtainRangeEvenIfRangeListIsEmpty(), oox::xls::SparklineGroupsContext::onCharacters(), oox::xls::ExtConditionalFormattingContext::onEndElement(), XclImpControlHelper::ReadCellLinkFormula(), XclImpCondFormat::ReadCF(), XclImpValidationManager::ReadDV(), XclImpControlHelper::ReadSourceRangeFormula(), ScCellRangeObj::RefChanged(), ScCellObj::RefChanged(), ScFormulaReferenceHelper::ReleaseFocus(), ScCellsEnumeration::ScCellsEnumeration(), ScCondFormatDlg::ScCondFormatDlg(), oox::xls::SheetDataBuffer::setCellFormat(), ScGridWindow::SetCellSelectionPixel(), ScConditionalFormat::SetRange(), sc::SparklineDataRangeDialog::setupValues(), XclImpXFRangeBuffer::SetXF(), ScMultiBlockUndo::ShowBlock(), ScClipParam::transpose(), ScUndoPaste::Undo(), ScDPCollection::SheetCaches::updateReference(), and ScDocument::UpdateTranspose().
|
inline |
Definition at line 100 of file rangelst.hxx.
|
inline |
Definition at line 98 of file rangelst.hxx.
Referenced by oox::xls::addIfNotInMyMap(), ScDPCollection::SheetCaches::getCache(), ScDPCollection::SheetCaches::getExistingCache(), ScDPCollection::SheetCaches::hasCache(), and ScDPCollection::SheetCaches::updateCache().
Definition at line 1034 of file rangelst.cxx.
References maRanges.
Definition at line 1027 of file rangelst.cxx.
References maRanges.
Referenced by ScCellShell::ExecuteEdit(), ScHTMLTable::FillEmptyCells(), ScHTMLTable::GetSpan(), and ScHTMLTable::InsertNewCell().
void ScRangeList::Format | ( | OUString & | rStr, |
ScRefFlags | nFlags, | ||
const ScDocument & | rDoc, | ||
formula::FormulaGrammar::AddressConvention | eConv = formula::FormulaGrammar::CONV_OOO , |
||
sal_Unicode | cDelimiter = 0 , |
||
bool | bFullAddressNotation = false |
||
) | const |
Definition at line 132 of file rangelst.cxx.
References aBuf, cDelimiter, formula::FormulaCompiler::GetNativeSymbolChar(), maRanges, and ocSep.
Referenced by FormulaTemplate::applyRangeList(), FuInsertChart::FuInsertChart(), ScVbaPageSetup::getPrintArea(), ScCondFormatManagerWindow::Init(), XclExpNameManagerImpl::InsertBuiltInName(), lcl_FindRangeByName(), ScCondFormatDlg::ScCondFormatDlg(), ScDocument::SetChartRanges(), XclXmlUtils::ToOString(), and XclExpCondfmt::XclExpCondfmt().
|
inline |
Definition at line 92 of file rangelst.hxx.
Referenced by ScVbaNames::Add(), ScConditionalFormatList::AddToDocument(), XclImpCondFormat::Apply(), ScAccessibleSpreadsheet::CalcScAddressFromRangeList(), ScViewFunc::CopyToClipMultiRange(), oox::xls::FormulaProcessorBase::extractCellRange(), oox::xls::CondFormatBuffer::finalizeImport(), getCellRangeAddressForVBARange(), ScDocument::GetClipArea(), ScDocument::GetClipStart(), ScClipParam::getPasteColSize(), ScClipParam::getPasteRowSize(), getRangeForName(), ScAcceptChgDlg::Init(), ScHighlightChgDlg::Init(), XclExpNameManager::InsertBuiltInName(), lcl_collectAllPredOrSuccRanges(), lcl_makeXRangeFromSheetCellRanges(), ScViewFunc::MarkAndJumpToRanges(), ScDataPilotTableObj::Notify(), ScVbaRange::obtainRangeEvenIfRangeListIsEmpty(), XclImpControlHelper::ReadCellLinkFormula(), XclImpCondFormat::ReadCF(), XclImpValidationManager::ReadDV(), XclImpControlHelper::ReadSourceRangeFormula(), ScFormulaReferenceHelper::ReleaseFocus(), ScMultiBlockUndo::ShowBlock(), ScVbaRange::SpecialCells(), ScClipParam::transpose(), ScUndoPaste::Undo(), ScDocument::UpdateTranspose(), XclExpColorScale::XclExpColorScale(), XclExpDataBar::XclExpDataBar(), XclExpExtConditionalFormatting::XclExpExtConditionalFormatting(), and XclExpIconSet::XclExpIconSet().
|
inline |
Definition at line 93 of file rangelst.hxx.
sal_uInt64 ScRangeList::GetCellCount | ( | ) | const |
Definition at line 1087 of file rangelst.cxx.
References maRanges.
Referenced by ScAccessibleSpreadsheet::CalcScRangeListDifferenceMax(), and oox::xls::CondFormatContext::onEndElement().
ScRangeList ScRangeList::GetIntersectedRange | ( | const ScRange & | rRange | ) | const |
Definition at line 1165 of file rangelst.cxx.
References ScRange::GetVars(), Join(), and maRanges.
Referenced by ScTable::CopyConditionalFormat(), and ScTableProtectionImpl::isBlockEditable().
ScAddress ScRangeList::GetTopLeftCorner | ( | ) | const |
Definition at line 1150 of file rangelst.cxx.
References empty(), i, maRanges, n, and size().
Referenced by oox::xls::CondFormatRule::appendFormula(), ScCondFormatObj::createEntry(), oox::xls::CondFormatRule::finalizeImport(), oox::xls::CondFormat::finalizeImport(), ScCondFormatList::GetConditionalFormat(), oox::xls::CondFormatRule::importCfRule(), oox::xls::DataValidationsContextBase::importDataValidation(), ScCondFormatManagerWindow::Init(), oox::xls::ExtConditionalFormattingContext::onEndElement(), and ScCondFormatDlg::ScCondFormatDlg().
|
inline |
Definition at line 101 of file rangelst.hxx.
Referenced by ScMarkData::GetMarkedRowSpans().
Definition at line 500 of file rangelst.cxx.
void ScRangeList::InsertCol | ( | SCTAB | nTab, |
SCROW | nRowStart, | ||
SCROW | nRowEnd, | ||
SCCOL | nColPos, | ||
SCSIZE | nSize | ||
) |
Definition at line 472 of file rangelst.cxx.
References Join(), and maRanges.
Referenced by ScConditionalFormat::InsertCol().
void ScRangeList::InsertRow | ( | SCTAB | nTab, |
SCCOL | nColStart, | ||
SCCOL | nColEnd, | ||
SCROW | nRowPos, | ||
SCSIZE | nSize | ||
) |
Definition at line 442 of file rangelst.cxx.
References Join(), maRanges, and mnMaxRowUsed.
Referenced by ScConditionalFormat::InsertRow().
bool ScRangeList::Intersects | ( | const ScRange & | rRange | ) | const |
Definition at line 1077 of file rangelst.cxx.
References maRanges.
Referenced by ScHeaderControl::Command(), ScTable::CopyConditionalFormat(), and ScViewUtil::IsActionShown().
void ScRangeList::Join | ( | const ScRange & | rNewRange, |
bool | bIsInList = false |
||
) |
Definition at line 152 of file rangelst.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScRange::Contains(), i, maRanges, mnMaxRowUsed, push_back(), Remove(), ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), and ScAddress::Tab().
Referenced by sc::QueryRange::add(), XMLTableStyleContext::ApplyCondFormat(), ScCondFormatsObj::createByRange(), DeleteArea(), ScUndoDragDrop::DoUndo(), ScGridWindow::dumpCellProperties(), ScTable::FillAuto(), ScHTMLTable::FillEmptyCells(), ScMarkData::FillRangeListWithMarks(), ScConditionalFormatList::GetCombinedRange(), GetIntersectedRange(), ScColumn::GetUnprotectedCells(), XclExpDV::InsertCellRange(), InsertCol(), ScHTMLTable::InsertNewCell(), InsertRow(), ScDBData::InvalidateTableColumnNames(), ScDBData::Notify(), XclImpCondFormat::ReadCF(), ScTableLink::Refresh(), ScTable::ReplaceAll(), ScTable::SearchAll(), ScTable::SearchAllStyle(), ScTable::SearchRangeForAllEmptyCells(), ScTable::SetPatternAreaCondFormat(), ScCondFormatObj::setPropertyValue(), and UpdateReference().
bool ScRangeList::operator!= | ( | const ScRangeList & | r | ) | const |
Definition at line 352 of file rangelst.cxx.
References operator==().
ScRangeList & ScRangeList::operator= | ( | const ScRangeList & | rList | ) |
Definition at line 1063 of file rangelst.cxx.
References maRanges, and mnMaxRowUsed.
|
noexcept |
Definition at line 1070 of file rangelst.cxx.
bool ScRangeList::operator== | ( | const ScRangeList & | r | ) | const |
|
inline |
Definition at line 90 of file rangelst.hxx.
References idx.
|
inline |
Definition at line 91 of file rangelst.hxx.
References idx.
ScRefFlags ScRangeList::Parse | ( | std::u16string_view | rStr, |
const ScDocument & | rDoc, | ||
formula::FormulaGrammar::AddressConvention | eConv = formula::FormulaGrammar::CONV_OOO , |
||
SCTAB | nDefaultTab = 0 , |
||
sal_Unicode | cDelimiter = 0 |
||
) |
Definition at line 92 of file rangelst.cxx.
References applyStartToEndFlags(), ScRange::aStart, BITS, cDelimiter, COL2_VALID, formula::FormulaCompiler::GetNativeSymbolChar(), o3tl::getToken(), nPos, ocSep, ScRange::ParseAny(), push_back(), ROW2_VALID, ScAddress::SetTab(), TAB2_VALID, VALID, and ZERO.
Referenced by ScVbaRange::getCellRangesForAddress(), ScDocument::GetChartRanges(), ScCondFormatDlg::GetConditionalFormat(), ScDocument::GetOldChartParameters(), IMPL_LINK(), and IMPL_LINK_NOARG().
void ScRangeList::push_back | ( | const ScRange & | rRange | ) |
Definition at line 1137 of file rangelst.cxx.
References ScRange::aEnd, maRanges, mnMaxRowUsed, and ScAddress::Row().
Referenced by AddAndPartialCombine(), ScMyTables::AddMatrixRange(), ScChartsObj::addNewByName(), XclExpMergedcells::AppendRange(), ScViewFunc::ApplySelectionPattern(), ScVbaEventListener::changesOccurred(), XclImpAddressConverter::ConvertRangeList(), oox::xls::AddressConverter::convertToCellRangeList(), ScDocument::CopyFromClip(), ScDocument::CopyTabToClip(), XclExpNameManagerImpl::CreateBuiltInNames(), ScDBDocFunc::DataPilotUpdate(), ScViewFunc::DeleteContents(), ScViewFunc::DetectiveMarkPred(), ScViewFunc::DetectiveMarkSucc(), ScCellShell::ExecuteEdit(), ScMarkData::ExtendRangeListTables(), ScViewFunc::FillAuto(), XclExpLabelranges::FillRangeList(), ScMarkData::FillRangeListWithMarks(), oox::xls::Scenario::finalizeImport(), ExcelToSc::GetAbsRefs(), ExcelToSc8::GetAbsRefs(), ScViewFunc::GetAutoSumArea(), ScDPCollection::SheetCaches::getCache(), ScHTMLImport::GetHTMLRangeNameList(), ScVbaPageSetup::getPrintArea(), ScRangeStringConverter::GetRangeListFromString(), ScMarkData::GetSelectionCover(), ScCellShell::GetState(), ScHTMLTable::InsertNewCell(), ScTableProtectionImpl::isBlockEditable(), Join(), lcl_GetAutoSumForColumnRange(), lcl_GetAutoSumForRowRange(), lcl_makeXRangeFromSheetCellRanges(), ScStatisticsInputOutputDialog::MakeColumnRangeList(), ScStatisticsInputOutputDialog::MakeRowRangeList(), ScViewFunc::MarkAndJumpToRanges(), ScViewFunc::MoveTable(), ScChart2DataSequence::Notify(), ScModelObj::NotifyChanges(), HelperNotifyChanges::NotifyIfChangesListeners(), Parse(), ScFormulaReferenceHelper::ParseWithNames(), ScDocShell::PostPaint(), ScViewFunc::PostPasteFromClip(), sc::UndoInsertSparkline::Redo(), ScAreaLink::Refresh(), ScClipParam::ScClipParam(), ScCondFormatDlg::ScCondFormatDlg(), ScRangeList(), ScTable::SearchAndReplaceEmptyCells(), oox::xls::SheetDataBuffer::setCellFormat(), ScDocument::SetClipArea(), XclImpXFRangeBuffer::SetMerge(), ScChartObj::setRanges(), ScViewFunc::SetWidthOrHeight(), XclImpXFRangeBuffer::SetXF(), ScVbaRange::SpecialCells(), XclXmlUtils::ToOString(), ScDocShell::TransferTab(), ScClipParam::transpose(), and sc::UndoInsertSparkline::Undo().
void ScRangeList::Remove | ( | size_t | nPos | ) |
Definition at line 1093 of file rangelst.cxx.
References maRanges, and nPos.
Referenced by DeleteArea(), Join(), oox::xls::SheetDataBuffer::setCellFormat(), oox::xls::AddressConverter::validateCellRangeList(), and XclExpAddressConverter::ValidateRangeList().
void ScRangeList::RemoveAll | ( | ) |
Definition at line 1101 of file rangelst.cxx.
References maRanges, and mnMaxRowUsed.
Referenced by XclImpAddressConverter::ConvertRangeList(), ScDocument::CopyTabToClip(), XclImpFmlaCompImpl::CreateRangeList(), ScMyTables::DeleteTable(), ScMarkData::ExtendRangeListTables(), oox::xls::FormulaProcessorBase::extractCellRangeList(), ScMarkData::FillRangeListWithMarks(), oox::xls::SheetViewSettings::importSelection(), XclImpXFRangeBuffer::Initialize(), ScFormulaReferenceHelper::ParseWithNames(), ScDBCollection::RefreshDirtyTableColumnNames(), ScMarkData::ResetMark(), ScDocument::SetClipArea(), and ScUndoDragDrop::Undo().
|
inline |
Definition at line 89 of file rangelst.hxx.
Referenced by ScVbaNames::Add(), ScTable::AddCondFormatData(), ScAcceptChgDlg::AppendChangeAction(), ScAcceptChgDlg::AppendFilteredAction(), XclImpValidationManager::Apply(), ScHelperFunctions::ApplyBorder(), XMLTableStyleContext::ApplyCondFormat(), ScMatrixComparisonGenerator::ApplyOutput(), ScDocument::ApplySelectionFrame(), ScAccessibleSpreadsheet::CalcScAddressFromRangeList(), ScAccessibleSpreadsheet::CalcScRangeListDifferenceMax(), ScFunctionAccess::callFunction(), ScOptSolverDlg::CallSolver(), ScClipUtil::CheckDestRanges(), ScCellCursorObj::collapseToCurrentArray(), ScCellCursorObj::collapseToCurrentRegion(), ScCellCursorObj::collapseToMergedArea(), ScCellCursorObj::collapseToSize(), ScDocument::ContainsNotesInRange(), oox::xls::DefinedName::convertFormula(), XclExpAddressConverter::ConvertRangeList(), ScDocument::CopyFromClip(), ScDocument::CopyMultiRangeFromClip(), ScDocument::CopyScenario(), ScTable::CopyToClip(), ScViewFunc::CopyToClip(), ScViewFunc::CopyToClipMultiRange(), ScTableSheetObj::createCursorByRange(), XclExpFormulaCompiler::CreateFormula(), ScDocument::DeleteSelection(), ScTable::DeleteSelection(), ScDocument::DeleteSelectionTab(), ScTabViewShell::DoAutoSum(), ScUndoPaste::DoChange(), ScTabView::DoChartSelection(), ScGridWindow::dumpCellProperties(), ScXMLTableScenarioContext::endFastElement(), ScXMLTableContext::endFastElement(), ExcEScenario::ExcEScenario(), ScCellCursorObj::expandToEntireColumns(), ScCellCursorObj::expandToEntireRows(), ScMarkData::ExtendRangeListTables(), ScConditionEntry::FillCache(), ScHTMLTable::FillEmptyCells(), sc::SearchResultsDlg::FillResults(), XclImpXFRangeBuffer::Finalize(), ScDocument::ForgetNoteCaptions(), FuInsertChart::FuInsertChart(), ScDocument::GetAllNoteCaptionsState(), ScViewFunc::GetAutoSumFormula(), XclExpMergedcells::GetBaseXFId(), ScDPCollection::SheetCaches::getCache(), getCellRangeAddressForVBARange(), ScTableSheetsObj::getCellRangesByName(), ScDocument::GetClipArea(), ScConditionalFormatList::GetCombinedRange(), ScVbaRange::getEntireColumnOrRow(), ScMarkData::GetMarkedRowSpans(), ScDocument::GetNotesInRange(), ScClipParam::getPasteColSize(), ScClipParam::getPasteRowSize(), getRangeForName(), ScTableSheetObj::getRanges(), ScDocument::GetRangeScriptType(), getScRangeListForAddress(), ScTabViewObj::getSelection(), ScDocument::GetSelectionFrame(), ScTableSheetObj::GetTab_Impl(), GetTopLeftCorner(), ScColorFormat::getValues(), ScCellCursorObj::gotoEnd(), ScCellCursorObj::gotoEndOfUsedArea(), ScCellCursorObj::gotoNext(), ScCellCursorObj::gotoOffset(), ScCellCursorObj::gotoPrevious(), ScCellCursorObj::gotoStart(), ScCellCursorObj::gotoStartOfUsedArea(), ScDocument::HasClipFilteredRows(), ScGridWindow::HasScenarioButton(), ScTable::HasScenarioRange(), ScColumn::HasSelectionMatrixFragment(), IMPL_LINK_NOARG(), sc::IMPL_LINK_NOARG(), ScAcceptChgDlg::InsertChangeActionContent(), oox::xls::SparklineGroupsContext::insertSparkline(), ScDocument::InterpretCellsIfNeeded(), ScDocument::InterpretDirtyCells(), ScTableProtectionImpl::isBlockEditable(), ScAccessibleCell::IsDropdown(), ScClipParam::isMultiRange(), ScTable::IsSelectionEditable(), ScTableProtectionImpl::isSelectionEditable(), ScAcceptChgDlg::IsValidAction(), lcl_collectAllPredOrSuccRanges(), lcl_FindRangeByName(), lcl_makeXRangeFromSheetCellRanges(), lcl_TabInRanges(), lcl_TotalRange(), lcl_WholeSheet(), ScViewFunc::MarkAndJumpToRanges(), ScMarkData::MarkFromRangeList(), ScCellsEnumeration::Notify(), ScChart2DataSequence::Notify(), ScDataPilotTableObj::Notify(), ScModelObj::NotifyChanges(), ScVbaRange::Offset(), oox::xls::CondFormatContext::onEndElement(), oox::xls::ExtConditionalFormattingContext::onEndElement(), operator<<(), ScViewFunc::PasteFromClip(), ScClipUtil::PasteFromClipboard(), ScViewFunc::PasteFromClipToMultiRanges(), ScDocShell::PostPaint(), ScViewFunc::PostPasteFromClip(), XclImpCondFormat::ReadCF(), XclImpLabelranges::ReadLabelranges(), ScCellRangeObj::RefChanged(), ScCellObj::RefChanged(), ScAreaLink::Refresh(), ScTableLink::Refresh(), ScDBCollection::RefreshDirtyTableColumnNames(), ScTable::RemoveCondFormatData(), ScTable::ReplaceAll(), ScAnalysisOfVarianceDialog::RowColumn(), XclExpMergedcells::SaveXml(), sc::SingleColumnSpanSet::scan(), ScMarkData::ScMarkData(), ScViewFunc::SearchAndReplace(), ScTable::SearchAndReplaceEmptyCells(), ScTabViewObj::select(), ScMultiSel::Set(), ScTabViewObj::setActiveSheet(), oox::xls::SheetDataBuffer::setCellFormat(), ScUndoPaste::SetChangeTrack(), ScVbaPageSetup::setPrintArea(), ScMultiBlockUndo::ShowBlock(), ScFormulaReferenceHelper::ShowSimpleReference(), ScTable::SortReorderByRowRefUpdate(), ScVbaRange::SpecialCells(), ScFormulaListener::startListening(), oox::xls::AddressConverter::toApiSequence(), ScClipParam::transpose(), ScDocument::TransposeClip(), ScUndoDragDrop::Undo(), ScGridWindow::UpdateCopySourceOverlay(), ScConditionalFormat::UpdateDeleteTab(), ScConditionalFormat::UpdateInsertTab(), ScConditionalFormat::UpdateMoveTab(), ScChart2DataSequence::UpdateTokensFromRanges(), ScTabViewShell::UseSubTotal(), oox::xls::AddressConverter::validateCellRangeList(), XclExpAddressConverter::ValidateRangeList(), and XclExpLabelranges::XclExpLabelranges().
void ScRangeList::swap | ( | ScRangeList & | r | ) |
Definition at line 1144 of file rangelst.cxx.
References maRanges, and mnMaxRowUsed.
Referenced by sc::QueryRange::swapRanges().
bool ScRangeList::UpdateReference | ( | UpdateRefMode | eUpdateRefMode, |
const ScDocument * | pDoc, | ||
const ScRange & | rWhere, | ||
SCCOL | nDx, | ||
SCROW | nDy, | ||
SCTAB | nDz | ||
) |
Definition at line 357 of file rangelst.cxx.
References DeleteArea(), ScRange::GetVars(), i, Join(), maRanges, mnMaxRowUsed, n, SAL_WARN_IF, ScRefUpdate::Update(), UR_NOTHING, and URM_INSDEL.
Referenced by ScCellsObj::Notify(), ScCellsEnumeration::Notify(), ScChart2DataSequence::Notify(), ScDataPilotTableObj::Notify(), and ScConditionalFormat::UpdateReference().
|
private |
Definition at line 107 of file rangelst.hxx.
Referenced by AddAndPartialCombine(), Combine(), Contains(), DeleteArea(), Find(), Format(), GetCellCount(), GetIntersectedRange(), GetTopLeftCorner(), InsertCol(), InsertRow(), Intersects(), Join(), operator=(), operator==(), push_back(), Remove(), RemoveAll(), ScRangeList(), swap(), and UpdateReference().
|
private |
Definition at line 108 of file rangelst.hxx.
Referenced by AddAndPartialCombine(), InsertRow(), Join(), operator=(), push_back(), RemoveAll(), swap(), and UpdateReference().