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

#include <undocell.hxx>

Inheritance diagram for ScUndoSetCell:
Collaboration diagram for ScUndoSetCell:

Public Member Functions

 ScUndoSetCell (ScDocShell *pDocSh, const ScAddress &rPos, ScCellValue aOldVal, ScCellValue aNewVal)
virtual ~ScUndoSetCell () 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
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

Private Member Functions

void SetChangeTrack ()
void SetValue (const ScCellValue &rVal)
void MoveCursorToCell ()

Private Attributes

ScAddress maPos
ScCellValue maOldValue
ScCellValue maNewValue
sal_uLong mnEndChangeAction

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
std::unique_ptr< SfxUndoActionpDetectiveUndo
ViewShellId mnViewShellId

Detailed Description

Definition at line 138 of file undocell.hxx.

Constructor & Destructor Documentation

◆ ScUndoSetCell()

ScUndoSetCell::ScUndoSetCell ( ScDocShell pDocSh,
const ScAddress rPos,
ScCellValue  aOldVal,
ScCellValue  aNewVal 

Definition at line 392 of file undocell.cxx.

References SetChangeTrack().

◆ ~ScUndoSetCell()

ScUndoSetCell::~ScUndoSetCell ( )

Definition at line 398 of file undocell.cxx.

Member Function Documentation

◆ CanRepeat()

bool ScUndoSetCell::CanRepeat ( SfxRepeatTarget &  rTarget) const

Reimplemented from SfxUndoAction.

Definition at line 430 of file undocell.cxx.

◆ getAffectedRange()

virtual std::optional< ScRange > ScUndoSetCell::getAffectedRange ( ) const

Reimplemented from ScSimpleUndo.

Definition at line 151 of file undocell.hxx.

References maPos.

◆ GetComment()

OUString ScUndoSetCell::GetComment ( ) const

Reimplemented from SfxUndoAction.

Definition at line 435 of file undocell.cxx.

References ScResId().

◆ MoveCursorToCell()

void ScUndoSetCell::MoveCursorToCell ( )

◆ Redo()

void ScUndoSetCell::Redo ( )

◆ Repeat()

void ScUndoSetCell::Repeat ( SfxRepeatTarget &  rTarget)

Reimplemented from SfxUndoAction.

Definition at line 425 of file undocell.cxx.

◆ SetChangeTrack()

void ScUndoSetCell::SetChangeTrack ( )

◆ SetValue()

void ScUndoSetCell::SetValue ( const ScCellValue rVal)

◆ Undo()

void ScUndoSetCell::Undo ( )

Member Data Documentation

◆ maNewValue

ScCellValue ScUndoSetCell::maNewValue

Definition at line 161 of file undocell.hxx.

Referenced by Redo().

◆ maOldValue

ScCellValue ScUndoSetCell::maOldValue

Definition at line 160 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ maPos

ScAddress ScUndoSetCell::maPos

Definition at line 159 of file undocell.hxx.

Referenced by getAffectedRange(), MoveCursorToCell(), Redo(), SetChangeTrack(), SetValue(), and Undo().

◆ mnEndChangeAction

sal_uLong ScUndoSetCell::mnEndChangeAction

Definition at line 162 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

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