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

#include <undocell.hxx>

Inheritance diagram for sc::UndoSetCells:
[legend]
Collaboration diagram for sc::UndoSetCells:
[legend]

Public Member Functions

 UndoSetCells (ScDocShell *pDocSh, const ScAddress &rTopPos)
 
virtual ~UndoSetCells () override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual bool CanRepeat (SfxRepeatTarget &) const override
 
virtual OUString GetComment () const override
 
CellValuesGetOldValues ()
 
void SetNewValues (const std::vector< double > &rVals)
 
void SetNewValues (const std::vector< ScFormulaCell * > &rVals)
 
- 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 DoChange (const CellValues &rValues)
 

Private Attributes

ScAddress maTopPos
 
CellValues maOldValues
 
CellValues maNewValues
 

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 354 of file undocell.hxx.

Constructor & Destructor Documentation

◆ UndoSetCells()

sc::UndoSetCells::UndoSetCells ( ScDocShell pDocSh,
const ScAddress rTopPos 
)

Definition at line 18 of file undocell2.cxx.

◆ ~UndoSetCells()

sc::UndoSetCells::~UndoSetCells ( )
overridevirtual

Definition at line 21 of file undocell2.cxx.

Member Function Documentation

◆ CanRepeat()

bool sc::UndoSetCells::CanRepeat ( SfxRepeatTarget &  ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 48 of file undocell2.cxx.

◆ DoChange()

void sc::UndoSetCells::DoChange ( const CellValues rValues)
private

◆ GetComment()

OUString sc::UndoSetCells::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 53 of file undocell2.cxx.

References ScResId().

◆ GetOldValues()

CellValues & sc::UndoSetCells::GetOldValues ( )
inline

Definition at line 372 of file undocell.hxx.

References maOldValues.

◆ Redo()

void sc::UndoSetCells::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 41 of file undocell2.cxx.

References ScSimpleUndo::BeginRedo(), DoChange(), ScSimpleUndo::EndRedo(), and maNewValues.

◆ SetNewValues() [1/2]

void sc::UndoSetCells::SetNewValues ( const std::vector< double > &  rVals)

Definition at line 59 of file undocell2.cxx.

References sc::CellValues::assign(), and maNewValues.

◆ SetNewValues() [2/2]

void sc::UndoSetCells::SetNewValues ( const std::vector< ScFormulaCell * > &  rVals)

Definition at line 64 of file undocell2.cxx.

References sc::CellValues::assign(), and maNewValues.

◆ Undo()

void sc::UndoSetCells::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 34 of file undocell2.cxx.

References ScSimpleUndo::BeginUndo(), DoChange(), ScSimpleUndo::EndUndo(), and maOldValues.

Member Data Documentation

◆ maNewValues

CellValues sc::UndoSetCells::maNewValues
private

Definition at line 358 of file undocell.hxx.

Referenced by Redo(), and SetNewValues().

◆ maOldValues

CellValues sc::UndoSetCells::maOldValues
private

Definition at line 357 of file undocell.hxx.

Referenced by GetOldValues(), and Undo().

◆ maTopPos

ScAddress sc::UndoSetCells::maTopPos
private

Definition at line 356 of file undocell.hxx.

Referenced by DoChange().


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