LibreOffice Module sc (master) 1
Public Member Functions | Protected 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, 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
 
virtual OUString GetDescription (ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const
 
virtual OUString GetRefString (ScDocument &rDoc, bool bFlag3D=false) 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)
 

Protected Member Functions

OUString GetRefString (const ScBigRange &rRange, const ScDocument &rDoc, bool bFlag3D=false) const
 
virtual OUString GetRefString (ScDocument &rDoc, bool bFlag3D=false) const
 
- Protected Member Functions inherited from ScChangeAction
 ScChangeAction (ScChangeActionType, const ScRange &)
 
 ScChangeAction (ScChangeActionType, ScBigRange, const sal_uLong nAction, const sal_uLong nRejectAction, const ScChangeActionState eState, const DateTime &aDateTime, OUString aUser, OUString aComment)
 
 ScChangeAction (ScChangeActionType, 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 ()
 
virtual void AddContent (ScChangeActionContent *)=0
 
virtual void DeleteCellEntries ()=0
 
virtual void UpdateReference (const ScChangeTrack *, UpdateRefMode, const ScBigRange &, sal_Int32 nDx, sal_Int32 nDy, sal_Int32 nDz)
 
void Accept ()
 
virtual bool Reject (ScDocument &rDoc)=0
 
void RejectRestoreContents (ScChangeTrack *, SCCOL nDx, SCROW nDy)
 
bool IsInternalRejectable () const
 
virtual const ScChangeTrackGetChangeTrack () const =0
 

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
 
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 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 498 of file chgtrack.hxx.

Constructor & Destructor Documentation

◆ ScChangeActionMove() [1/2]

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

Definition at line 510 of file chgtrack.hxx.

◆ ~ScChangeActionMove()

ScChangeActionMove::~ScChangeActionMove ( )
overrideprivatevirtual

Definition at line 1104 of file chgtrack.cxx.

References DeleteCellEntries().

◆ ScChangeActionMove() [2/2]

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,
ScBigRange  aFromBigRange,
ScChangeTrack pTrack 
)

Definition at line 1090 of file chgtrack.cxx.

Member Function Documentation

◆ AddContent()

void ScChangeActionMove::AddContent ( ScChangeActionContent pContent)
overrideprivatevirtual

Implements ScChangeAction.

Definition at line 1109 of file chgtrack.cxx.

References mvCells.

Referenced by ScChangeTrack::UpdateReference().

◆ DeleteCellEntries()

void ScChangeActionMove::DeleteCellEntries ( )
overrideprivatevirtual

Implements ScChangeAction.

Definition at line 1114 of file chgtrack.cxx.

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

Referenced by ~ScChangeActionMove().

◆ GetChangeTrack()

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

Implements ScChangeAction.

Definition at line 537 of file chgtrack.hxx.

References pTrack.

◆ GetDelta()

void ScChangeActionMove::GetDelta ( sal_Int32 &  nDx,
sal_Int32 &  nDy,
sal_Int32 &  nDz 
) const

◆ GetDescription()

OUString ScChangeActionMove::GetDescription ( ScDocument rDoc,
bool  bSplitRange = false,
bool  bWarning = true 
) const
overridevirtual

◆ GetEndLastCut()

sal_uLong ScChangeActionMove::GetEndLastCut ( ) const
inlineprivate

Definition at line 529 of file chgtrack.hxx.

References nEndLastCut.

Referenced by ScChangeTrack::Undo().

◆ GetFromRange() [1/2]

ScBigRange & ScChangeActionMove::GetFromRange ( )
inlineprivate

◆ GetFromRange() [2/2]

const ScBigRange & ScChangeActionMove::GetFromRange ( ) const
inline

Definition at line 553 of file chgtrack.hxx.

References aFromRange.

◆ GetRefString() [1/3]

OUString ScChangeAction::GetRefString ( const ScBigRange rRange,
const ScDocument rDoc,
bool  bFlag3D = false 
) const
protected

Definition at line 219 of file chgtrack.cxx.

References ScChangeAction::IsRejected().

◆ GetRefString() [2/3]

OUString ScChangeAction::GetRefString ( ScDocument rDoc,
bool  bFlag3D = false 
) const
protectedvirtual

Reimplemented from ScChangeAction.

Definition at line 340 of file chgtrack.cxx.

◆ GetRefString() [3/3]

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

◆ GetStartLastCut()

sal_uLong ScChangeActionMove::GetStartLastCut ( ) const
inlineprivate

Definition at line 527 of file chgtrack.hxx.

References nStartLastCut.

Referenced by ScChangeTrack::Undo().

◆ Reject()

bool ScChangeActionMove::Reject ( ScDocument rDoc)
overrideprivatevirtual

◆ SetEndLastCut()

void ScChangeActionMove::SetEndLastCut ( sal_uLong  nVal)
inlineprivate

Definition at line 528 of file chgtrack.hxx.

References nEndLastCut.

◆ SetStartLastCut()

void ScChangeActionMove::SetStartLastCut ( sal_uLong  nVal)
inlineprivate

Definition at line 526 of file chgtrack.hxx.

References nStartLastCut.

◆ UpdateReference()

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 1119 of file chgtrack.cxx.

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

Friends And Related Function Documentation

◆ ScChangeActionDel

friend class ScChangeActionDel
friend

Definition at line 502 of file chgtrack.hxx.

◆ ScChangeTrack

friend class ScChangeTrack
friend

Definition at line 500 of file chgtrack.hxx.

◆ std::default_delete< ScChangeActionMove >

friend struct std::default_delete< ScChangeActionMove >
friend

Definition at line 500 of file chgtrack.hxx.

Member Data Documentation

◆ aFromRange

ScBigRange ScChangeActionMove::aFromRange
private

Definition at line 504 of file chgtrack.hxx.

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

◆ mvCells

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

Definition at line 506 of file chgtrack.hxx.

Referenced by AddContent(), and DeleteCellEntries().

◆ nEndLastCut

sal_uLong ScChangeActionMove::nEndLastCut
private

Definition at line 508 of file chgtrack.hxx.

Referenced by GetEndLastCut(), and SetEndLastCut().

◆ nStartLastCut

sal_uLong ScChangeActionMove::nStartLastCut
private

Definition at line 507 of file chgtrack.hxx.

Referenced by GetStartLastCut(), and SetStartLastCut().

◆ pTrack

ScChangeTrack* ScChangeActionMove::pTrack
private

Definition at line 505 of file chgtrack.hxx.

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


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