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, const ScCellValue &rOldVal, const ScCellValue &rNewVal)
 
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
 
- 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 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 135 of file undocell.hxx.

Constructor & Destructor Documentation

ScUndoSetCell::ScUndoSetCell ( ScDocShell pDocSh,
const ScAddress rPos,
const ScCellValue rOldVal,
const ScCellValue rNewVal 
)

Definition at line 382 of file undocell.cxx.

References SetChangeTrack().

ScUndoSetCell::~ScUndoSetCell ( )
overridevirtual

Definition at line 388 of file undocell.cxx.

Member Function Documentation

bool ScUndoSetCell::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 420 of file undocell.cxx.

OUString ScUndoSetCell::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 425 of file undocell.cxx.

References ScResId().

void ScUndoSetCell::MoveCursorToCell ( )
private
void ScUndoSetCell::Redo ( )
overridevirtual
void ScUndoSetCell::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 415 of file undocell.cxx.

void ScUndoSetCell::SetChangeTrack ( )
private
void ScUndoSetCell::SetValue ( const ScCellValue rVal)
private
void ScUndoSetCell::Undo ( )
overridevirtual

Member Data Documentation

ScCellValue ScUndoSetCell::maNewValue
private

Definition at line 156 of file undocell.hxx.

Referenced by Redo().

ScCellValue ScUndoSetCell::maOldValue
private

Definition at line 155 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

ScAddress ScUndoSetCell::maPos
private

Definition at line 154 of file undocell.hxx.

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

sal_uLong ScUndoSetCell::mnEndChangeAction
private

Definition at line 157 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().


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