LibreOffice Module svx (master)  1
Public Member Functions | Private Attributes | List of all members
SdrUndoSetPageNum Class Referencefinal

Moving a Page within the List. More...

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoSetPageNum (SdrPage &rNewPg, sal_uInt16 nOldPageNum1, sal_uInt16 nNewPageNum1)
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual OUString GetComment () const override
 
- Public Member Functions inherited from SdrUndoAction
virtual ~SdrUndoAction () override
 
virtual bool CanRepeat (SfxRepeatTarget &rView) const override
 
virtual void Repeat (SfxRepeatTarget &rView) override
 
virtual OUString GetRepeatComment (SfxRepeatTarget &rView) const override
 
virtual OUString GetSdrRepeatComment () const
 
virtual bool CanSdrRepeat (SdrView &rView) const
 
virtual void SdrRepeat (SdrView &rView)
 
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)
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

sal_uInt16 const nOldPageNum
 
sal_uInt16 const nNewPageNum
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoPage
void ImpInsertPage (sal_uInt16 nNum)
 
void ImpRemovePage (sal_uInt16 nNum)
 
void ImpMovePage (sal_uInt16 nOldNum, sal_uInt16 nNewNum)
 
 SdrUndoPage (SdrPage &rNewPg)
 
- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 
- Static Protected Member Functions inherited from SdrUndoPage
static OUString ImpGetDescriptionStr (const char *pStrCacheID)
 
- Protected Attributes inherited from SdrUndoPage
SdrPagemrPage
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Moving a Page within the List.

Create Action before moving the Page.

Definition at line 621 of file svdundo.hxx.

Constructor & Destructor Documentation

SdrUndoSetPageNum::SdrUndoSetPageNum ( SdrPage rNewPg,
sal_uInt16  nOldPageNum1,
sal_uInt16  nNewPageNum1 
)
inline

Definition at line 627 of file svdundo.hxx.

Member Function Documentation

OUString SdrUndoSetPageNum::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1541 of file svdundo.cxx.

References SdrUndoPage::ImpGetDescriptionStr().

void SdrUndoSetPageNum::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1536 of file svdundo.cxx.

References SdrUndoPage::ImpMovePage(), nNewPageNum, and nOldPageNum.

void SdrUndoSetPageNum::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1531 of file svdundo.cxx.

References SdrUndoPage::ImpMovePage(), nNewPageNum, and nOldPageNum.

Member Data Documentation

sal_uInt16 const SdrUndoSetPageNum::nNewPageNum
private

Definition at line 624 of file svdundo.hxx.

Referenced by Redo(), and Undo().

sal_uInt16 const SdrUndoSetPageNum::nOldPageNum
private

Definition at line 623 of file svdundo.hxx.

Referenced by Redo(), and Undo().


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