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

#include <undocell.hxx>

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

Public Member Functions

 ScUndoEnterValue (ScDocShell *pNewDocShell, const ScAddress &rNewPos, ScCellValue aUndoCell, double nVal)
 
virtual ~ScUndoEnterValue () 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< 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 SetChangeTrack ()
 

Private Attributes

ScAddress aPos
 
ScCellValue maOldCell
 
double nValue
 
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 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
ScDocShell * pDocShell
 
std::unique_ptr< SfxUndoAction > pDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 111 of file undocell.hxx.

Constructor & Destructor Documentation

◆ ScUndoEnterValue()

ScUndoEnterValue::ScUndoEnterValue ( ScDocShell *  pNewDocShell,
const ScAddress &  rNewPos,
ScCellValue  aUndoCell,
double  nVal 
)

Definition at line 316 of file undocell.cxx.

References nValue, and SetChangeTrack().

◆ ~ScUndoEnterValue()

ScUndoEnterValue::~ScUndoEnterValue ( )
overridevirtual

Definition at line 327 of file undocell.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 387 of file undocell.cxx.

◆ getAffectedRange()

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

Reimplemented from ScSimpleUndo.

Definition at line 127 of file undocell.hxx.

References aPos.

◆ GetComment()

OUString ScUndoEnterValue::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 331 of file undocell.cxx.

References ScResId().

◆ Redo()

void ScUndoEnterValue::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoEnterValue::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 382 of file undocell.cxx.

◆ SetChangeTrack()

void ScUndoEnterValue::SetChangeTrack ( )
private

◆ Undo()

void ScUndoEnterValue::Undo ( )
overridevirtual

Member Data Documentation

◆ aPos

ScAddress ScUndoEnterValue::aPos
private

Definition at line 130 of file undocell.hxx.

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

◆ maOldCell

ScCellValue ScUndoEnterValue::maOldCell
private

Definition at line 131 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nEndChangeAction

sal_uLong ScUndoEnterValue::nEndChangeAction
private

Definition at line 133 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nValue

double ScUndoEnterValue::nValue
private

Definition at line 132 of file undocell.hxx.

Referenced by Redo().


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