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

Constructor & Destructor Documentation

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

Definition at line 1278 of file undoblk3.cxx.

References SetChangeTrack().

ScUndoRefConversion::~ScUndoRefConversion ( )
overridevirtual

Definition at line 1291 of file undoblk3.cxx.

References pRedoDoc, and pUndoDoc.

Member Function Documentation

bool ScUndoRefConversion::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1358 of file undoblk3.cxx.

void ScUndoRefConversion::DoChange ( ScDocument pRefDoc)
private
OUString ScUndoRefConversion::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1297 of file undoblk3.cxx.

References ScResId().

void ScUndoRefConversion::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1343 of file undoblk3.cxx.

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

void ScUndoRefConversion::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1352 of file undoblk3.cxx.

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

Member Data Documentation

ScMarkData ScUndoRefConversion::aMarkData
private

Definition at line 584 of file undoblk.hxx.

Referenced by DoChange().

ScRange ScUndoRefConversion::aRange
private

Definition at line 587 of file undoblk.hxx.

Referenced by DoChange().

bool ScUndoRefConversion::bMulti
private

Definition at line 588 of file undoblk.hxx.

Referenced by DoChange().

sal_uLong ScUndoRefConversion::nEndChangeAction
private

Definition at line 590 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

sal_uLong ScUndoRefConversion::nStartChangeAction
private

Definition at line 589 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

ScDocumentUniquePtr ScUndoRefConversion::pRedoDoc
private

Definition at line 586 of file undoblk.hxx.

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

ScDocumentUniquePtr ScUndoRefConversion::pUndoDoc
private

Definition at line 585 of file undoblk.hxx.

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


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