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

#include <chgtrack.hxx>

Inheritance diagram for ScChangeActionDel:
[legend]
Collaboration diagram for ScChangeActionDel:
[legend]

Public Member Functions

 ScChangeActionDel (const sal_uLong nActionNumber, const ScChangeActionState eState, const sal_uLong nRejectingNumber, const ScBigRange &aBigRange, const OUString &aUser, const DateTime &aDateTime, const OUString &sComment, const ScChangeActionType eType, const SCCOLROW nD, ScChangeTrack *pTrack)
 
virtual ~ScChangeActionDel () override
 
bool IsBaseDelete () const
 
bool IsTopDelete () const
 
bool IsMultiDelete () const
 
bool IsTabDeleteCol () const
 
SCCOL GetDx () const
 
SCROW GetDy () const
 
ScBigRange GetOverAllRange () const
 
const ScChangeActionDelMoveEntryGetFirstMoveEntry () const
 
const ScChangeActionInsGetCutOffInsert () const
 
short GetCutOffCount () const
 
virtual OUString GetDescription (ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const override
 
void SetCutOffInsert (ScChangeActionIns *p, short n)
 
ScChangeActionDelMoveEntryAddCutOffMove (ScChangeActionMove *pMove, short nFrom, short nTo)
 
- 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)
 

Private Member Functions

 ScChangeActionDel (const ScDocument *pDoc, const ScRange &rRange, SCCOL nDx, SCROW nDy, ScChangeTrack *)
 
virtual void AddContent (ScChangeActionContent *) override
 
virtual void DeleteCellEntries () override
 
void UndoCutOffMoves ()
 
void UndoCutOffInsert ()
 
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

ScChangeTrackpTrack
 
std::vector< ScChangeActionContent * > mvCells
 
ScChangeActionInspCutOff
 
short nCutOff
 
ScChangeActionDelMoveEntrypLinkMove
 
SCCOL nDx
 
SCROW nDy
 

Friends

class ScChangeTrack
 
void ScChangeAction::Accept ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ScChangeActionDel() [1/2]

ScChangeActionDel::ScChangeActionDel ( const ScDocument pDoc,
const ScRange rRange,
SCCOL  nDx,
SCROW  nDy,
ScChangeTrack pTrackP 
)
private

◆ ScChangeActionDel() [2/2]

ScChangeActionDel::ScChangeActionDel ( const sal_uLong  nActionNumber,
const ScChangeActionState  eState,
const sal_uLong  nRejectingNumber,
const ScBigRange aBigRange,
const OUString &  aUser,
const DateTime aDateTime,
const OUString &  sComment,
const ScChangeActionType  eType,
const SCCOLROW  nD,
ScChangeTrack pTrack 
)

Definition at line 767 of file chgtrack.cxx.

References ScChangeAction::eType, nDx, nDy, SC_CAT_DELETE_COLS, and SC_CAT_DELETE_ROWS.

◆ ~ScChangeActionDel()

ScChangeActionDel::~ScChangeActionDel ( )
overridevirtual

Definition at line 786 of file chgtrack.cxx.

References DeleteCellEntries(), and pLinkMove.

Member Function Documentation

◆ AddContent()

void ScChangeActionDel::AddContent ( ScChangeActionContent pContent)
overrideprivatevirtual

Implements ScChangeAction.

Definition at line 796 of file chgtrack.cxx.

References mvCells.

Referenced by ScChangeTrack::UpdateReference().

◆ AddCutOffMove()

ScChangeActionDelMoveEntry * ScChangeActionDel::AddCutOffMove ( ScChangeActionMove pMove,
short  nFrom,
short  nTo 
)

◆ DeleteCellEntries()

void ScChangeActionDel::DeleteCellEntries ( )
overrideprivatevirtual

Implements ScChangeAction.

Definition at line 801 of file chgtrack.cxx.

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

Referenced by ~ScChangeActionDel().

