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
 
- 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 (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< SdrUndoActionpDrawUndo
 
ScBlockUndoMode eMode
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 135 of file undoblk.hxx.

Constructor & Destructor Documentation

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

Definition at line 817 of file undoblk.cxx.

References SetChangeTrack().

ScUndoCut::~ScUndoCut ( )
overridevirtual

Definition at line 827 of file undoblk.cxx.

Member Function Documentation

bool ScUndoCut::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 911 of file undoblk.cxx.

void ScUndoCut::DoChange ( const bool  bUndo)
private
OUString ScUndoCut::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 831 of file undoblk.cxx.

References ScResId().

void ScUndoCut::Redo ( )
overridevirtual
void ScUndoCut::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 905 of file undoblk.cxx.

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

Reimplemented from SfxUndoAction.

Definition at line 888 of file undoblk.cxx.

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

Member Data Documentation

ScRange ScUndoCut::aExtendedRange
private

Definition at line 156 of file undoblk.hxx.

Referenced by DoChange().

ScMarkData ScUndoCut::aMarkData
private

Definition at line 153 of file undoblk.hxx.

Referenced by DoChange().

sal_uLong ScUndoCut::nEndChangeAction
private

Definition at line 158 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

sal_uLong ScUndoCut::nStartChangeAction
private

Definition at line 157 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

ScDocumentUniquePtr ScUndoCut::pUndoDoc
private

Definition at line 155 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().


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