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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoDeleteMulti (ScDocShell *pNewDocShell, bool bNewRows, bool bNeedsRefresh, SCTAB nNewTab, std::vector< sc::ColRowSpan > &&rSpans, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
 
virtual ~ScUndoDeleteMulti () 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
 
void SetChangeTrack ()
 

Private Attributes

bool mbRows:1
 
bool mbRefresh:1
 
SCTAB nTab
 
std::vector< sc::ColRowSpanmaSpans
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 

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 104 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoDeleteMulti()

ScUndoDeleteMulti::ScUndoDeleteMulti ( ScDocShell pNewDocShell,
bool  bNewRows,
bool  bNeedsRefresh,
SCTAB  nNewTab,
std::vector< sc::ColRowSpan > &&  rSpans,
ScDocumentUniquePtr  pUndoDocument,
std::unique_ptr< ScRefUndoData pRefData 
)

Definition at line 639 of file undoblk.cxx.

References SetChangeTrack().

◆ ~ScUndoDeleteMulti()

ScUndoDeleteMulti::~ScUndoDeleteMulti ( )
overridevirtual

Definition at line 653 of file undoblk.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 811 of file undoblk.cxx.

References rTarget.

◆ DoChange()

void ScUndoDeleteMulti::DoChange ( ) const
private

◆ GetComment()

OUString ScUndoDeleteMulti::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 657 of file undoblk.cxx.

References ScResId().

◆ Redo()

void ScUndoDeleteMulti::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoDeleteMulti::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 804 of file undoblk.cxx.

References Rows, and rTarget.

◆ SetChangeTrack()

void ScUndoDeleteMulti::SetChangeTrack ( )
private

◆ Undo()

void ScUndoDeleteMulti::Undo ( )
overridevirtual

Member Data Documentation

◆ maSpans

std::vector<sc::ColRowSpan> ScUndoDeleteMulti::maSpans
private

Definition at line 126 of file undoblk.hxx.

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

◆ mbRefresh

bool ScUndoDeleteMulti::mbRefresh
private

Definition at line 124 of file undoblk.hxx.

Referenced by DoChange().

◆ mbRows

bool ScUndoDeleteMulti::mbRows
private

Definition at line 123 of file undoblk.hxx.

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

◆ nEndChangeAction

sal_uLong ScUndoDeleteMulti::nEndChangeAction
private

Definition at line 128 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nStartChangeAction

sal_uLong ScUndoDeleteMulti::nStartChangeAction
private

Definition at line 127 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nTab

SCTAB ScUndoDeleteMulti::nTab
private

Definition at line 125 of file undoblk.hxx.

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


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