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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoCut (ScDocShell *pNewDocShell, const ScRange &aRange, const ScAddress &aOldEnd, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc)
 
virtual ~ScUndoCut () 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 ScBlockUndo
 ScBlockUndo (ScDocShell *pDocSh, const ScRange &rRange, ScBlockUndoMode eBlockMode)
 
virtual ~ScBlockUndo () override
 
virtual std::optional< ScRange > getAffectedRange () 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 Member Functions

void DoChange (const bool bUndo)
 
void SetChangeTrack ()
 

Private Attributes

ScMarkData aMarkData
 
ScDocumentUniquePtr pUndoDoc
 
ScRange aExtendedRange
 
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 ScBlockUndo
void BeginUndo ()
 
void EndUndo ()
 
void EndRedo ()
 
bool AdjustHeight ()
 
void ShowBlock ()
 
- 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 ScBlockUndo
ScRange aBlockRange
 
std::unique_ptr< SdrUndoAction > pDrawUndo
 
ScBlockUndoMode eMode
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShell * pDocShell
 
std::unique_ptr< SfxUndoAction > pDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 134 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoCut()

ScUndoCut::ScUndoCut ( ScDocShell *  pNewDocShell,
const ScRange &  aRange,
const ScAddress &  aOldEnd,
const ScMarkData &  rMark,
ScDocumentUniquePtr  pNewUndoDoc 
)

Definition at line 816 of file undoblk.cxx.

References SetChangeTrack().

◆ ~ScUndoCut()

ScUndoCut::~ScUndoCut ( )
overridevirtual

Definition at line 826 of file undoblk.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 910 of file undoblk.cxx.

References rTarget.

◆ DoChange()

void ScUndoCut::DoChange ( const bool  bUndo)
private

◆ GetComment()

OUString ScUndoCut::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 830 of file undoblk.cxx.

References ScResId().

◆ Redo()

void ScUndoCut::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoCut::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 904 of file undoblk.cxx.

References rTarget.

◆ SetChangeTrack()

void ScUndoCut::SetChangeTrack ( )
private

◆ Undo()

void ScUndoCut::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 887 of file undoblk.cxx.

References ScBlockUndo::BeginUndo(), DoChange(), and ScBlockUndo::EndUndo().

Member Data Documentation

◆ aExtendedRange

ScRange ScUndoCut::aExtendedRange
private

Definition at line 155 of file undoblk.hxx.

Referenced by DoChange().

◆ aMarkData

ScMarkData ScUndoCut::aMarkData
private

Definition at line 152 of file undoblk.hxx.

Referenced by DoChange().

◆ nEndChangeAction

sal_uLong ScUndoCut::nEndChangeAction
private

Definition at line 157 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nStartChangeAction

sal_uLong ScUndoCut::nStartChangeAction
private

Definition at line 156 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoCut::pUndoDoc
private

Definition at line 154 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().


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