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

#include <outlundo.hxx>

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

Public Member Functions

 OutlinerUndoChangeDepth (Outliner *pOutliner, sal_Int32 nPara, sal_Int16 nOldDepth, sal_Int16 nNewDepth)
 
virtual void Undo () override
 
virtual void Redo () override
 
- Public Member Functions inherited from OutlinerUndoBase
 OutlinerUndoBase (sal_uInt16 nId, Outliner *pOutliner)
 
OutlinerGetOutliner () const
 
- Public Member Functions inherited from EditUndo
 EditUndo (sal_uInt16 nI, EditEngine *pEE)
 
virtual ~EditUndo () override
 
EditEngineGetEditEngine ()
 
virtual void Undo () override=0
 
virtual void Redo () override=0
 
virtual bool CanRepeat (SfxRepeatTarget &) const override
 
virtual OUString GetComment () const override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
sal_uInt16 GetId () 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

sal_Int32 mnPara
 
sal_Int16 mnOldDepth
 
sal_Int16 mnNewDepth
 

Detailed Description

Definition at line 76 of file outlundo.hxx.

Constructor & Destructor Documentation

◆ OutlinerUndoChangeDepth()

OutlinerUndoChangeDepth::OutlinerUndoChangeDepth ( Outliner pOutliner,
sal_Int32  nPara,
sal_Int16  nOldDepth,
sal_Int16  nNewDepth 
)

Definition at line 90 of file outlundo.cxx.

Member Function Documentation

◆ Redo()

void OutlinerUndoChangeDepth::Redo ( )
overridevirtual

Implements EditUndo.

Definition at line 100 of file outlundo.cxx.

References OutlinerUndoBase::GetOutliner(), Outliner::ImplInitDepth(), mnNewDepth, and mnPara.

◆ Undo()

void OutlinerUndoChangeDepth::Undo ( )
overridevirtual

Implements EditUndo.

Definition at line 95 of file outlundo.cxx.

References OutlinerUndoBase::GetOutliner(), Outliner::ImplInitDepth(), mnOldDepth, and mnPara.

Member Data Documentation

◆ mnNewDepth

sal_Int16 OutlinerUndoChangeDepth::mnNewDepth
private

Definition at line 81 of file outlundo.hxx.

Referenced by Redo().

◆ mnOldDepth

sal_Int16 OutlinerUndoChangeDepth::mnOldDepth
private

Definition at line 80 of file outlundo.hxx.

Referenced by Undo().

◆ mnPara

sal_Int32 OutlinerUndoChangeDepth::mnPara
private

Definition at line 79 of file outlundo.hxx.

Referenced by Redo(), and Undo().


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