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< 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
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 71 of file undocell.hxx.

Member Typedef Documentation

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

Definition at line 85 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 158 of file undocell.cxx.

References maOldValues, and SetChangeTrack().

Member Function Documentation

bool ScUndoEnterData::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 289 of file undocell.cxx.

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

Reimplemented from SfxUndoAction.

Definition at line 172 of file undocell.cxx.

References ScResId().

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

Reimplemented from SfxUndoAction.

Definition at line 280 of file undocell.cxx.

References maNewString.

void ScUndoEnterData::SetChangeTrack ( )
private
void ScUndoEnterData::Undo ( )
overridevirtual

Member Data Documentation

OUString ScUndoEnterData::maNewString
private

Definition at line 101 of file undocell.hxx.

Referenced by Redo(), and Repeat().

ValuesType ScUndoEnterData::maOldValues
private

Definition at line 99 of file undocell.hxx.

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

ScAddress ScUndoEnterData::maPos
private

Definition at line 104 of file undocell.hxx.

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

sal_uLong ScUndoEnterData::mnEndChangeAction
private

Definition at line 103 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

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

Definition at line 102 of file undocell.hxx.

Referenced by Redo().


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