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

#include <undotab.hxx>

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

Public Member Functions

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

Private Attributes

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

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

Constructor & Destructor Documentation

ScUndoCopyTab::ScUndoCopyTab ( ScDocShell pNewDocShell,
std::unique_ptr< std::vector< SCTAB >>  pOldTabs,
std::unique_ptr< std::vector< SCTAB >>  pNewTabs,
std::unique_ptr< std::vector< OUString >>  pNewNames = nullptr 
)
ScUndoCopyTab::~ScUndoCopyTab ( )
overridevirtual

Definition at line 581 of file undotab.cxx.

References pDrawUndo.

Member Function Documentation

bool ScUndoCopyTab::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 699 of file undotab.cxx.

void ScUndoCopyTab::DoChange ( ) const
private
OUString ScUndoCopyTab::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 586 of file undotab.cxx.

References ScResId().

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

Reimplemented from SfxUndoAction.

Definition at line 694 of file undotab.cxx.

void ScUndoCopyTab::Undo ( )
overridevirtual

Member Data Documentation

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

Definition at line 191 of file undotab.hxx.

Referenced by Redo(), and ScUndoCopyTab().

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

Definition at line 190 of file undotab.hxx.

Referenced by Redo(), ScUndoCopyTab(), and Undo().

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

Definition at line 189 of file undotab.hxx.

Referenced by DoChange().

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

Definition at line 192 of file undotab.hxx.

Referenced by Redo(), ScUndoCopyTab(), Undo(), and ~ScUndoCopyTab().


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