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

#include <undotab.hxx>

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

Public Member Functions

 ScUndoMoveTab (ScDocShell *pNewDocShell, std::unique_ptr< std::vector< SCTAB >> pOldTabs, std::unique_ptr< std::vector< SCTAB >> pNewTabs, std::unique_ptr< std::vector< OUString >> pOldNames=nullptr, std::unique_ptr< std::vector< OUString >> pNewNames=nullptr)
 
virtual ~ScUndoMoveTab () 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 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 (bool bUndo) const
 

Private Attributes

std::unique_ptr< ::std::vector< SCTAB > > mpOldTabs
 
std::unique_ptr< ::std::vector< SCTAB > > mpNewTabs
 
std::unique_ptr< ::std::vector< OUString > > mpOldNames
 
std::unique_ptr< ::std::vector< OUString > > mpNewNames
 

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 142 of file undotab.hxx.

Constructor & Destructor Documentation

ScUndoMoveTab::ScUndoMoveTab ( ScDocShell pNewDocShell,
std::unique_ptr< std::vector< SCTAB >>  pOldTabs,
std::unique_ptr< std::vector< SCTAB >>  pNewTabs,
std::unique_ptr< std::vector< OUString >>  pOldNames = nullptr,
std::unique_ptr< std::vector< OUString >>  pNewNames = nullptr 
)

Definition at line 466 of file undotab.cxx.

References assert(), mpNewNames, mpNewTabs, mpOldNames, and mpOldTabs.

ScUndoMoveTab::~ScUndoMoveTab ( )
overridevirtual

Definition at line 479 of file undotab.cxx.

Member Function Documentation

bool ScUndoMoveTab::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 561 of file undotab.cxx.

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

Reimplemented from SfxUndoAction.

Definition at line 483 of file undotab.cxx.

References ScResId().

void ScUndoMoveTab::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 551 of file undotab.cxx.

References DoChange().

void ScUndoMoveTab::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 556 of file undotab.cxx.

void ScUndoMoveTab::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 546 of file undotab.cxx.

References DoChange().

Member Data Documentation

std::unique_ptr< ::std::vector< OUString> > ScUndoMoveTab::mpNewNames
private

Definition at line 165 of file undotab.hxx.

Referenced by DoChange(), and ScUndoMoveTab().

std::unique_ptr< ::std::vector<SCTAB> > ScUndoMoveTab::mpNewTabs
private

Definition at line 163 of file undotab.hxx.

Referenced by DoChange(), and ScUndoMoveTab().

std::unique_ptr< ::std::vector< OUString> > ScUndoMoveTab::mpOldNames
private

Definition at line 164 of file undotab.hxx.

Referenced by DoChange(), and ScUndoMoveTab().

std::unique_ptr< ::std::vector<SCTAB> > ScUndoMoveTab::mpOldTabs
private

Definition at line 162 of file undotab.hxx.

Referenced by ScUndoMoveTab().


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