◆ GetChangeTrack()

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

Implements ScChangeAction.

Definition at line 452 of file chgtrack.hxx.

References pTrack.

◆ GetCutOffCount()

short ScChangeActionDel::GetCutOffCount ( ) const
inline

Definition at line 483 of file chgtrack.hxx.

References nCutOff.

Referenced by ScChangeTrackingExportHelper::WriteCutOffs().

◆ GetCutOffInsert()

const ScChangeActionIns * ScChangeActionDel::GetCutOffInsert ( ) const
inline

Definition at line 482 of file chgtrack.hxx.

References pCutOff.

Referenced by ScChangeTrackingExportHelper::WriteCutOffs().

◆ GetDescription()

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

◆ GetDx()

SCCOL ScChangeActionDel::GetDx ( ) const
inline

◆ GetDy()

SCROW ScChangeActionDel::GetDy ( ) const
inline

◆ GetFirstMoveEntry()

const ScChangeActionDelMoveEntry * ScChangeActionDel::GetFirstMoveEntry ( ) const
inline

Definition at line 480 of file chgtrack.hxx.

References pLinkMove.

Referenced by ScChangeTrackingExportHelper::WriteCutOffs().

◆ GetOverAllRange()

ScBigRange ScChangeActionDel::GetOverAllRange ( ) const

◆ IsBaseDelete()

bool ScChangeActionDel::IsBaseDelete ( ) const

Definition at line 806 of file chgtrack.cxx.

References GetDx(), and GetDy().

Referenced by IsTopDelete(), and ScChangeTrack::Reject().

◆ IsMultiDelete()

bool ScChangeActionDel::IsMultiDelete ( ) const

◆ IsTabDeleteCol()

bool ScChangeActionDel::IsTabDeleteCol ( ) const

◆ IsTopDelete()

bool ScChangeActionDel::IsTopDelete ( ) const

◆ Reject()

bool ScChangeActionDel::Reject ( ScDocument rDoc)
overrideprivatevirtual

◆ SetCutOffInsert()

void ScChangeActionDel::SetCutOffInsert ( ScChangeActionIns p,
short  n 
)
inline

◆ UndoCutOffInsert()

void ScChangeActionDel::UndoCutOffInsert ( )
private

◆ UndoCutOffMoves()

void ScChangeActionDel::UndoCutOffMoves ( )
private

◆ UpdateReference()

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

Friends And Related Function Documentation

◆ ScChangeAction::Accept

void ScChangeAction::Accept ( )
friend

◆ ScChangeTrack

friend class ScChangeTrack
friend

Definition at line 427 of file chgtrack.hxx.

Member Data Documentation

◆ mvCells

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

Definition at line 431 of file chgtrack.hxx.

Referenced by AddContent(), and DeleteCellEntries().

◆ nCutOff

short ScChangeActionDel::nCutOff
private

Definition at line 433 of file chgtrack.hxx.

Referenced by GetCutOffCount(), SetCutOffInsert(), and UndoCutOffInsert().

◆ nDx

SCCOL ScChangeActionDel::nDx
private

Definition at line 435 of file chgtrack.hxx.

Referenced by GetDx(), and ScChangeActionDel().

◆ nDy

SCROW ScChangeActionDel::nDy
private

Definition at line 436 of file chgtrack.hxx.

Referenced by GetDy(), and ScChangeActionDel().

◆ pCutOff

ScChangeActionIns* ScChangeActionDel::pCutOff
private

Definition at line 432 of file chgtrack.hxx.

Referenced by GetCutOffInsert(), SetCutOffInsert(), and UndoCutOffInsert().

◆ pLinkMove

ScChangeActionDelMoveEntry* ScChangeActionDel::pLinkMove
private

◆ pTrack

ScChangeTrack* ScChangeActionDel::pTrack
private

Definition at line 430 of file chgtrack.hxx.

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


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