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:
Collaboration diagram for ScUndoEnterData:


struct  Value

Public Types

typedef std::vector< ValueValuesType
- 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, const OUString &rNewStr, 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
- 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 DoChange () const
void SetChangeTrack ()

Private Attributes

ValuesType maOldValues
OUString maNewString
std::unique_ptr< EditTextObjectmpNewEditData
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
std::unique_ptr< SfxUndoActionpDetectiveUndo
ViewShellId mnViewShellId

Detailed Description

Definition at line 70 of file undocell.hxx.

Member Typedef Documentation

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

Definition at line 84 of file undocell.hxx.

Constructor & Destructor Documentation

ScUndoEnterData::ScUndoEnterData ( ScDocShell pNewDocShell,
const ScAddress rPos,
ValuesType rOldValues,
const OUString &  rNewStr,
std::unique_ptr< EditTextObject pObj 

Definition at line 160 of file undocell.cxx.

References maOldValues, and SetChangeTrack().

Member Function Documentation

bool ScUndoEnterData::CanRepeat ( SfxRepeatTarget rTarget) const

Reimplemented from SfxUndoAction.

Definition at line 302 of file undocell.cxx.

void ScUndoEnterData::DoChange ( ) const
OUString ScUndoEnterData::GetComment ( ) const

Reimplemented from SfxUndoAction.

Definition at line 174 of file undocell.cxx.

References ScResId().

void ScUndoEnterData::Redo ( )
void ScUndoEnterData::Repeat ( SfxRepeatTarget rTarget)

Reimplemented from SfxUndoAction.

Definition at line 293 of file undocell.cxx.

References maNewString.

void ScUndoEnterData::SetChangeTrack ( )
void ScUndoEnterData::Undo ( )

Member Data Documentation

OUString ScUndoEnterData::maNewString

Definition at line 100 of file undocell.hxx.

Referenced by Redo(), and Repeat().

ValuesType ScUndoEnterData::maOldValues

Definition at line 98 of file undocell.hxx.

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

ScAddress ScUndoEnterData::maPos

Definition at line 103 of file undocell.hxx.

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

sal_uLong ScUndoEnterData::mnEndChangeAction

Definition at line 102 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

std::unique_ptr<EditTextObject> ScUndoEnterData::mpNewEditData

Definition at line 101 of file undocell.hxx.

Referenced by Redo().

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