LibreOffice Module sc (master) 1
|
#include <undotab.hxx>
Public Member Functions | |
ScUndoInsertTab (ScDocShell *pNewDocShell, SCTAB nTabNum, bool bApp, OUString aNewName) | |
virtual | ~ScUndoInsertTab () 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... | |
virtual std::optional< ScRange > | getAffectedRange () 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 DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Member Functions | |
void | SetChangeTrack () |
Private Attributes | |
OUString | sNewName |
std::unique_ptr< SdrUndoAction > | pDrawUndo |
sal_uLong | nEndChangeAction |
SCTAB | nTab |
bool | bAppend |
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 | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Definition at line 37 of file undotab.hxx.
ScUndoInsertTab::ScUndoInsertTab | ( | ScDocShell * | pNewDocShell, |
SCTAB | nTabNum, | ||
bool | bApp, | ||
OUString | aNewName | ||
) |
Definition at line 65 of file undotab.cxx.
References ScDocShell::GetDocument(), GetSdrUndoAction(), ScSimpleUndo::pDocShell, pDrawUndo, and SetChangeTrack().
|
overridevirtual |
Definition at line 78 of file undotab.cxx.
References pDrawUndo.
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 83 of file undotab.cxx.
|
overridevirtual |
BeginRedo
EndRedo
Reimplemented from SfxUndoAction.
Definition at line 126 of file undotab.cxx.
References ScViewFunc::AppendTable(), bAppend, bDrawIsInUndo, ScTabViewShell::GetActiveViewShell(), ScViewFunc::InsertTable(), nTab, ScSimpleUndo::pDocShell, pDrawUndo, RedoSdrUndoAction(), SetChangeTrack(), ScDocShell::SetInUndo(), ScTabView::SetTabNo(), and sNewName.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 147 of file undotab.cxx.
|
private |
Definition at line 91 of file undotab.cxx.
References ScChangeTrack::AppendInsert(), ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScDocument::MaxCol(), ScDocument::MaxRow(), nEndChangeAction, nTab, and ScSimpleUndo::pDocShell.
Referenced by Redo(), and ScUndoInsertTab().
|
overridevirtual |
BeginUndo
EndUndo
Reimplemented from SfxUndoAction.
Definition at line 105 of file undotab.cxx.
References bDrawIsInUndo, ScViewFunc::DeleteTable(), DoSdrUndoAction(), ScTabViewShell::GetActiveViewShell(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), nEndChangeAction, nTab, ScSimpleUndo::pDocShell, pDrawUndo, ScDocShell::SetInUndo(), ScTabView::SetTabNo(), and ScChangeTrack::Undo().
|
private |
Definition at line 59 of file undotab.hxx.
Referenced by GetComment(), and Redo().
|
private |
Definition at line 57 of file undotab.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 58 of file undotab.hxx.
Referenced by Redo(), SetChangeTrack(), and Undo().
|
private |
Definition at line 56 of file undotab.hxx.
Referenced by Redo(), ScUndoInsertTab(), Undo(), and ~ScUndoInsertTab().
|
private |
Definition at line 55 of file undotab.hxx.
Referenced by Redo().