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

#include <undocell.hxx>

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

Public Member Functions

 ScUndoDetective (ScDocShell *pNewDocShell, std::unique_ptr< SdrUndoAction > pDraw, const ScDetOpData *pOperation, std::unique_ptr< ScDetOpList > pUndoList=nullptr)
 
virtual ~ScUndoDetective () 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 Attributes

bool bIsDelete
 
std::unique_ptr< ScDetOpListpOldList
 
sal_uInt16 nAction
 
ScAddress aPos
 
std::unique_ptr< SdrUndoActionpDrawUndo
 

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

Constructor & Destructor Documentation

◆ ScUndoDetective()

ScUndoDetective::ScUndoDetective ( ScDocShell pNewDocShell,
std::unique_ptr< SdrUndoAction pDraw,
const ScDetOpData pOperation,
std::unique_ptr< ScDetOpList pUndoList = nullptr 
)

Definition at line 877 of file undocell.cxx.

References aPos, bIsDelete, ScDetOpData::GetOperation(), ScDetOpData::GetPos(), and nAction.

◆ ~ScUndoDetective()

ScUndoDetective::~ScUndoDetective ( )
overridevirtual

Definition at line 893 of file undocell.cxx.

References pDrawUndo, and pOldList.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 977 of file undocell.cxx.

◆ GetComment()

OUString ScUndoDetective::GetComment ( ) const
overridevirtual

◆ Redo()

void ScUndoDetective::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoDetective::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 972 of file undocell.cxx.

◆ Undo()

void ScUndoDetective::Undo ( )
overridevirtual

Member Data Documentation

◆ aPos

ScAddress ScUndoDetective::aPos
private

Definition at line 325 of file undocell.hxx.

Referenced by Redo(), ScUndoDetective(), and Undo().

◆ bIsDelete

bool ScUndoDetective::bIsDelete
private

Definition at line 322 of file undocell.hxx.

Referenced by GetComment(), Redo(), ScUndoDetective(), and Undo().

◆ nAction

sal_uInt16 ScUndoDetective::nAction
private

Definition at line 324 of file undocell.hxx.

Referenced by GetComment(), Redo(), ScUndoDetective(), and Undo().

◆ pDrawUndo

std::unique_ptr<SdrUndoAction> ScUndoDetective::pDrawUndo
private

Definition at line 326 of file undocell.hxx.

Referenced by Redo(), Undo(), and ~ScUndoDetective().

◆ pOldList

std::unique_ptr<ScDetOpList> ScUndoDetective::pOldList
private

Definition at line 323 of file undocell.hxx.

Referenced by Undo(), and ~ScUndoDetective().


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