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 UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
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 28 of file undodraw.hxx.

Constructor & Destructor Documentation

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

Definition at line 25 of file undodraw.cxx.

References ScTabViewShell::GetActiveViewShell(), and mnViewShellId.

ScUndoDraw::~ScUndoDraw ( )
overridevirtual

Definition at line 34 of file undodraw.cxx.

Member Function Documentation

bool ScUndoDraw::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 99 of file undodraw.cxx.

References pDrawUndo.

OUString ScUndoDraw::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 38 of file undodraw.cxx.

References pDrawUndo.

OUString ScUndoDraw::GetRepeatComment ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 50 of file undodraw.cxx.

References pDrawUndo.

ViewShellId ScUndoDraw::GetViewShellId ( ) const
overridevirtual

See SfxUndoAction::GetViewShellId().

Reimplemented from SfxUndoAction.

Definition at line 45 of file undodraw.cxx.

References mnViewShellId.

bool ScUndoDraw::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 57 of file undodraw.cxx.

References pDrawUndo.

void ScUndoDraw::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 83 of file undodraw.cxx.

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

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

Definition at line 40 of file undodraw.hxx.

Referenced by ScSimpleUndo::Merge().

void ScUndoDraw::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 93 of file undodraw.cxx.

References pDrawUndo.

void ScUndoDraw::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 73 of file undodraw.cxx.

References pDocShell, pDrawUndo, ScDocShell::SetDrawModified(), and 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

ViewShellId ScUndoDraw::mnViewShellId
private

Definition at line 32 of file undodraw.hxx.

Referenced by GetViewShellId(), and ScUndoDraw().

ScDocShell* ScUndoDraw::pDocShell
private

Definition at line 31 of file undodraw.hxx.

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

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

Definition at line 30 of file undodraw.hxx.

Referenced by CanRepeat(), GetComment(), GetRepeatComment(), Merge(), Redo(), Repeat(), and Undo().


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