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, ScCellValue aOldText, ScCellValue aNewText)
 
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...
 
virtual std::optional< ScRangegetAffectedRange () 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 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 214 of file undocell.hxx.

Constructor & Destructor Documentation

◆ ScUndoThesaurus()

ScUndoThesaurus::ScUndoThesaurus ( ScDocShell pNewDocShell,
SCCOL  nNewCol,
SCROW  nNewRow,
SCTAB  nNewTab,
ScCellValue  aOldText,
ScCellValue  aNewText 
)

Definition at line 650 of file undocell.cxx.

References maOldText, and SetChangeTrack().

◆ ~ScUndoThesaurus()

ScUndoThesaurus::~ScUndoThesaurus ( )
overridevirtual

Definition at line 663 of file undocell.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 726 of file undocell.cxx.

References rTarget.

◆ DoChange()

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

◆ GetComment()

OUString ScUndoThesaurus::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 665 of file undocell.cxx.

References ScResId().

◆ Redo()

void ScUndoThesaurus::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 713 of file undocell.cxx.

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

◆ Repeat()

void ScUndoThesaurus::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 720 of file undocell.cxx.

References rTarget.

◆ SetChangeTrack()

void ScUndoThesaurus::SetChangeTrack ( const ScCellValue rOldCell)
private

◆ Undo()

void ScUndoThesaurus::Undo ( )
overridevirtual

Member Data Documentation

◆ maNewText

ScCellValue ScUndoThesaurus::maNewText
private

Definition at line 236 of file undocell.hxx.

Referenced by Redo().

◆ maOldText

ScCellValue ScUndoThesaurus::maOldText
private

Definition at line 235 of file undocell.hxx.

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

◆ nCol

SCCOL ScUndoThesaurus::nCol
private

Definition at line 230 of file undocell.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nEndChangeAction

sal_uLong ScUndoThesaurus::nEndChangeAction
private

Definition at line 233 of file undocell.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nRow

SCROW ScUndoThesaurus::nRow
private

Definition at line 231 of file undocell.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nTab

SCTAB ScUndoThesaurus::nTab
private

Definition at line 232 of file undocell.hxx.

Referenced by DoChange(), and SetChangeTrack().


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