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

#include <undocell.hxx>

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

Classes

struct  Value
 

Public Types

typedef std::vector< Value > ValuesType
 
- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 

Public Member Functions

 ScUndoEnterData (ScDocShell *pNewDocShell, const ScAddress &rPos, ValuesType &rOldValues, OUString aNewStr, std::unique_ptr< EditTextObject > pObj)
 
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 DoChange () const
 
void SetChangeTrack ()
 

Private Attributes

ValuesType maOldValues
 
OUString maNewString
 
std::unique_ptr< EditTextObject > mpNewEditData
 
sal_uLong mnEndChangeAction
 
ScAddress maPos
 

Additional Inherited Members

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

Member Typedef Documentation

◆ ValuesType

typedef std::vector<Value> ScUndoEnterData::ValuesType

Definition at line 84 of file undocell.hxx.

Constructor & Destructor Documentation

◆ ScUndoEnterData()

ScUndoEnterData::ScUndoEnterData ( ScDocShell *  pNewDocShell,
const ScAddress &  rPos,
ValuesType &  rOldValues,
OUString  aNewStr,
std::unique_ptr< EditTextObject >  pObj 
)

Definition at line 169 of file undocell.cxx.

References maOldValues, and SetChangeTrack().

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 311 of file undocell.cxx.

References rTarget.

◆ DoChange()

void ScUndoEnterData::DoChange ( ) const
private

◆ getAffectedRange()

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

Reimplemented from ScSimpleUndo.

Definition at line 97 of file undocell.hxx.

References maPos.

◆ GetComment()

OUString ScUndoEnterData::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 183 of file undocell.cxx.

References ScResId().

◆ Redo()

void ScUndoEnterData::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoEnterData::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 302 of file undocell.cxx.

References maNewString, and rTarget.

◆ SetChangeTrack()

void ScUndoEnterData::SetChangeTrack ( )
private

◆ Undo()

void ScUndoEnterData::Undo ( )
overridevirtual

Member Data Documentation

◆ maNewString

OUString ScUndoEnterData::maNewString
private

Definition at line 102 of file undocell.hxx.

Referenced by Redo(), and Repeat().

◆ maOldValues

ValuesType ScUndoEnterData::maOldValues
private

Definition at line 100 of file undocell.hxx.

Referenced by DoChange(), Redo(), ScUndoEnterData(), SetChangeTrack(), and Undo().

◆ maPos

ScAddress ScUndoEnterData::maPos
private

Definition at line 105 of file undocell.hxx.

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

◆ mnEndChangeAction

sal_uLong ScUndoEnterData::mnEndChangeAction
private

Definition at line 104 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ mpNewEditData

std::unique_ptr<EditTextObject> ScUndoEnterData::mpNewEditData
private

Definition at line 103 of file undocell.hxx.

Referenced by Redo().


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