LibreOffice Module sc (master) 1
Public Member Functions | Public Attributes | List of all members
sc::RefUpdateContext Struct Reference

Context for reference update during shifting, moving or copying of cell ranges. More...

#include <refupdatecontext.hxx>

Collaboration diagram for sc::RefUpdateContext:
[legend]

Public Member Functions

 RefUpdateContext (ScDocument &rDoc, ScDocument *pClipdoc=nullptr)
 
bool isInserted () const
 
bool isDeleted () const
 
void setBlockPositionReference (ColumnBlockPositionSet *blockPos)
 
ColumnBlockPositiongetBlockPosition (SCTAB nTab, SCCOL nCol)
 

Public Attributes

ScDocumentmrDoc
 
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
 
ColumnBlockPositionSetmpBlockPos
 

Detailed Description

Context for reference update during shifting, moving or copying of cell ranges.

Definition at line 52 of file refupdatecontext.hxx.

Constructor & Destructor Documentation

◆ RefUpdateContext()

sc::RefUpdateContext::RefUpdateContext ( ScDocument rDoc,
ScDocument pClipdoc = nullptr 
)

Definition at line 67 of file refupdatecontext.cxx.

References ScDocument::IsClipboard(), and meMode.

Member Function Documentation

◆ getBlockPosition()

ColumnBlockPosition * sc::RefUpdateContext::getBlockPosition ( SCTAB  nTab,
SCCOL  nCol 
)

◆ isDeleted()

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().

◆ isInserted()

bool sc::RefUpdateContext::isInserted ( ) const

◆ setBlockPositionReference()

void sc::RefUpdateContext::setBlockPositionReference ( ColumnBlockPositionSet blockPos)

Definition at line 89 of file refupdatecontext.cxx.

References mpBlockPos.

Referenced by ScDocument::CopyBlockFromClip().

Member Data Documentation

◆ maRange

ScRange sc::RefUpdateContext::maRange

◆ maRegroupCols

ColumnSet sc::RefUpdateContext::maRegroupCols

◆ maUpdatedNames

UpdatedRangeNames sc::RefUpdateContext::maUpdatedNames

◆ mbTransposed

bool sc::RefUpdateContext::mbTransposed

Are the data transposed?

Definition at line 72 of file refupdatecontext.hxx.

Referenced by ScTokenArray::AdjustReferenceInMovedName(), and ScTokenArray::AdjustReferenceOnMove().

◆ meMode

UpdateRefMode sc::RefUpdateContext::meMode

◆ mnColDelta

SCCOL sc::RefUpdateContext::mnColDelta

◆ mnRowDelta

SCROW sc::RefUpdateContext::mnRowDelta

◆ mnTabDelta

SCTAB sc::RefUpdateContext::mnTabDelta

◆ mpBlockPos

ColumnBlockPositionSet* sc::RefUpdateContext::mpBlockPos

Definition at line 84 of file refupdatecontext.hxx.

Referenced by getBlockPosition(), and setBlockPositionReference().

◆ mrDoc

ScDocument& sc::RefUpdateContext::mrDoc

The documentation for this struct was generated from the following files: