LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScUndoDeleteCells Class Reference

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoDeleteCells (ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, DelCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
 
virtual ~ScUndoDeleteCells () override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual void Repeat (SfxRepeatTarget &rTarget) override
 
virtual bool CanRepeat (SfxRepeatTarget &rTarget) const override
 
virtual OUString GetComment () const override
 
- Public Member Functions inherited from ScMoveUndo
 ScMoveUndo (ScDocShell *pDocSh, ScDocumentUniquePtr pRefDoc, std::unique_ptr< ScRefUndoData > pRefData)
 
virtual ~ScMoveUndo () override
 
- Public Member Functions inherited from ScSimpleUndo
 ScSimpleUndo (ScDocShell *pDocSh)
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
virtual std::optional< ScRangegetAffectedRange () const
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

void DoChange (const bool bUndo)
 
void SetChangeTrack ()
 

Private Attributes

ScRange aEffRange
 
SCTAB nCount
 
std::unique_ptr< SCTAB[]> pTabs
 
std::unique_ptr< SCTAB[]> pScenarios
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 
DelCellCmd eCmd
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- Protected Member Functions inherited from ScMoveUndo
void BeginUndo ()
 
void EndUndo ()
 
- Protected Member Functions inherited from ScSimpleUndo
bool IsPaintLocked () const
 
bool SetViewMarkData (const ScMarkData &rMarkData)
 
void BeginUndo ()
 
void EndUndo ()
 
void BeginRedo ()
 
void EndRedo ()
 
void BroadcastChanges (const ScRange &rRange)
 
void BroadcastChanges (const DataSpansType &rSpans)
 Broadcast changes on specified spans. More...
 
- Static Protected Member Functions inherited from ScSimpleUndo
static void ShowTable (SCTAB nTab)
 
static void ShowTable (const ScRange &rRange)
 
- Protected Attributes inherited from ScMoveUndo
std::unique_ptr< SdrUndoActionpDrawUndo
 
ScDocumentUniquePtr pRefUndoDoc
 
std::unique_ptr< ScRefUndoDatapRefUndoData
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 73 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoDeleteCells()

ScUndoDeleteCells::ScUndoDeleteCells ( ScDocShell pNewDocShell,
const ScRange rRange,
SCTAB  nNewCount,
std::unique_ptr< SCTAB[]>  pNewTabs,
std::unique_ptr< SCTAB[]>  pNewScenarios,
DelCellCmd  eNewCmd,
ScDocumentUniquePtr  pUndoDocument,
std::unique_ptr< ScRefUndoData pRefData 
)

◆ ~ScUndoDeleteCells()

ScUndoDeleteCells::~ScUndoDeleteCells ( )
overridevirtual

Definition at line 372 of file undoblk.cxx.

Member Function Documentation

◆ CanRepeat()

bool ScUndoDeleteCells::CanRepeat ( SfxRepeatTarget &  rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 633 of file undoblk.cxx.

References rTarget.

◆ DoChange()

void ScUndoDeleteCells::DoChange ( const bool  bUndo)
private

◆ GetComment()

OUString ScUndoDeleteCells::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 376 of file undoblk.cxx.

References ScResId().

◆ Redo()

void ScUndoDeleteCells::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoDeleteCells::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 627 of file undoblk.cxx.

References eCmd, and rTarget.

◆ SetChangeTrack()

void ScUndoDeleteCells::SetChangeTrack ( )
private

◆ Undo()

void ScUndoDeleteCells::Undo ( )
overridevirtual

Member Data Documentation

◆ aEffRange

ScRange ScUndoDeleteCells::aEffRange
private

Definition at line 90 of file undoblk.hxx.

Referenced by DoChange(), Redo(), ScUndoDeleteCells(), SetChangeTrack(), and Undo().

◆ eCmd

DelCellCmd ScUndoDeleteCells::eCmd
private

Definition at line 98 of file undoblk.hxx.

Referenced by DoChange(), Repeat(), and ScUndoDeleteCells().

◆ nCount

SCTAB ScUndoDeleteCells::nCount
private

Definition at line 91 of file undoblk.hxx.

Referenced by DoChange(), Redo(), and Undo().

◆ nEndChangeAction

sal_uLong ScUndoDeleteCells::nEndChangeAction
private

Definition at line 97 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nStartChangeAction

sal_uLong ScUndoDeleteCells::nStartChangeAction
private

Definition at line 96 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ pScenarios

std::unique_ptr<SCTAB[]> ScUndoDeleteCells::pScenarios
private

Definition at line 95 of file undoblk.hxx.

Referenced by DoChange(), and Undo().

◆ pTabs

std::unique_ptr<SCTAB[]> ScUndoDeleteCells::pTabs
private

Definition at line 93 of file undoblk.hxx.

Referenced by DoChange(), Redo(), and Undo().


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