LibreOffice Module sc (master) 1
|
#include <undodat.hxx>
Public Member Functions | |
ScUndoDataPilot (ScDocShell *pNewDocShell, ScDocumentUniquePtr pOldDoc, ScDocumentUniquePtr pNewDoc, const ScDPObject *pOldObj, const ScDPObject *pNewObj, bool bMove) | |
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 Attributes | |
ScDocumentUniquePtr | xOldUndoDoc |
ScDocumentUniquePtr | xNewUndoDoc |
std::unique_ptr< ScDPObject > | xOldDPObject |
std::unique_ptr< ScDPObject > | xNewDPObject |
bool | bAllowMove |
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 338 of file undodat.hxx.
ScUndoDataPilot::ScUndoDataPilot | ( | ScDocShell * | pNewDocShell, |
ScDocumentUniquePtr | pOldDoc, | ||
ScDocumentUniquePtr | pNewDoc, | ||
const ScDPObject * | pOldObj, | ||
const ScDPObject * | pNewObj, | ||
bool | bMove | ||
) |
Definition at line 1407 of file undodat.cxx.
References xNewDPObject, and xOldDPObject.
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1421 of file undodat.cxx.
References ScResId(), xNewUndoDoc, and xOldUndoDoc.
|
overridevirtual |
copy output data instead of repeating the change, in case external data have changed!
find by name!
Reimplemented from SfxUndoAction.
Definition at line 1511 of file undodat.cxx.
References ScRange::aStart, bAllowMove, ScSimpleUndo::BeginRedo(), ScAddress::Col(), ScDBDocFunc::DataPilotUpdate(), ScSimpleUndo::EndRedo(), ScDocShell::GetDocument(), ScDocument::GetDPAtCursor(), ScSimpleUndo::pDocShell, ScAddress::Row(), ScAddress::Tab(), xNewDPObject, and xOldDPObject.
|
overridevirtual |
|
overridevirtual |
find by name!
set current sheet
Reimplemented from SfxUndoAction.
Definition at line 1434 of file undodat.cxx.
References ALL, ScRange::aStart, ScSimpleUndo::BeginUndo(), ScDocument::BroadcastUno(), ScAddress::Col(), ScDocument::DeleteAreaTab(), ScSimpleUndo::EndUndo(), ScDPCollection::FreeTable(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScDocument::GetDPAtCursor(), ScDocument::GetDPCollection(), Grid, ScDPCollection::InsertNewTable(), pData, ScSimpleUndo::pDocShell, ScDocShell::PostDataChanged(), ScDocShell::PostPaint(), ScAddress::Row(), SC_PF_LINES, ScDPObject::SetOutRange(), ScDPObject::SetSaveData(), ScAddress::Tab(), xNewDPObject, xNewUndoDoc, xOldDPObject, and xOldUndoDoc.
|
private |
Definition at line 358 of file undodat.hxx.
Referenced by Redo().
|
private |
Definition at line 357 of file undodat.hxx.
Referenced by Redo(), ScUndoDataPilot(), and Undo().
|
private |
Definition at line 355 of file undodat.hxx.
Referenced by GetComment(), and Undo().
|
private |
Definition at line 356 of file undodat.hxx.
Referenced by Redo(), ScUndoDataPilot(), and Undo().
|
private |
Definition at line 354 of file undodat.hxx.
Referenced by GetComment(), and Undo().