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...
 
- 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 void Repeat (SfxRepeatTarget &)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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 345 of file undocell.hxx.

Constructor & Destructor Documentation

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

Definition at line 18 of file undocell2.cxx.

sc::UndoSetCells::~UndoSetCells ( )
overridevirtual

Definition at line 21 of file undocell2.cxx.

Member Function Documentation

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

Reimplemented from SfxUndoAction.

Definition at line 48 of file undocell2.cxx.

void sc::UndoSetCells::DoChange ( const CellValues rValues)
private
OUString sc::UndoSetCells::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 53 of file undocell2.cxx.

References ScResId().

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

Definition at line 363 of file undocell.hxx.

References maOldValues.

void sc::UndoSetCells::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 41 of file undocell2.cxx.

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

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

Definition at line 59 of file undocell2.cxx.

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

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

Definition at line 64 of file undocell2.cxx.

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

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

CellValues sc::UndoSetCells::maNewValues
private

Definition at line 349 of file undocell.hxx.

Referenced by Redo(), and SetNewValues().

CellValues sc::UndoSetCells::maOldValues
private

Definition at line 348 of file undocell.hxx.

Referenced by GetOldValues(), and Undo().

ScAddress sc::UndoSetCells::maTopPos
private

Definition at line 347 of file undocell.hxx.

Referenced by DoChange().


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