LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
Public Member Functions | |
ScUndoInsertCells (ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, InsCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData, bool bNewPartOfPaste) | |
virtual | ~ScUndoInsertCells () 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 |
virtual bool | Merge (SfxUndoAction *pNextAction) 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< 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 | DoChange (const bool bUndo) |
void | SetChangeTrack () |
Private Attributes | |
ScRange | aEffRange |
SCTAB | nCount |
std::unique_ptr< SCTAB[]> | pTabs |
std::unique_ptr< SCTAB[]> | pScenarios |
sal_uLong | nEndChangeAction |
InsCellCmd | eCmd |
bool | bPartOfPaste |
std::unique_ptr< SfxUndoAction > | pPasteUndo |
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< SdrUndoAction > | pDrawUndo |
ScDocumentUniquePtr | pRefUndoDoc |
std::unique_ptr< ScRefUndoData > | pRefUndoData |
Protected Attributes inherited from ScSimpleUndo | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Definition at line 37 of file undoblk.hxx.
ScUndoInsertCells::ScUndoInsertCells | ( | ScDocShell * | pNewDocShell, |
const ScRange & | rRange, | ||
SCTAB | nNewCount, | ||
std::unique_ptr< SCTAB[]> | pNewTabs, | ||
std::unique_ptr< SCTAB[]> | pNewScenarios, | ||
InsCellCmd | eNewCmd, | ||
ScDocumentUniquePtr | pUndoDocument, | ||
std::unique_ptr< ScRefUndoData > | pRefData, | ||
bool | bNewPartOfPaste | ||
) |
Definition at line 65 of file undoblk.cxx.
References aEffRange, ScRange::aEnd, ScRange::aStart, eCmd, ScDocShell::GetDocument(), INS_INSCOLS_AFTER, INS_INSCOLS_BEFORE, INS_INSROWS_AFTER, INS_INSROWS_BEFORE, ScDocument::MaxCol(), ScDocument::MaxRow(), nCount, ScSimpleUndo::pDocShell, SetChangeTrack(), ScAddress::SetCol(), and ScAddress::SetRow().
|
overridevirtual |
Definition at line 94 of file undoblk.cxx.
|
overridevirtual |
|
private |
Definition at line 140 of file undoblk.cxx.
References ScDocShell::AdjustRowHeight(), aEffRange, ScRange::aEnd, ScRange::aStart, ScTabView::CellContentChanged(), ScAddress::Col(), COLUMN_HEADER, ScDocument::DeleteCol(), ScDocument::DeleteRow(), eCmd, ScDocument::ExtendMerge(), ScTabViewShell::GetActiveViewShell(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScViewData::GetTabNo(), ScTabView::GetViewData(), Grid, ScDocument::HasAttrib(), i, INS_CELLSDOWN, INS_CELLSRIGHT, INS_INSCOLS_AFTER, INS_INSCOLS_BEFORE, INS_INSROWS_AFTER, INS_INSROWS_BEFORE, ScDocument::InsertCol(), ScDocument::InsertRow(), comphelper::LibreOfficeKit::isActive(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), Merged, nCount, nEndChangeAction, ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), ScViewFunc::OnLOKInsertDeleteColumn(), ScViewFunc::OnLOKInsertDeleteRow(), ScSimpleUndo::pDocShell, ScDocShell::PostDataChanged(), ScDocShell::PostPaint(), pScenarios, pTabs, ScAddress::Row(), ROW_HEADER, SetChangeTrack(), ScAddress::SetCol(), ScAddress::SetRow(), Top, and ScChangeTrack::Undo().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 98 of file undoblk.cxx.
References pPasteUndo, and ScResId().
|
overridevirtual |
Reimplemented from ScSimpleUndo.
Definition at line 103 of file undoblk.cxx.
References bPartOfPaste, ScSimpleUndo::Merge(), and pPasteUndo.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 309 of file undoblk.cxx.
References ScSimpleUndo::BeginRedo(), DoChange(), ScSimpleUndo::EndRedo(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), i, nCount, ScSimpleUndo::pDocShell, pPasteUndo, pTabs, and ScDocument::SetDrawPageSize().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 324 of file undoblk.cxx.
References eCmd, pPasteUndo, and rTarget.
|
private |
Definition at line 128 of file undoblk.cxx.
References aEffRange, ScChangeTrack::AppendInsert(), ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), nEndChangeAction, and ScSimpleUndo::pDocShell.
Referenced by DoChange(), and ScUndoInsertCells().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 294 of file undoblk.cxx.
References ScMoveUndo::BeginUndo(), DoChange(), ScMoveUndo::EndUndo(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), i, nCount, ScSimpleUndo::pDocShell, pPasteUndo, pTabs, and ScDocument::SetDrawPageSize().
|
private |
Definition at line 57 of file undoblk.hxx.
Referenced by DoChange(), ScUndoInsertCells(), and SetChangeTrack().
|
private |
Definition at line 65 of file undoblk.hxx.
Referenced by Merge().
|
private |
Definition at line 64 of file undoblk.hxx.
Referenced by DoChange(), Repeat(), and ScUndoInsertCells().
|
private |
Definition at line 58 of file undoblk.hxx.
Referenced by DoChange(), Redo(), and Undo().
|
private |
Definition at line 63 of file undoblk.hxx.
Referenced by DoChange(), and SetChangeTrack().
|
private |
Definition at line 67 of file undoblk.hxx.
Referenced by GetComment(), Merge(), Redo(), Repeat(), and Undo().
|
private |
Definition at line 62 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 60 of file undoblk.hxx.
Referenced by DoChange(), Redo(), and Undo().