LibreOffice Module sc (master)
1
|
Context for reference update during shifting, moving or copying of cell ranges. More...
#include <refupdatecontext.hxx>
Public Member Functions | |
RefUpdateContext (ScDocument &rDoc) | |
bool | isInserted () const |
bool | isDeleted () const |
void | setBlockPositionReference (ColumnBlockPositionSet *blockPos) |
ColumnBlockPosition * | getBlockPosition (SCTAB nTab, SCCOL nCol) |
Public Attributes | |
ScDocument & | mrDoc |
UpdateRefMode | meMode |
update mode - insert/delete, copy, or move. More... | |
ScRange | maRange |
Range of cells that are about to be moved for insert/delete/move modes. More... | |
SCCOL | mnColDelta |
Amount and direction of movement in the column direction. More... | |
SCROW | mnRowDelta |
Amount and direction of movement in the row direction. More... | |
SCTAB | mnTabDelta |
Amount and direction of movement in the sheet direction. More... | |
UpdatedRangeNames | maUpdatedNames |
ColumnSet | maRegroupCols |
ColumnBlockPositionSet * | mpBlockPos |
Context for reference update during shifting, moving or copying of cell ranges.
Definition at line 53 of file refupdatecontext.hxx.
sc::RefUpdateContext::RefUpdateContext | ( | ScDocument & | rDoc | ) |
Definition at line 67 of file refupdatecontext.cxx.
References meMode.
ColumnBlockPosition * sc::RefUpdateContext::getBlockPosition | ( | SCTAB | nTab, |
SCCOL | nCol | ||
) |
Definition at line 85 of file refupdatecontext.cxx.
References sc::ColumnBlockPositionSet::getBlockPosition(), and mpBlockPos.
Referenced by ScColumn::UpdateReferenceOnCopy().
bool sc::RefUpdateContext::isDeleted | ( | ) | const |
Definition at line 75 of file refupdatecontext.cxx.
References meMode, mnColDelta, mnRowDelta, mnTabDelta, and URM_INSDEL.
Referenced by ScTokenArray::AdjustReferenceOnShift().
bool sc::RefUpdateContext::isInserted | ( | ) | const |
Definition at line 70 of file refupdatecontext.cxx.
References meMode, mnColDelta, mnRowDelta, mnTabDelta, and URM_INSDEL.
Referenced by ScTokenArray::AdjustReferenceOnShift(), and ScDocument::UpdateReference().
void sc::RefUpdateContext::setBlockPositionReference | ( | ColumnBlockPositionSet * | blockPos | ) |
Definition at line 80 of file refupdatecontext.cxx.
References mpBlockPos.
Referenced by ScDocument::CopyBlockFromClip().
ScRange sc::RefUpdateContext::maRange |
Range of cells that are about to be moved for insert/delete/move modes.
For copy mode, it's the destination range of cells that are about to be pasted. When moving a range of cells, it's the destination range, not the source range.
Definition at line 70 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInMovedName(), ScTokenArray::AdjustReferenceInName(), ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), ScTokenArray::CheckExpandReferenceBounds(), ScDocument::CopyBlockFromClip(), ScTable::CopyConditionalFormat(), ScTable::CopyData(), ScDocument::CopyOneCellFromClip(), ScColumn::CopyScenarioFrom(), ScColumn::CopyScenarioTo(), ScDocument::CopyTab(), ScDocument::DeleteCol(), ScDocument::DeleteRow(), ScDocument::InsertCol(), ScDocument::InsertRow(), ScChangeActionMove::Reject(), ScDocument::TransferTab(), ScUndoDragDrop::Undo(), ScFormulaCell::UpdatePosOnShift(), ScConditionEntry::UpdateReference(), ScColumn::UpdateReference(), ScConditionalFormat::UpdateReference(), ScTable::UpdateReference(), ScDocument::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), ScColumn::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
ColumnSet sc::RefUpdateContext::maRegroupCols |
Definition at line 80 of file refupdatecontext.hxx.
Referenced by ScDocument::CopyBlockFromClip(), ScDocument::DeleteCol(), ScDocument::DeleteRow(), ScDocument::InsertCol(), and ScColumn::UpdateReference().
UpdatedRangeNames sc::RefUpdateContext::maUpdatedNames |
Definition at line 79 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), and ScRangeData::UpdateReference().
UpdateRefMode sc::RefUpdateContext::meMode |
update mode - insert/delete, copy, or move.
The reorder mode (which corresponds with the reordering of sheets) is not used with this context.
Definition at line 62 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInName(), ScDocument::CopyBlockFromClip(), ScTable::CopyConditionalFormat(), ScTable::CopyData(), ScDocument::CopyOneCellFromClip(), ScColumn::CopyScenarioFrom(), ScColumn::CopyScenarioTo(), ScDocument::CopyTab(), ScDocument::DeleteCol(), ScDocument::DeleteRow(), ScDocument::InsertCol(), ScDocument::InsertRow(), isDeleted(), isInserted(), ScChangeActionMove::Reject(), ScDocument::TransferTab(), ScUndoDragDrop::Undo(), ScFormulaCell::UpdatePosOnShift(), ScRangeName::UpdateReference(), ScFormulaCell::UpdateReference(), ScConditionEntry::UpdateReference(), ScColumn::UpdateReference(), ScConditionalFormat::UpdateReference(), ScTable::UpdateReference(), ScConditionalFormatList::UpdateReference(), ScChangeActionContent::UpdateReference(), ScDocument::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), ScFormulaCell::UpdateReferenceOnMove(), and ScFormulaCell::UpdateReferenceOnShift().
SCCOL sc::RefUpdateContext::mnColDelta |
Amount and direction of movement in the column direction.
Definition at line 73 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInMovedName(), ScTokenArray::AdjustReferenceInName(), ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), ScDocument::CopyBlockFromClip(), ScTable::CopyConditionalFormat(), ScTable::CopyData(), ScDocument::CopyOneCellFromClip(), ScDocument::DeleteCol(), ScDocument::InsertCol(), isDeleted(), isInserted(), ScChangeActionMove::Reject(), ScUndoDragDrop::Undo(), ScFormulaCell::UpdatePosOnShift(), ScConditionEntry::UpdateReference(), ScConditionalFormat::UpdateReference(), ScTable::UpdateReference(), ScDocument::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
SCROW sc::RefUpdateContext::mnRowDelta |
Amount and direction of movement in the row direction.
Definition at line 75 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInMovedName(), ScTokenArray::AdjustReferenceInName(), ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), ScDocument::CopyBlockFromClip(), ScTable::CopyConditionalFormat(), ScTable::CopyData(), ScDocument::CopyOneCellFromClip(), ScDocument::DeleteRow(), ScDocument::InsertRow(), isDeleted(), isInserted(), ScChangeActionMove::Reject(), ScUndoDragDrop::Undo(), ScFormulaCell::UpdatePosOnShift(), ScConditionEntry::UpdateReference(), ScColumn::UpdateReference(), ScConditionalFormat::UpdateReference(), ScTable::UpdateReference(), ScDocument::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
SCTAB sc::RefUpdateContext::mnTabDelta |
Amount and direction of movement in the sheet direction.
Definition at line 77 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInMovedName(), ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), ScDocument::CopyBlockFromClip(), ScTable::CopyConditionalFormat(), ScTable::CopyData(), ScDocument::CopyOneCellFromClip(), ScColumn::CopyScenarioFrom(), ScColumn::CopyScenarioTo(), ScDocument::CopyTab(), isDeleted(), isInserted(), ScChangeActionMove::Reject(), ScDocument::TransferTab(), ScUndoDragDrop::Undo(), ScFormulaCell::UpdatePosOnShift(), ScConditionEntry::UpdateReference(), ScConditionalFormat::UpdateReference(), ScTable::UpdateReference(), ScDocument::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
ColumnBlockPositionSet* sc::RefUpdateContext::mpBlockPos |
Definition at line 82 of file refupdatecontext.hxx.
Referenced by getBlockPosition(), and setBlockPositionReference().
ScDocument& sc::RefUpdateContext::mrDoc |
Definition at line 55 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInMovedName(), ScTokenArray::AdjustReferenceInName(), ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), and ScColumn::UpdateReference().