LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ScChangeActionMove Class Referencefinal

#include <chgtrack.hxx>

Inheritance diagram for ScChangeActionMove:
Collaboration diagram for ScChangeActionMove:

Public Member Functions

 ScChangeActionMove (const sal_uLong nActionNumber, const ScChangeActionState eState, const sal_uLong nRejectingNumber, const ScBigRange &aToBigRange, const OUString &aUser, const DateTime &aDateTime, const OUString &sComment, const ScBigRange &aFromBigRange, ScChangeTrack *pTrack)
const ScBigRangeGetFromRange () const
SC_DLLPUBLIC void GetDelta (sal_Int32 &nDx, sal_Int32 &nDy, sal_Int32 &nDz) const
virtual OUString GetDescription (ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const override
virtual OUString GetRefString (ScDocument &rDoc, bool bFlag3D=false) const override
- Public Member Functions inherited from ScChangeAction
virtual ~ScChangeAction ()
bool IsInsertType () const
bool IsDeleteType () const
bool IsVirgin () const
SC_DLLPUBLIC bool IsAccepted () const
bool IsRejected () const
bool IsRejecting () const
bool IsVisible () const
bool IsTouchable () const
bool IsDialogRoot () const
bool IsDialogParent () const
bool IsMasterDelete () const
bool IsClickable () const
bool IsRejectable () const
const ScBigRangeGetBigRange () const
SC_DLLPUBLIC DateTime GetDateTime () const
const DateTimeGetDateTimeUTC () const
ScChangeActionType GetType () const
ScChangeActionState GetState () const
sal_uLong GetActionNumber () const
sal_uLong GetRejectAction () const
ScChangeActionGetNext () const
ScChangeActionGetPrev () const
bool IsDeletedIn () const
bool IsDeletedIn (const ScChangeAction *) const
bool IsDeletedInDelType (ScChangeActionType) const
void RemoveAllDeletedIn ()
const ScChangeActionLinkEntryGetFirstDeletedEntry () const
const ScChangeActionLinkEntryGetFirstDependentEntry () const
bool HasDependent () const
bool HasDeleted () const
void SetDateTimeUTC (const DateTime &rDT)
const OUString & GetUser () const
const OUString & GetComment () const
void SetComment (const OUString &rStr)
void SetDeletedInThis (sal_uLong nActionNumber, const ScChangeTrack *pTrack)
void AddDependent (sal_uLong nActionNumber, const ScChangeTrack *pTrack)

Private Member Functions

 ScChangeActionMove (const ScRange &rFromRange, const ScRange &rToRange, ScChangeTrack *pTrackP)
virtual ~ScChangeActionMove () override
virtual void AddContent (ScChangeActionContent *) override
virtual void DeleteCellEntries () override
ScBigRangeGetFromRange ()
void SetStartLastCut (sal_uLong nVal)
sal_uLong GetStartLastCut () const
void SetEndLastCut (sal_uLong nVal)
sal_uLong GetEndLastCut () const
virtual void UpdateReference (const ScChangeTrack *, UpdateRefMode, const ScBigRange &, sal_Int32 nDx, sal_Int32 nDy, sal_Int32 nDz) override
virtual bool Reject (ScDocument &rDoc) override
virtual const ScChangeTrackGetChangeTrack () const override

Private Attributes

ScBigRange aFromRange
std::vector< ScChangeActionContent * > mvCells
sal_uLong nStartLastCut
sal_uLong nEndLastCut


class ScChangeTrack
struct std::default_delete< ScChangeActionMove >
class ScChangeActionDel

Additional Inherited Members

- Protected Member Functions inherited from ScChangeAction
 ScChangeAction (ScChangeActionType, const ScRange &)
 ScChangeAction (ScChangeActionType, const ScBigRange &, const sal_uLong nAction, const sal_uLong nRejectAction, const ScChangeActionState eState, const DateTime &aDateTime, const OUString &aUser, const OUString &aComment)
 ScChangeAction (ScChangeActionType, const ScBigRange &, const sal_uLong nAction)
OUString GetRefString (const ScBigRange &rRange, const ScDocument &rDoc, bool bFlag3D=false) const
void SetActionNumber (sal_uLong n)
void SetRejectAction (sal_uLong n)
void SetUser (const OUString &r)
void SetType (ScChangeActionType e)
void SetState (ScChangeActionState e)
void SetRejected ()
ScBigRangeGetBigRange ()
void AddLink (ScChangeAction *p, ScChangeActionLinkEntry *pL)
virtual ScChangeActionLinkEntryGetDeletedIn () const
virtual ScChangeActionLinkEntry ** GetDeletedInAddress ()
bool RemoveDeletedIn (const ScChangeAction *)
void SetDeletedIn (ScChangeAction *)
ScChangeActionLinkEntryAddDeleted (ScChangeAction *p)
ScChangeActionLinkEntryAddDependent (ScChangeAction *p)
void RemoveAllDependent ()
void RemoveAllLinks ()
void Accept ()
void RejectRestoreContents (ScChangeTrack *, SCCOL nDx, SCROW nDy)
bool IsInternalRejectable () const
- Protected Attributes inherited from ScChangeAction
ScBigRange aBigRange
DateTime aDateTime
OUString aUser
 UTC. More...
OUString aComment
sal_uLong nAction
sal_uLong nRejectAction
ScChangeActionType eType
ScChangeActionState eState

Detailed Description

Definition at line 500 of file chgtrack.hxx.

Constructor & Destructor Documentation

ScChangeActionMove::ScChangeActionMove ( const ScRange rFromRange,
const ScRange rToRange,
ScChangeTrack pTrackP 

Definition at line 512 of file chgtrack.hxx.

ScChangeActionMove::~ScChangeActionMove ( )

Definition at line 1106 of file chgtrack.cxx.

References DeleteCellEntries().

ScChangeActionMove::ScChangeActionMove ( const sal_uLong  nActionNumber,
const ScChangeActionState  eState,
const sal_uLong  nRejectingNumber,
const ScBigRange aToBigRange,
const OUString &  aUser,
const DateTime aDateTime,
const OUString &  sComment,
const ScBigRange aFromBigRange,
ScChangeTrack pTrack 

Definition at line 1092 of file chgtrack.cxx.

Member Function Documentation

void ScChangeActionMove::AddContent ( ScChangeActionContent pContent)

Implements ScChangeAction.

Definition at line 1111 of file chgtrack.cxx.

References mvCells.

Referenced by ScChangeTrack::UpdateReference().

void ScChangeActionMove::DeleteCellEntries ( )

Implements ScChangeAction.

Definition at line 1116 of file chgtrack.cxx.

References ScChangeTrack::DeleteCellEntries(), mvCells, and pTrack.

Referenced by ~ScChangeActionMove().

virtual const ScChangeTrack* ScChangeActionMove::GetChangeTrack ( ) const

Implements ScChangeAction.

Definition at line 539 of file chgtrack.hxx.

References pTrack.

void ScChangeActionMove::GetDelta ( sal_Int32 &  nDx,
sal_Int32 &  nDy,
sal_Int32 &  nDz 
) const
OUString ScChangeActionMove::GetDescription ( ScDocument rDoc,
bool  bSplitRange = false,
bool  bWarning = true 
) const
sal_uLong ScChangeActionMove::GetEndLastCut ( ) const

Definition at line 531 of file chgtrack.hxx.

References nEndLastCut.

Referenced by ScChangeTrack::Undo().

ScBigRange& ScChangeActionMove::GetFromRange ( )
const ScBigRange& ScChangeActionMove::GetFromRange ( ) const

Definition at line 555 of file chgtrack.hxx.

References aFromRange.

OUString ScChangeActionMove::GetRefString ( ScDocument rDoc,
bool  bFlag3D = false 
) const
sal_uLong ScChangeActionMove::GetStartLastCut ( ) const

Definition at line 529 of file chgtrack.hxx.

References nStartLastCut.

Referenced by ScChangeTrack::Undo().

bool ScChangeActionMove::Reject ( ScDocument rDoc)
void ScChangeActionMove::SetEndLastCut ( sal_uLong  nVal)

Definition at line 530 of file chgtrack.hxx.

void ScChangeActionMove::SetStartLastCut ( sal_uLong  nVal)

Definition at line 528 of file chgtrack.hxx.

void ScChangeActionMove::UpdateReference ( const ScChangeTrack ,
UpdateRefMode  eMode,
const ScBigRange rRange,
sal_Int32  nDx,
sal_Int32  nDy,
sal_Int32  nDz 

Reimplemented from ScChangeAction.

Definition at line 1121 of file chgtrack.cxx.

References aFromRange, ScChangeAction::GetBigRange(), and ScRefUpdate::Update().

Friends And Related Function Documentation

friend class ScChangeActionDel

Definition at line 504 of file chgtrack.hxx.

friend class ScChangeTrack

Definition at line 502 of file chgtrack.hxx.

friend struct std::default_delete< ScChangeActionMove >

Definition at line 503 of file chgtrack.hxx.

Member Data Documentation

ScBigRange ScChangeActionMove::aFromRange

Definition at line 506 of file chgtrack.hxx.

Referenced by GetFromRange(), Reject(), and UpdateReference().

std::vector<ScChangeActionContent*> ScChangeActionMove::mvCells

Definition at line 508 of file chgtrack.hxx.

Referenced by AddContent(), and DeleteCellEntries().

sal_uLong ScChangeActionMove::nEndLastCut

Definition at line 510 of file chgtrack.hxx.

Referenced by GetEndLastCut().

sal_uLong ScChangeActionMove::nStartLastCut

Definition at line 509 of file chgtrack.hxx.

Referenced by GetStartLastCut().

ScChangeTrack* ScChangeActionMove::pTrack

Definition at line 507 of file chgtrack.hxx.

Referenced by DeleteCellEntries(), GetChangeTrack(), and Reject().

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