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)
 
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...
 
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 53 of file refupdatecontext.hxx.

Constructor & Destructor Documentation

sc::RefUpdateContext::RefUpdateContext ( ScDocument rDoc)

Definition at line 67 of file refupdatecontext.cxx.

References meMode.

Member Function Documentation

ColumnBlockPosition * sc::RefUpdateContext::getBlockPosition ( SCTAB  nTab,
SCCOL  nCol 
)
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
void sc::RefUpdateContext::setBlockPositionReference ( ColumnBlockPositionSet blockPos)

Definition at line 80 of file refupdatecontext.cxx.

References mpBlockPos.

Referenced by ScDocument::CopyBlockFromClip().

Member Data Documentation

ScRange sc::RefUpdateContext::maRange
ColumnSet sc::RefUpdateContext::maRegroupCols
UpdatedRangeNames sc::RefUpdateContext::maUpdatedNames
UpdateRefMode sc::RefUpdateContext::meMode
SCCOL sc::RefUpdateContext::mnColDelta
SCROW sc::RefUpdateContext::mnRowDelta
SCTAB sc::RefUpdateContext::mnTabDelta
ColumnBlockPositionSet* sc::RefUpdateContext::mpBlockPos

Definition at line 82 of file refupdatecontext.hxx.

Referenced by getBlockPosition(), and setBlockPositionReference().

ScDocument& sc::RefUpdateContext::mrDoc

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