LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
Public Member Functions | |
ScUndoDragDrop (ScDocShell *pNewDocShell, const ScRange &rRange, const ScAddress &aNewDestPos, bool bNewCut, ScDocumentUniquePtr pUndoDocument, bool bScenario) | |
virtual | ~ScUndoDragDrop () 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 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 | PaintArea (ScRange aRange, sal_uInt16 nExtFlags) const |
void | DoUndo (ScRange aRange) |
void | SetChangeTrack () |
Private Attributes | |
sal_uInt16 | mnPaintExtFlags |
ScRangeList | maPaintRanges |
ScRange | aSrcRange |
ScRange | aDestRange |
sal_uLong | nStartChangeAction |
sal_uLong | nEndChangeAction |
bool | bCut |
bool | bKeepScenarioFlags |
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 215 of file undoblk.hxx.
ScUndoDragDrop::ScUndoDragDrop | ( | ScDocShell * | pNewDocShell, |
const ScRange & | rRange, | ||
const ScAddress & | aNewDestPos, | ||
bool | bNewCut, | ||
ScDocumentUniquePtr | pUndoDocument, | ||
bool | bScenario | ||
) |
Definition at line 1206 of file undoblk.cxx.
References aDestRange, ScRange::aEnd, aSrcRange, ScRange::aStart, bCut, ScAddress::Col(), ScDocument::CountNonFilteredRows(), ScDocShell::GetDocument(), ScAddress::IncCol(), ScAddress::IncRow(), ScAddress::IncTab(), ScSimpleUndo::pDocShell, ScAddress::Row(), SetChangeTrack(), ScAddress::SetRow(), and ScAddress::Tab().
|
overridevirtual |
Definition at line 1238 of file undoblk.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1505 of file undoblk.cxx.
|
private |
Definition at line 1317 of file undoblk.cxx.
References ScRange::aEnd, ALL, ScAddress::Col(), ScDocument::DeleteAreaTab(), ScDocument::ExtendMerge(), FORGETCAPTIONS, ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScDocument::HasAttrib(), ScRangeList::Join(), maPaintRanges, Merged, mnPaintExtFlags, nEndChangeAction, NOCAPTIONS, nStartChangeAction, OBJECTS, ScSimpleUndo::pDocShell, ScMoveUndo::pRefUndoDoc, ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), ScChangeTrack::Undo(), and ScDocShell::UpdatePaintExt().
Referenced by Undo().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1242 of file undoblk.cxx.
|
private |
Definition at line 1268 of file undoblk.cxx.
References ScRange::aEnd, aSrcRange, ScRange::aStart, bKeepScenarioFlags, ScAddress::Col(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), Grid, Left, ScDocument::MaxCol(), ScDocument::MaxRow(), ScSimpleUndo::pDocShell, ScDocShell::PostPaint(), ScAddress::Row(), ScAddress::SetCol(), ScDocument::SetDrawPageSize(), ScDocument::SetOptimalHeight(), ScAddress::SetRow(), ScAddress::Tab(), and Top.
|
overridevirtual |
include in ScBlockUndo?
include in ScBlockUndo?
include in ScBlockUndo?
Reimplemented from SfxUndoAction.
Definition at line 1417 of file undoblk.cxx.
References aDestRange, ScRange::aEnd, ALL, aSrcRange, ScRange::aStart, bCut, ScSimpleUndo::BeginRedo(), bKeepScenarioFlags, ScAddress::Col(), ScDocument::CopyFromClip(), ScDocument::CopyToClip(), ScDocument::DeleteAreaTab(), EnableDrawAdjust(), ScSimpleUndo::EndRedo(), ScDocument::ExtendMerge(), ScDocShell::GetDocFunc(), ScDocShell::GetDocument(), ScDocument::GetSheetLimits(), NOCAPTIONS, OBJECTS, PaintArea(), ScSimpleUndo::pDocShell, ScMoveUndo::pDrawUndo, RedoSdrUndoAction(), ScDocument::RefreshAutoFilter(), ScAddress::Row(), SCDOCMODE_CLIP, ScMarkData::SelectTable(), SetChangeTrack(), SfxGetpApp(), ScSimpleUndo::ShowTable(), ScAddress::Tab(), ScDocFunc::UnmergeCells(), and ScDocShell::UpdatePaintExt().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1501 of file undoblk.cxx.
|
private |
Definition at line 1249 of file undoblk.cxx.
References aDestRange, ScChangeTrack::AppendContentRange(), ScChangeTrack::AppendMove(), aSrcRange, bCut, ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), nEndChangeAction, nStartChangeAction, ScSimpleUndo::pDocShell, and ScMoveUndo::pRefUndoDoc.
Referenced by Redo(), and ScUndoDragDrop().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1354 of file undoblk.cxx.
References aDestRange, aSrcRange, ScRange::aStart, bCut, ScMoveUndo::BeginUndo(), ScDocument::BroadcastCells(), ScAddress::Col(), DoUndo(), ScMoveUndo::EndUndo(), ScDocShell::GetDocument(), ScDocument::GetRangeName(), ScDocument::GetTableCount(), ScDocument::GetValidationList(), i, maPaintRanges, sc::RefUpdateContext::maRange, sc::RefUpdateContext::meMode, sc::RefUpdateContext::mnColDelta, mnPaintExtFlags, sc::RefUpdateContext::mnRowDelta, sc::RefUpdateContext::mnTabDelta, PaintArea(), ScSimpleUndo::pDocShell, pName, ScRangeList::RemoveAll(), ScAddress::Row(), SfxGetpApp(), ScRangeList::size(), ScAddress::Tab(), ScValidationDataList::UpdateReference(), and URM_MOVE.
|
private |
Definition at line 236 of file undoblk.hxx.
Referenced by Redo(), ScUndoDragDrop(), SetChangeTrack(), and Undo().
|
private |
Definition at line 235 of file undoblk.hxx.
Referenced by PaintArea(), Redo(), ScUndoDragDrop(), SetChangeTrack(), and Undo().
|
private |
Definition at line 239 of file undoblk.hxx.
Referenced by GetComment(), Redo(), ScUndoDragDrop(), SetChangeTrack(), and Undo().
|
private |
Definition at line 240 of file undoblk.hxx.
Referenced by PaintArea(), and Redo().
|
private |
Definition at line 233 of file undoblk.hxx.
|
private |
Definition at line 232 of file undoblk.hxx.
|
private |
Definition at line 238 of file undoblk.hxx.
Referenced by DoUndo(), and SetChangeTrack().
|
private |
Definition at line 237 of file undoblk.hxx.
Referenced by DoUndo(), and SetChangeTrack().