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

#include <undodraw.hxx>

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

Public Member Functions

 ScUndoDraw (std::unique_ptr< SfxUndoAction > pUndo, ScDocShell *pDocSh)
 
virtual ~ScUndoDraw () override
 
std::unique_ptr< SfxUndoActionReleaseDrawUndo ()
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual void Repeat (SfxRepeatTarget &rTarget) override
 
virtual bool CanRepeat (SfxRepeatTarget &rTarget) const override
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
virtual OUString GetComment () const override
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- 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 UpdateSubShell ()
 

Private Attributes

std::unique_ptr< SfxUndoActionpDrawUndo
 
ScDocShellpDocShell
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 27 of file undodraw.hxx.

Constructor & Destructor Documentation

◆ ScUndoDraw()

ScUndoDraw::ScUndoDraw ( std::unique_ptr< SfxUndoAction pUndo,
ScDocShell pDocSh 
)

Definition at line 25 of file undodraw.cxx.

References ScTabViewShell::GetActiveViewShell(), and mnViewShellId.

◆ ~ScUndoDraw()

ScUndoDraw::~ScUndoDraw ( )
overridevirtual

Definition at line 34 of file undodraw.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 99 of file undodraw.cxx.

References pDrawUndo, and rTarget.

◆ GetComment()

OUString ScUndoDraw::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 38 of file undodraw.cxx.

References pDrawUndo.

◆ GetRepeatComment()

OUString ScUndoDraw::GetRepeatComment ( SfxRepeatTarget &  rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 50 of file undodraw.cxx.

References pDrawUndo, and rTarget.

◆ GetViewShellId()

ViewShellId ScUndoDraw::GetViewShellId ( ) const
overridevirtual

See SfxUndoAction::GetViewShellId().

Reimplemented from SfxUndoAction.

Definition at line 45 of file undodraw.cxx.

References mnViewShellId.

◆ Merge()

bool ScUndoDraw::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 57 of file undodraw.cxx.

References pDrawUndo.

◆ Redo()

void ScUndoDraw::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 83 of file undodraw.cxx.

References pDocShell, pDrawUndo, ScDocShell::SetDrawModified(), and UpdateSubShell().

◆ ReleaseDrawUndo()

std::unique_ptr< SfxUndoAction > ScUndoDraw::ReleaseDrawUndo ( )
inline

Definition at line 39 of file undodraw.hxx.

References pDrawUndo.

Referenced by ScSimpleUndo::Merge().

◆ Repeat()

void ScUndoDraw::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 93 of file undodraw.cxx.

References pDrawUndo, and rTarget.

◆ Undo()

void ScUndoDraw::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 73 of file undodraw.cxx.

References pDocShell, pDrawUndo, ScDocShell::SetDrawModified(), and UpdateSubShell().

◆ UpdateSubShell()

void ScUndoDraw::UpdateSubShell ( )
private

Definition at line 65 of file undodraw.cxx.

References ScDocShell::GetBestViewShell(), pDocShell, and ScTabViewShell::UpdateDrawShell().

Referenced by Redo(), and Undo().

Member Data Documentation

◆ mnViewShellId

ViewShellId ScUndoDraw::mnViewShellId
private

Definition at line 31 of file undodraw.hxx.

Referenced by GetViewShellId(), and ScUndoDraw().

◆ pDocShell

ScDocShell* ScUndoDraw::pDocShell
private

Definition at line 30 of file undodraw.hxx.

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

◆ pDrawUndo

std::unique_ptr<SfxUndoAction> ScUndoDraw::pDrawUndo
private

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