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

#include <undodat.hxx>

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

Public Member Functions

 ScUndoImportData (ScDocShell *pNewDocShell, SCTAB nNewTab, const ScImportParam &rParam, SCCOL nNewEndX, SCROW nNewEndY, SCCOL nNewFormula, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, std::unique_ptr< ScDBData > pNewUndoData, std::unique_ptr< ScDBData > pNewRedoData)
 
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

SCTAB nTab
 
ScImportParam aImportParam
 
SCCOL nEndCol
 
SCROW nEndRow
 
ScDocumentUniquePtr xUndoDoc
 
ScDocumentUniquePtr xRedoDoc
 
std::unique_ptr< ScDBData > xUndoDBData
 
std::unique_ptr< ScDBData > xRedoDBData
 
SCCOL nFormulaCols
 
bool bRedoFilled
 

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
 

Detailed Description

Definition at line 278 of file undodat.hxx.

Constructor & Destructor Documentation

◆ ScUndoImportData()

ScUndoImportData::ScUndoImportData ( ScDocShell *  pNewDocShell,
SCTAB  nNewTab,
const ScImportParam &  rParam,
SCCOL  nNewEndX,
SCROW  nNewEndY,
SCCOL  nNewFormula,
ScDocumentUniquePtr  pNewUndoDoc,
ScDocumentUniquePtr  pNewRedoDoc,
std::unique_ptr< ScDBData >  pNewUndoData,
std::unique_ptr< ScDBData >  pNewRedoData 
)

Definition at line 1041 of file undodat.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1235 of file undodat.cxx.

References rTarget, and xUndoDBData.

◆ GetComment()

OUString ScUndoImportData::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1061 of file undodat.cxx.

References ScResId().

◆ Redo()

void ScUndoImportData::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoImportData::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

◆ Undo()

void ScUndoImportData::Undo ( )
overridevirtual

Member Data Documentation

◆ aImportParam

ScImportParam ScUndoImportData::aImportParam
private

Definition at line 296 of file undodat.hxx.

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

◆ bRedoFilled

bool ScUndoImportData::bRedoFilled
private

Definition at line 304 of file undodat.hxx.

Referenced by Undo().

◆ nEndCol

SCCOL ScUndoImportData::nEndCol
private

Definition at line 297 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ nEndRow

SCROW ScUndoImportData::nEndRow
private

Definition at line 298 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ nFormulaCols

SCCOL ScUndoImportData::nFormulaCols
private

Definition at line 303 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ nTab

SCTAB ScUndoImportData::nTab
private

Definition at line 295 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ xRedoDBData

std::unique_ptr<ScDBData> ScUndoImportData::xRedoDBData
private

Definition at line 302 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ xRedoDoc

ScDocumentUniquePtr ScUndoImportData::xRedoDoc
private

Definition at line 300 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ xUndoDBData

std::unique_ptr<ScDBData> ScUndoImportData::xUndoDBData
private

Definition at line 301 of file undodat.hxx.

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

◆ xUndoDoc

ScDocumentUniquePtr ScUndoImportData::xUndoDoc
private

Definition at line 299 of file undodat.hxx.

Referenced by Undo().


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