|
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, ScDocument *pClipdoc=nullptr) | |
| 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... | |
| bool | mbTransposed |
| Are the data transposed? 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 52 of file refupdatecontext.hxx.
| sc::RefUpdateContext::RefUpdateContext | ( | ScDocument & | rDoc, |
| ScDocument * | pClipdoc = nullptr |
||
| ) |
Definition at line 67 of file refupdatecontext.cxx.
References ScDocument::IsClipboard(), and meMode.
| ColumnBlockPosition * sc::RefUpdateContext::getBlockPosition | ( | SCTAB | nTab, |
| SCCOL | nCol | ||
| ) |
Definition at line 94 of file refupdatecontext.cxx.
References sc::ColumnBlockPositionSet::getBlockPosition(), and mpBlockPos.
Referenced by ScColumn::UpdateReferenceOnCopy().
| bool sc::RefUpdateContext::isDeleted | ( | ) | const |
Definition at line 84 of file refupdatecontext.cxx.
References meMode, mnColDelta, mnRowDelta, mnTabDelta, and URM_INSDEL.
Referenced by ScTokenArray::AdjustReferenceOnShift().
| bool sc::RefUpdateContext::isInserted | ( | ) | const |
Definition at line 79 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 89 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 69 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(), ScChangeActionContent::UpdateReference(), ScConditionEntry::UpdateReference(), ScConditionalFormat::UpdateReference(), ScColumn::UpdateReference(), ScDocument::UpdateReference(), ScTable::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), ScColumn::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
| ColumnSet sc::RefUpdateContext::maRegroupCols |
Definition at line 82 of file refupdatecontext.hxx.
Referenced by ScDocument::CopyBlockFromClip(), ScDocument::DeleteCol(), ScDocument::DeleteRow(), ScDocument::InsertCol(), and ScColumn::UpdateReference().
| UpdatedRangeNames sc::RefUpdateContext::maUpdatedNames |
Definition at line 81 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), and ScRangeData::UpdateReference().
| bool sc::RefUpdateContext::mbTransposed |
Are the data transposed?
Definition at line 72 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInMovedName(), and ScTokenArray::AdjustReferenceOnMove().
| 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 61 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(), ScFormulaCell::UpdateReference(), ScChangeActionContent::UpdateReference(), ScConditionalFormatList::UpdateReference(), ScConditionEntry::UpdateReference(), ScConditionalFormat::UpdateReference(), ScColumn::UpdateReference(), ScDocument::UpdateReference(), ScTable::UpdateReference(), ScRangeName::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), ScFormulaCell::UpdateReferenceOnMove(), and ScFormulaCell::UpdateReferenceOnShift().
| SCCOL sc::RefUpdateContext::mnColDelta |
Amount and direction of movement in the column 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::DeleteCol(), ScDocument::InsertCol(), isDeleted(), isInserted(), ScChangeActionMove::Reject(), ScUndoDragDrop::Undo(), ScFormulaCell::UpdatePosOnShift(), ScChangeActionContent::UpdateReference(), ScConditionEntry::UpdateReference(), ScConditionalFormat::UpdateReference(), ScDocument::UpdateReference(), ScTable::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
| SCROW sc::RefUpdateContext::mnRowDelta |
Amount and direction of movement in the row direction.
Definition at line 77 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(), ScChangeActionContent::UpdateReference(), ScConditionEntry::UpdateReference(), ScConditionalFormat::UpdateReference(), ScColumn::UpdateReference(), ScDocument::UpdateReference(), ScTable::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
| SCTAB sc::RefUpdateContext::mnTabDelta |
Amount and direction of movement in the sheet direction.
Definition at line 79 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(), ScChangeActionContent::UpdateReference(), ScConditionEntry::UpdateReference(), ScConditionalFormat::UpdateReference(), ScDocument::UpdateReference(), ScTable::UpdateReference(), ScFormulaCell::UpdateReferenceOnCopy(), and ScFormulaCell::UpdateReferenceOnMove().
| ColumnBlockPositionSet* sc::RefUpdateContext::mpBlockPos |
Definition at line 84 of file refupdatecontext.hxx.
Referenced by getBlockPosition(), and setBlockPositionReference().
| ScDocument& sc::RefUpdateContext::mrDoc |
Definition at line 54 of file refupdatecontext.hxx.
Referenced by ScTokenArray::AdjustReferenceInMovedName(), ScTokenArray::AdjustReferenceInName(), ScTokenArray::AdjustReferenceOnMove(), ScTokenArray::AdjustReferenceOnShift(), ScFormulaCell::UpdatePosOnShift(), and ScColumn::UpdateReference().