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:
[legend]
Collaboration diagram for ScChangeActionMove:
[legend]

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 void GetDescription (OUString &rStr, ScDocument *pDoc, bool bSplitRange=false, bool bWarning=true) const override
 
virtual void GetRefString (OUString &rStr, ScDocument *pDoc, 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 *pDoc) override
 
virtual const ScChangeTrackGetChangeTrack () const override
 

Private Attributes

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

Friends

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 *pDoc, 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
 
ScChangeActionpNext
 
ScChangeActionpPrev
 
ScChangeActionLinkEntrypLinkAny
 
ScChangeActionLinkEntrypLinkDeletedIn
 
ScChangeActionLinkEntrypLinkDeleted
 
ScChangeActionLinkEntrypLinkDependent
 
sal_uLong nAction
 
sal_uLong nRejectAction
 
ScChangeActionType eType
 
ScChangeActionState eState
 

Detailed Description

Definition at line 503 of file chgtrack.hxx.

Constructor & Destructor Documentation

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

Definition at line 515 of file chgtrack.hxx.

ScChangeActionMove::~ScChangeActionMove ( )
overrideprivatevirtual

Definition at line 1144 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 1130 of file chgtrack.cxx.

Member Function Documentation

void ScChangeActionMove::AddContent ( ScChangeActionContent pContent)
overrideprivatevirtual

Implements ScChangeAction.

Definition at line 1149 of file chgtrack.cxx.

References mvCells.

Referenced by ScChangeTrack::UpdateReference().

void ScChangeActionMove::DeleteCellEntries ( )
overrideprivatevirtual

Implements ScChangeAction.

Definition at line 1154 of file chgtrack.cxx.

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

Referenced by ~ScChangeActionMove().

virtual const ScChangeTrack* ScChangeActionMove::GetChangeTrack ( ) const
inlineoverrideprivatevirtual

Implements ScChangeAction.

Definition at line 542 of file chgtrack.hxx.

References pTrack.

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

Definition at line 534 of file chgtrack.hxx.

References nEndLastCut.

Referenced by ScChangeTrack::Undo().

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

Definition at line 558 of file chgtrack.hxx.

References aFromRange.

void ScChangeActionMove::GetRefString ( OUString &  rStr,
ScDocument pDoc,
bool  bFlag3D = false 
) const
overridevirtual
sal_uLong ScChangeActionMove::GetStartLastCut ( ) const
inlineprivate

Definition at line 532 of file chgtrack.hxx.

References nStartLastCut.

Referenced by ScChangeTrack::Undo().

bool ScChangeActionMove::Reject ( ScDocument pDoc)
overrideprivatevirtual
void ScChangeActionMove::SetEndLastCut ( sal_uLong  nVal)
inlineprivate

Definition at line 533 of file chgtrack.hxx.

void ScChangeActionMove::SetStartLastCut ( sal_uLong  nVal)
inlineprivate

Definition at line 531 of file chgtrack.hxx.

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

Reimplemented from ScChangeAction.

Definition at line 1159 of file chgtrack.cxx.

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

Friends And Related Function Documentation

friend class ScChangeActionDel
friend

Definition at line 507 of file chgtrack.hxx.

friend class ScChangeTrack
friend

Definition at line 505 of file chgtrack.hxx.

friend struct std::default_delete< ScChangeActionMove >
friend

Definition at line 506 of file chgtrack.hxx.

Member Data Documentation

ScBigRange ScChangeActionMove::aFromRange
private

Definition at line 509 of file chgtrack.hxx.

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

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

Definition at line 511 of file chgtrack.hxx.

Referenced by AddContent(), and DeleteCellEntries().

sal_uLong ScChangeActionMove::nEndLastCut
private

Definition at line 513 of file chgtrack.hxx.

Referenced by GetEndLastCut().

sal_uLong ScChangeActionMove::nStartLastCut
private

Definition at line 512 of file chgtrack.hxx.

Referenced by GetStartLastCut().

ScChangeTrack* ScChangeActionMove::pTrack
private

Definition at line 510 of file chgtrack.hxx.

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


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