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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoConversion (ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScDocumentUniquePtr pNewUndoDoc, SCCOL nNewX, SCROW nNewY, SCTAB nNewZ, ScDocumentUniquePtr pNewRedoDoc, const ScConversionParam &rConvParam)
 
virtual ~ScUndoConversion () 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 ScSimpleUndo
 ScSimpleUndo (ScDocShell *pDocSh)
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

void DoChange (ScDocument *pRefDoc, const ScAddress &rCursorPos)
 Conversion type and parameters. More...
 
void SetChangeTrack ()
 

Private Attributes

ScMarkData aMarkData
 
ScAddress aCursorPos
 
ScDocumentUniquePtr pUndoDoc
 
ScAddress aNewCursorPos
 
ScDocumentUniquePtr pRedoDoc
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 
ScConversionParam maConvParam
 

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 537 of file undoblk.hxx.

Constructor & Destructor Documentation

ScUndoConversion::ScUndoConversion ( ScDocShell pNewDocShell,
const ScMarkData rMark,
SCCOL  nCurX,
SCROW  nCurY,
SCTAB  nCurZ,
ScDocumentUniquePtr  pNewUndoDoc,
SCCOL  nNewX,
SCROW  nNewY,
SCTAB  nNewZ,
ScDocumentUniquePtr  pNewRedoDoc,
const ScConversionParam rConvParam 
)

Definition at line 1167 of file undoblk3.cxx.

References SetChangeTrack().

ScUndoConversion::~ScUndoConversion ( )
overridevirtual

Definition at line 1183 of file undoblk3.cxx.

References pRedoDoc, and pUndoDoc.

Member Function Documentation

bool ScUndoConversion::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1273 of file undoblk3.cxx.

void ScUndoConversion::DoChange ( ScDocument pRefDoc,
const ScAddress rCursorPos 
)
private
OUString ScUndoConversion::GetComment ( ) const
overridevirtual
void ScUndoConversion::Redo ( )
overridevirtual
void ScUndoConversion::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1267 of file undoblk3.cxx.

References maConvParam.

void ScUndoConversion::SetChangeTrack ( )
private
void ScUndoConversion::Undo ( )
overridevirtual

Member Data Documentation

ScAddress ScUndoConversion::aCursorPos
private

Definition at line 556 of file undoblk.hxx.

Referenced by Undo().

ScMarkData ScUndoConversion::aMarkData
private

Definition at line 555 of file undoblk.hxx.

Referenced by DoChange().

ScAddress ScUndoConversion::aNewCursorPos
private

Definition at line 558 of file undoblk.hxx.

Referenced by Redo().

ScConversionParam ScUndoConversion::maConvParam
private

Definition at line 562 of file undoblk.hxx.

Referenced by GetComment(), and Repeat().

sal_uLong ScUndoConversion::nEndChangeAction
private

Definition at line 561 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

sal_uLong ScUndoConversion::nStartChangeAction
private

Definition at line 560 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

ScDocumentUniquePtr ScUndoConversion::pRedoDoc
private

Definition at line 559 of file undoblk.hxx.

Referenced by Redo(), and ~ScUndoConversion().

ScDocumentUniquePtr ScUndoConversion::pUndoDoc
private

Definition at line 557 of file undoblk.hxx.

Referenced by SetChangeTrack(), Undo(), and ~ScUndoConversion().


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