LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScUndoDataPilot Class Reference

#include <undodat.hxx>

Inheritance diagram for ScUndoDataPilot:
[legend]
Collaboration diagram for ScUndoDataPilot:
[legend]

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< ScRangegetAffectedRange () 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 DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

ScDocumentUniquePtr xOldUndoDoc
 
ScDocumentUniquePtr xNewUndoDoc
 
std::unique_ptr< ScDPObjectxOldDPObject
 
std::unique_ptr< ScDPObjectxNewDPObject
 
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
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 338 of file undodat.hxx.

Constructor & Destructor Documentation

◆ ScUndoDataPilot()

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.

Member Function Documentation

◆ CanRepeat()

bool ScUndoDataPilot::CanRepeat ( SfxRepeatTarget &  rTarget) const
overridevirtual

allow deletion

Reimplemented from SfxUndoAction.

Definition at line 1543 of file undodat.cxx.

◆ GetComment()

OUString ScUndoDataPilot::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1421 of file undodat.cxx.

References ScResId(), xNewUndoDoc, and xOldUndoDoc.

◆ Redo()

void ScUndoDataPilot::Redo ( )
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.

◆ Repeat()

void ScUndoDataPilot::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

allow deletion

Reimplemented from SfxUndoAction.

Definition at line 1538 of file undodat.cxx.

◆ Undo()

void ScUndoDataPilot::Undo ( )
overridevirtual

Member Data Documentation

◆ bAllowMove

bool ScUndoDataPilot::bAllowMove
private

Definition at line 358 of file undodat.hxx.

Referenced by Redo().

◆ xNewDPObject

std::unique_ptr<ScDPObject> ScUndoDataPilot::xNewDPObject
private

Definition at line 357 of file undodat.hxx.

Referenced by Redo(), ScUndoDataPilot(), and Undo().

◆ xNewUndoDoc

ScDocumentUniquePtr ScUndoDataPilot::xNewUndoDoc
private

Definition at line 355 of file undodat.hxx.

Referenced by GetComment(), and Undo().

◆ xOldDPObject

std::unique_ptr<ScDPObject> ScUndoDataPilot::xOldDPObject
private

Definition at line 356 of file undodat.hxx.

Referenced by Redo(), ScUndoDataPilot(), and Undo().

◆ xOldUndoDoc

ScDocumentUniquePtr ScUndoDataPilot::xOldUndoDoc
private

Definition at line 354 of file undodat.hxx.

Referenced by GetComment(), and Undo().


The documentation for this class was generated from the following files: