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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoRefConversion (ScDocShell *pNewDocShell, const ScRange &aMarkRange, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, bool bNewMulti)
 
virtual ~ScUndoRefConversion () 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)
 
void SetChangeTrack ()
 

Private Attributes

ScMarkData aMarkData
 
ScDocumentUniquePtr pUndoDoc
 
ScDocumentUniquePtr pRedoDoc
 
ScRange aRange
 
bool bMulti
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 

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

Constructor & Destructor Documentation

◆ ScUndoRefConversion()

ScUndoRefConversion::ScUndoRefConversion ( ScDocShell pNewDocShell,
const ScRange aMarkRange,
const ScMarkData rMark,
ScDocumentUniquePtr  pNewUndoDoc,
ScDocumentUniquePtr  pNewRedoDoc,
bool  bNewMulti 
)

Definition at line 1283 of file undoblk3.cxx.

References pRedoDoc, pUndoDoc, and SetChangeTrack().

◆ ~ScUndoRefConversion()

ScUndoRefConversion::~ScUndoRefConversion ( )
overridevirtual

Definition at line 1297 of file undoblk3.cxx.

References pRedoDoc, and pUndoDoc.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1364 of file undoblk3.cxx.

References rTarget.

◆ DoChange()

void ScUndoRefConversion::DoChange ( ScDocument pRefDoc)
private

◆ GetComment()

OUString ScUndoRefConversion::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1303 of file undoblk3.cxx.

References ScResId().

◆ Redo()

void ScUndoRefConversion::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1349 of file undoblk3.cxx.

References ScSimpleUndo::BeginRedo(), DoChange(), ScSimpleUndo::EndRedo(), pRedoDoc, and SetChangeTrack().

◆ Repeat()

void ScUndoRefConversion::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1358 of file undoblk3.cxx.

References rTarget.

◆ SetChangeTrack()

void ScUndoRefConversion::SetChangeTrack ( )
private

◆ Undo()

void ScUndoRefConversion::Undo ( )
overridevirtual

Member Data Documentation

◆ aMarkData

ScMarkData ScUndoRefConversion::aMarkData
private

Definition at line 583 of file undoblk.hxx.

Referenced by DoChange().

◆ aRange

ScRange ScUndoRefConversion::aRange
private

Definition at line 586 of file undoblk.hxx.

Referenced by DoChange().

◆ bMulti

bool ScUndoRefConversion::bMulti
private

Definition at line 587 of file undoblk.hxx.

Referenced by DoChange().

◆ nEndChangeAction

sal_uLong ScUndoRefConversion::nEndChangeAction
private

Definition at line 589 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nStartChangeAction

sal_uLong ScUndoRefConversion::nStartChangeAction
private

Definition at line 588 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ pRedoDoc

ScDocumentUniquePtr ScUndoRefConversion::pRedoDoc
private

Definition at line 585 of file undoblk.hxx.

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

◆ pUndoDoc

ScDocumentUniquePtr ScUndoRefConversion::pUndoDoc
private

Definition at line 584 of file undoblk.hxx.

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


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