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

#include <undobase.hxx>

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

Public Member Functions

 ScBlockUndo (ScDocShell *pDocSh, const ScRange &rRange, ScBlockUndoMode eBlockMode)
 
virtual ~ScBlockUndo () override
 
virtual std::optional< ScRangegetAffectedRange () 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
 

Protected Member Functions

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...
 

Protected Attributes

ScRange aBlockRange
 
std::unique_ptr< SdrUndoActionpDrawUndo
 
ScBlockUndoMode eMode
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- Static Protected Member Functions inherited from ScSimpleUndo
static void ShowTable (SCTAB nTab)
 
static void ShowTable (const ScRange &rRange)
 

Detailed Description

Definition at line 80 of file undobase.hxx.

Constructor & Destructor Documentation

◆ ScBlockUndo()

ScBlockUndo::ScBlockUndo ( ScDocShell pDocSh,
const ScRange rRange,
ScBlockUndoMode  eBlockMode 
)

◆ ~ScBlockUndo()

ScBlockUndo::~ScBlockUndo ( )
overridevirtual

Definition at line 253 of file undobase.cxx.

References pDrawUndo.

Member Function Documentation

◆ AdjustHeight()

bool ScBlockUndo::AdjustHeight ( )
protected

◆ BeginUndo()

void ScBlockUndo::BeginUndo ( )
protected

◆ EndRedo()

void ScBlockUndo::EndRedo ( )
protected

◆ EndUndo()

void ScBlockUndo::EndUndo ( )
protected

◆ getAffectedRange()

virtual std::optional< ScRange > ScBlockUndo::getAffectedRange ( ) const
inlineoverridevirtual

Reimplemented from ScSimpleUndo.

Definition at line 87 of file undobase.hxx.

References aBlockRange.

◆ ShowBlock()

void ScBlockUndo::ShowBlock ( )
protected

Member Data Documentation

◆ aBlockRange

ScRange ScBlockUndo::aBlockRange
protected

◆ eMode

ScBlockUndoMode ScBlockUndo::eMode
protected

Definition at line 92 of file undobase.hxx.

Referenced by EndRedo(), and EndUndo().

◆ pDrawUndo

std::unique_ptr<SdrUndoAction> ScBlockUndo::pDrawUndo
protected

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