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:
[legend]
Collaboration diagram for ScUndoSetCell:
[legend]

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
ScDocShellpDocShell
 
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 ( )
overridevirtual

Definition at line 398 of file undocell.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 430 of file undocell.cxx.

◆ getAffectedRange()

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

Reimplemented from ScSimpleUndo.

Definition at line 151 of file undocell.hxx.

References maPos.

◆ GetComment()

OUString ScUndoSetCell::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 435 of file undocell.cxx.

References ScResId().

◆ MoveCursorToCell()

void ScUndoSetCell::MoveCursorToCell ( )
private

◆ Redo()

void ScUndoSetCell::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoSetCell::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 425 of file undocell.cxx.

◆ SetChangeTrack()

void ScUndoSetCell::SetChangeTrack ( )
private

◆ SetValue()

void ScUndoSetCell::SetValue ( const ScCellValue rVal)
private

◆ Undo()

void ScUndoSetCell::Undo ( )
overridevirtual

Member Data Documentation

◆ maNewValue

ScCellValue ScUndoSetCell::maNewValue
private

Definition at line 161 of file undocell.hxx.

Referenced by Redo().

◆ maOldValue

ScCellValue ScUndoSetCell::maOldValue
private

Definition at line 160 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ maPos

ScAddress ScUndoSetCell::maPos
private

Definition at line 159 of file undocell.hxx.

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

◆ mnEndChangeAction

sal_uLong ScUndoSetCell::mnEndChangeAction
private

Definition at line 162 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().


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