|
LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
Public Member Functions | |
| ScUndoPaste (ScDocShell *pNewDocShell, const ScRangeList &rRanges, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, InsertDeleteFlags nNewFlags, std::unique_ptr< ScRefUndoData > pRefData, bool bRedoIsFilled=true, const ScUndoPasteOptions *pOptions=nullptr) | |
| virtual | ~ScUndoPaste () 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 ScMultiBlockUndo | |
| ScMultiBlockUndo (ScDocShell *pDocSh, ScRangeList aRanges) | |
| virtual | ~ScMultiBlockUndo () 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 (bool bUndo) |
| void | SetChangeTrack () |
Private Attributes | |
| ScMarkData | aMarkData |
| ScDocumentUniquePtr | pUndoDoc |
| ScDocumentUniquePtr | pRedoDoc |
| InsertDeleteFlags | nFlags |
| std::unique_ptr< ScRefUndoData > | pRefUndoData |
| std::unique_ptr< ScRefUndoData > | pRefRedoData |
| sal_uLong | nStartChangeAction |
| sal_uLong | nEndChangeAction |
| bool | bRedoFilled |
| ScUndoPasteOptions | aPasteOptions |
Additional Inherited Members | |
Public Types inherited from ScSimpleUndo | |
| typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > | DataSpansType |
Protected Member Functions inherited from ScMultiBlockUndo | |
| void | BeginUndo () |
| void | EndUndo () |
| void | EndRedo () |
| void | ShowBlock () |
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 ScMultiBlockUndo | |
| ScRangeList | maBlockRanges |
| std::unique_ptr< SdrUndoAction > | mpDrawUndo |
Protected Attributes inherited from ScSimpleUndo | |
| ScDocShell * | pDocShell |
| std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
| ViewShellId | mnViewShellId |
Definition at line 180 of file undoblk.hxx.
| ScUndoPaste::ScUndoPaste | ( | ScDocShell * | pNewDocShell, |
| const ScRangeList & | rRanges, | ||
| const ScMarkData & | rMark, | ||
| ScDocumentUniquePtr | pNewUndoDoc, | ||
| ScDocumentUniquePtr | pNewRedoDoc, | ||
| InsertDeleteFlags | nNewFlags, | ||
| std::unique_ptr< ScRefUndoData > | pRefData, | ||
| bool | bRedoIsFilled = true, |
||
| const ScUndoPasteOptions * | pOptions = nullptr |
||
| ) |
Definition at line 915 of file undoblk.cxx.
References aPasteOptions, ScDocShell::GetDocument(), ScSimpleUndo::pDocShell, pRefUndoData, and SetChangeTrack().
|
overridevirtual |
Definition at line 938 of file undoblk.cxx.
References pRedoDoc, pRefRedoData, pRefUndoData, and pUndoDoc.
|
overridevirtual |
|
private |
Definition at line 966 of file undoblk.cxx.
References aData, ScViewFunc::AdjustBlockHeight(), ScRange::aEnd, aMarkData, ScRange::aStart, ATTRIB, bRedoFilled, ScDocument::BroadcastCells(), ScTabView::CellContentChanged(), ScAddress::Col(), ScRangeList::Combine(), CONTENTS, ScDocument::CopyToDocument(), ScDocument::DeleteSelection(), ScRefUndoData::DoUndo(), ScRangeList::empty(), ScDocument::ExtendMerge(), ScDocument::ForgetNoteCaptions(), ScTabViewShell::GetActiveViewShell(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScMarkData::GetFirstSelected(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), Grid, i, Left, ScMultiBlockUndo::maBlockRanges, ScMarkData::MarkToMulti(), ScMarkData::MarkToSimple(), ScDocument::MaxCol(), ScDocument::MaxRow(), ScMultiBlockUndo::mpDrawUndo, n, nEndChangeAction, nFlags, NOCAPTIONS, NONE, ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), nStartChangeAction, OBJECTS, ScSimpleUndo::pDocShell, ScDocShell::PostDataChanged(), ScDocShell::PostPaint(), pRedoDoc, pRefRedoData, pRefUndoData, pUndoDoc, RedoSdrUndoAction(), ScDocument::RefreshAutoFilter(), ScAddress::Row(), SCDOCMODE_UNDO, SetChangeTrack(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::SetTab(), ScRangeList::size(), Top, ScChangeTrack::Undo(), and ScDocShell::UpdatePaintExt().
|
overridevirtual |
|
overridevirtual |
include in ScBlockUndo?
include in ScBlockUndo?
Reimplemented from SfxUndoAction.
Definition at line 1172 of file undoblk.cxx.
References ScSimpleUndo::BeginRedo(), DoChange(), EnableDrawAdjust(), ScMultiBlockUndo::EndRedo(), ScDocShell::GetDocument(), ScSimpleUndo::pDocShell, and SfxGetpApp().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1183 of file undoblk.cxx.
References aPasteOptions, ScUndoPasteOptions::bAsLink, ScUndoPasteOptions::bSkipEmptyCells, ScUndoPasteOptions::bTranspose, ScUndoPasteOptions::eMoveMode, ScViewData::GetActiveWin(), ScTabViewShell::GetClipData(), ScTransferObj::GetDocument(), ScTransferObj::GetOwnClipboard(), ScTabView::GetViewData(), SfxShell::GetViewShell(), nFlags, ScUndoPasteOptions::nFunction, NONE, ScViewFunc::PasteFromClip(), and rTarget.
|
private |
Definition at line 951 of file undoblk.cxx.
References ScChangeTrack::AppendContentRange(), CONTENTS, ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), i, ScMultiBlockUndo::maBlockRanges, n, nEndChangeAction, nFlags, nStartChangeAction, ScSimpleUndo::pDocShell, pUndoDoc, SC_CACM_PASTE, and ScRangeList::size().
Referenced by DoChange(), and ScUndoPaste().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1162 of file undoblk.cxx.
References ScMultiBlockUndo::BeginUndo(), DoChange(), ScRangeList::empty(), ScMultiBlockUndo::EndUndo(), ScRangeList::front(), ScMultiBlockUndo::maBlockRanges, SfxGetpApp(), and ScSimpleUndo::ShowTable().
|
private |
Definition at line 200 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 209 of file undoblk.hxx.
Referenced by Repeat(), and ScUndoPaste().
|
private |
Definition at line 208 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 207 of file undoblk.hxx.
Referenced by DoChange(), and SetChangeTrack().
|
private |
Definition at line 203 of file undoblk.hxx.
Referenced by DoChange(), Repeat(), and SetChangeTrack().
|
private |
Definition at line 206 of file undoblk.hxx.
Referenced by DoChange(), and SetChangeTrack().
|
private |
Definition at line 202 of file undoblk.hxx.
Referenced by DoChange(), and ~ScUndoPaste().
|
private |
Definition at line 205 of file undoblk.hxx.
Referenced by DoChange(), and ~ScUndoPaste().
|
private |
Definition at line 204 of file undoblk.hxx.
Referenced by DoChange(), ScUndoPaste(), and ~ScUndoPaste().
|
private |
Definition at line 201 of file undoblk.hxx.
Referenced by DoChange(), SetChangeTrack(), and ~ScUndoPaste().