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

#include <undotab.hxx>

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

Public Member Functions

 ScUndoDeleteTab (ScDocShell *pNewDocShell, const std::vector< SCTAB > &theTabs, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
 
virtual ~ScUndoDeleteTab () 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...
 
- 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 SetChangeTrack ()
 

Private Attributes

std::vector< SCTABtheTabs
 
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 92 of file undotab.hxx.

Constructor & Destructor Documentation

ScUndoDeleteTab::ScUndoDeleteTab ( ScDocShell pNewDocShell,
const std::vector< SCTAB > &  theTabs,
ScDocumentUniquePtr  pUndoDocument,
std::unique_ptr< ScRefUndoData pRefData 
)

Definition at line 249 of file undotab.cxx.

References SetChangeTrack(), and theTabs.

ScUndoDeleteTab::~ScUndoDeleteTab ( )
overridevirtual

Definition at line 257 of file undotab.cxx.

References theTabs.

Member Function Documentation

bool ScUndoDeleteTab::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 404 of file undotab.cxx.

OUString ScUndoDeleteTab::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 262 of file undotab.cxx.

References ScResId().

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

Reimplemented from SfxUndoAction.

Definition at line 395 of file undotab.cxx.

References ScViewFunc::DeleteTable(), ScViewData::GetTabNo(), and ScTabView::GetViewData().

void ScUndoDeleteTab::SetChangeTrack ( )
private
void ScUndoDeleteTab::Undo ( )
overridevirtual

Member Data Documentation

sal_uLong ScUndoDeleteTab::nEndChangeAction
private

Definition at line 112 of file undotab.hxx.

Referenced by SetChangeTrack(), and Undo().

sal_uLong ScUndoDeleteTab::nStartChangeAction
private

Definition at line 111 of file undotab.hxx.

Referenced by SetChangeTrack(), and Undo().

std::vector<SCTAB> ScUndoDeleteTab::theTabs
private

Definition at line 110 of file undotab.hxx.

Referenced by Redo(), ScUndoDeleteTab(), SetChangeTrack(), Undo(), and ~ScUndoDeleteTab().


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