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...
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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 249 of file undoblk.hxx.

Constructor & Destructor Documentation

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

Definition at line 78 of file undoblk3.cxx.

References pDrawUndo, and pUndoDoc.

Member Function Documentation

bool ScUndoDeleteContents::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 197 of file undoblk3.cxx.

void ScUndoDeleteContents::DoChange ( const bool  bUndo)
private
OUString ScUndoDeleteContents::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 84 of file undoblk3.cxx.

References ScResId().

void ScUndoDeleteContents::Redo ( )
overridevirtual
void ScUndoDeleteContents::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 191 of file undoblk3.cxx.

References nFlags.

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

Definition at line 89 of file undoblk3.cxx.

References mpDataSpans.

void ScUndoDeleteContents::Undo ( )
overridevirtual

Member Data Documentation

ScMarkData ScUndoDeleteContents::aMarkData
private

Definition at line 272 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoDeleteContents().

ScRange ScUndoDeleteContents::aRange
private

Definition at line 271 of file undoblk.hxx.

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

bool ScUndoDeleteContents::bMulti
private

Definition at line 278 of file undoblk.hxx.

Referenced by DoChange().

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

Definition at line 269 of file undoblk.hxx.

Referenced by DoChange(), and SetDataSpans().

sal_uLong ScUndoDeleteContents::nEndChangeAction
private

Definition at line 276 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

InsertDeleteFlags ScUndoDeleteContents::nFlags
private

Definition at line 277 of file undoblk.hxx.

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

sal_uLong ScUndoDeleteContents::nStartChangeAction
private

Definition at line 275 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

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

Definition at line 274 of file undoblk.hxx.

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

ScDocumentUniquePtr ScUndoDeleteContents::pUndoDoc
private

Definition at line 273 of file undoblk.hxx.

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


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