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

#include <undocell.hxx>

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

Public Member Functions

 ScUndoThesaurus (ScDocShell *pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, const ScCellValue &rOldText, const ScCellValue &rNewText)
 
virtual ~ScUndoThesaurus () override
 
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 (bool bUndo, const ScCellValue &rText)
 
void SetChangeTrack (const ScCellValue &rOldCell)
 

Private Attributes

SCCOL nCol
 
SCROW nRow
 
SCTAB nTab
 
sal_uLong nEndChangeAction
 
ScCellValue maOldText
 
ScCellValue maNewText
 

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

Constructor & Destructor Documentation

ScUndoThesaurus::ScUndoThesaurus ( ScDocShell pNewDocShell,
SCCOL  nNewCol,
SCROW  nNewRow,
SCTAB  nNewTab,
const ScCellValue rOldText,
const ScCellValue rNewText 
)

Definition at line 628 of file undocell.cxx.

References maOldText, and SetChangeTrack().

ScUndoThesaurus::~ScUndoThesaurus ( )
overridevirtual

Definition at line 641 of file undocell.cxx.

Member Function Documentation

bool ScUndoThesaurus::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 704 of file undocell.cxx.

void ScUndoThesaurus::DoChange ( bool  bUndo,
const ScCellValue rText 
)
private
OUString ScUndoThesaurus::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 643 of file undocell.cxx.

References ScResId().

void ScUndoThesaurus::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 691 of file undocell.cxx.

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

void ScUndoThesaurus::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 698 of file undocell.cxx.

void ScUndoThesaurus::SetChangeTrack ( const ScCellValue rOldCell)
private
void ScUndoThesaurus::Undo ( )
overridevirtual

Member Data Documentation

ScCellValue ScUndoThesaurus::maNewText
private

Definition at line 231 of file undocell.hxx.

Referenced by Redo().

ScCellValue ScUndoThesaurus::maOldText
private

Definition at line 230 of file undocell.hxx.

Referenced by DoChange(), ScUndoThesaurus(), and Undo().

SCCOL ScUndoThesaurus::nCol
private

Definition at line 225 of file undocell.hxx.

Referenced by DoChange(), and SetChangeTrack().

sal_uLong ScUndoThesaurus::nEndChangeAction
private

Definition at line 228 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

SCROW ScUndoThesaurus::nRow
private

Definition at line 226 of file undocell.hxx.

Referenced by DoChange(), and SetChangeTrack().

SCTAB ScUndoThesaurus::nTab
private

Definition at line 227 of file undocell.hxx.

Referenced by DoChange(), and SetChangeTrack().


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