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 void GetDescription (OUString &rStr, ScDocument *pDoc, 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 void GetRefString (OUString &rStr, ScDocument *pDoc, 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 *pDoc) 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, 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 430 of file chgtrack.hxx.

Constructor & Destructor Documentation

ScChangeActionDel::ScChangeActionDel ( const ScDocument pDoc,
const ScRange rRange,
SCCOL  nDx,
SCROW  nDy,
ScChangeTrack pTrackP 
)
private
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 802 of file chgtrack.cxx.

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

ScChangeActionDel::~ScChangeActionDel ( )
overridevirtual

Definition at line 821 of file chgtrack.cxx.

References DeleteCellEntries(), and pLinkMove.

Member Function Documentation

void ScChangeActionDel::AddContent ( ScChangeActionContent pContent)
overrideprivatevirtual

Implements ScChangeAction.

Definition at line 831 of file chgtrack.cxx.

References mvCells.

Referenced by ScChangeTrack::UpdateReference().

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

Implements ScChangeAction.

Definition at line 836 of file chgtrack.cxx.

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

Referenced by ~ScChangeActionDel().

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

Implements ScChangeAction.

Definition at line 457 of file chgtrack.hxx.

References pTrack.

short ScChangeActionDel::GetCutOffCount ( ) const
inline

Definition at line 488 of file chgtrack.hxx.

References nCutOff.

Referenced by ScChangeTrackingExportHelper::WriteCutOffs().

const ScChangeActionIns* ScChangeActionDel::GetCutOffInsert ( ) const
inline

Definition at line 487 of file chgtrack.hxx.

References pCutOff.

Referenced by ScChangeTrackingExportHelper::WriteCutOffs().

void ScChangeActionDel::GetDescription ( OUString &  rStr,
ScDocument pDoc,
bool  bSplitRange = false,
bool  bWarning = true 
) const
overridevirtual
SCCOL ScChangeActionDel::GetDx ( ) const
inline
SCROW ScChangeActionDel::GetDy ( ) const
inline
const ScChangeActionDelMoveEntry* ScChangeActionDel::GetFirstMoveEntry ( ) const
inline

Definition at line 485 of file chgtrack.hxx.

References pLinkMove.

Referenced by ScChangeTrackingExportHelper::WriteCutOffs().

ScBigRange ScChangeActionDel::GetOverAllRange ( ) const
bool ScChangeActionDel::IsBaseDelete ( ) const

Definition at line 841 of file chgtrack.cxx.

References GetDx(), and GetDy().

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

bool ScChangeActionDel::IsMultiDelete ( ) const
bool ScChangeActionDel::IsTabDeleteCol ( ) const
bool ScChangeActionDel::IsTopDelete ( ) const
bool ScChangeActionDel::Reject ( ScDocument pDoc)
overrideprivatevirtual
void ScChangeActionDel::SetCutOffInsert ( ScChangeActionIns p,
short  n 
)
inline
void ScChangeActionDel::UndoCutOffInsert ( )
private
void ScChangeActionDel::UndoCutOffMoves ( )
private
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

friend class ScChangeTrack
friend

Definition at line 432 of file chgtrack.hxx.

Member Data Documentation

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

Definition at line 436 of file chgtrack.hxx.

Referenced by AddContent(), and DeleteCellEntries().

short ScChangeActionDel::nCutOff
private

Definition at line 438 of file chgtrack.hxx.

Referenced by GetCutOffCount(), and UndoCutOffInsert().

SCCOL ScChangeActionDel::nDx
private

Definition at line 440 of file chgtrack.hxx.

Referenced by GetDx(), and ScChangeActionDel().

SCROW ScChangeActionDel::nDy
private

Definition at line 441 of file chgtrack.hxx.

Referenced by GetDy(), and ScChangeActionDel().

ScChangeActionIns* ScChangeActionDel::pCutOff
private

Definition at line 437 of file chgtrack.hxx.

Referenced by GetCutOffInsert(), and UndoCutOffInsert().

ScChangeActionDelMoveEntry* ScChangeActionDel::pLinkMove
private
ScChangeTrack* ScChangeActionDel::pTrack
private

Definition at line 435 of file chgtrack.hxx.

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


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