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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoDeleteContents (ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScRange &rRange, ScDocumentUniquePtr &&pNewUndoDoc, bool bNewMulti, InsertDeleteFlags nNewFlags, bool bObjects)
 
virtual ~ScUndoDeleteContents () 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
 
void SetDataSpans (const std::shared_ptr< DataSpansType > &pSpans)
 
- 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

std::shared_ptr< DataSpansTypempDataSpans
 
ScRange aRange
 
ScMarkData aMarkData
 
ScDocumentUniquePtr pUndoDoc
 
std::unique_ptr< SdrUndoActionpDrawUndo
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 
InsertDeleteFlags nFlags
 
bool bMulti
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- 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 ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 248 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoDeleteContents()

ScUndoDeleteContents::ScUndoDeleteContents ( ScDocShell pNewDocShell,
const ScMarkData rMark,
const ScRange rRange,
ScDocumentUniquePtr &&  pNewUndoDoc,
bool  bNewMulti,
InsertDeleteFlags  nNewFlags,
bool  bObjects 
)

◆ ~ScUndoDeleteContents()

ScUndoDeleteContents::~ScUndoDeleteContents ( )
overridevirtual

Definition at line 80 of file undoblk3.cxx.

References pDrawUndo, and pUndoDoc.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 201 of file undoblk3.cxx.

References rTarget.

◆ DoChange()

void ScUndoDeleteContents::DoChange ( const bool  bUndo)
private

◆ GetComment()

OUString ScUndoDeleteContents::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 86 of file undoblk3.cxx.

References ScResId().

◆ Redo()

void ScUndoDeleteContents::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoDeleteContents::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 195 of file undoblk3.cxx.

References nFlags, and rTarget.

◆ SetChangeTrack()

void ScUndoDeleteContents::SetChangeTrack ( )
private

◆ SetDataSpans()

void ScUndoDeleteContents::SetDataSpans ( const std::shared_ptr< DataSpansType > &  pSpans)

Definition at line 91 of file undoblk3.cxx.

References mpDataSpans.

◆ Undo()

void ScUndoDeleteContents::Undo ( )
overridevirtual

Member Data Documentation

◆ aMarkData

ScMarkData ScUndoDeleteContents::aMarkData
private

Definition at line 271 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoDeleteContents().

◆ aRange

ScRange ScUndoDeleteContents::aRange
private

Definition at line 270 of file undoblk.hxx.

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

◆ bMulti

bool ScUndoDeleteContents::bMulti
private

Definition at line 277 of file undoblk.hxx.

Referenced by DoChange().

◆ mpDataSpans

std::shared_ptr<DataSpansType> ScUndoDeleteContents::mpDataSpans
private

Definition at line 268 of file undoblk.hxx.

Referenced by DoChange(), and SetDataSpans().

◆ nEndChangeAction

sal_uLong ScUndoDeleteContents::nEndChangeAction
private

Definition at line 275 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nFlags

InsertDeleteFlags ScUndoDeleteContents::nFlags
private

Definition at line 276 of file undoblk.hxx.

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

◆ nStartChangeAction

sal_uLong ScUndoDeleteContents::nStartChangeAction
private

Definition at line 274 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ pDrawUndo

std::unique_ptr<SdrUndoAction> ScUndoDeleteContents::pDrawUndo
private

Definition at line 273 of file undoblk.hxx.

Referenced by DoChange(), ScUndoDeleteContents(), and ~ScUndoDeleteContents().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoDeleteContents::pUndoDoc
private

Definition at line 272 of file undoblk.hxx.

Referenced by DoChange(), SetChangeTrack(), and ~ScUndoDeleteContents().


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