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, ScConversionParam aConvParam)
 
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...
 
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 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 536 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoConversion()

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

Definition at line 1171 of file undoblk3.cxx.

References SetChangeTrack().

◆ ~ScUndoConversion()

ScUndoConversion::~ScUndoConversion ( )
overridevirtual

Definition at line 1187 of file undoblk3.cxx.

References pRedoDoc, and pUndoDoc.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1278 of file undoblk3.cxx.

References rTarget.

◆ DoChange()

void ScUndoConversion::DoChange ( ScDocument pRefDoc,
const ScAddress rCursorPos 
)
private

◆ GetComment()

OUString ScUndoConversion::GetComment ( ) const
overridevirtual

◆ Redo()

void ScUndoConversion::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoConversion::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1272 of file undoblk3.cxx.

References maConvParam, and rTarget.

◆ SetChangeTrack()

void ScUndoConversion::SetChangeTrack ( )
private

◆ Undo()

void ScUndoConversion::Undo ( )
overridevirtual

Member Data Documentation

◆ aCursorPos

ScAddress ScUndoConversion::aCursorPos
private

Definition at line 555 of file undoblk.hxx.

Referenced by Undo().

◆ aMarkData

ScMarkData ScUndoConversion::aMarkData
private

Definition at line 554 of file undoblk.hxx.

Referenced by DoChange().

◆ aNewCursorPos

ScAddress ScUndoConversion::aNewCursorPos
private

Definition at line 557 of file undoblk.hxx.

Referenced by Redo().

◆ maConvParam

ScConversionParam ScUndoConversion::maConvParam
private

Definition at line 561 of file undoblk.hxx.

Referenced by GetComment(), and Repeat().

◆ nEndChangeAction

sal_uLong ScUndoConversion::nEndChangeAction
private

Definition at line 560 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nStartChangeAction

sal_uLong ScUndoConversion::nStartChangeAction
private

Definition at line 559 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ pRedoDoc

ScDocumentUniquePtr ScUndoConversion::pRedoDoc
private

Definition at line 558 of file undoblk.hxx.

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

◆ pUndoDoc

ScDocumentUniquePtr ScUndoConversion::pUndoDoc
private

Definition at line 556 of file undoblk.hxx.

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


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