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

#include <undopage.hxx>

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

Public Member Functions

 SdPageLRUndoAction (SdDrawDocument *pDoc, SdPage *pThePage, sal_Int32 nOldLft, sal_Int32 nOldRgt, sal_Int32 nNewLft, sal_Int32 nNewRgt)
 
virtual ~SdPageLRUndoAction () override
 
virtual void Undo () override
 
virtual void Redo () override
 
- Public Member Functions inherited from SdUndoAction
 SdUndoAction (SdDrawDocument *pSdDrawDocument)
 
void SetComment (const OUString &rStr)
 
virtual OUString GetComment () const override
 
virtual SdUndoActionClone () const
 
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 Attributes

SdPagempPage
 
sal_Int32 mnOldLeft
 
sal_Int32 mnOldRight
 
sal_Int32 mnNewLeft
 
sal_Int32 mnNewRight
 

Additional Inherited Members

- Protected Attributes inherited from SdUndoAction
SdDrawDocumentmpDoc
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 107 of file undopage.hxx.

Constructor & Destructor Documentation

◆ SdPageLRUndoAction()

SdPageLRUndoAction::SdPageLRUndoAction ( SdDrawDocument pDoc,
SdPage pThePage,
sal_Int32  nOldLft,
sal_Int32  nOldRgt,
sal_Int32  nNewLft,
sal_Int32  nNewRgt 
)
inline

Definition at line 117 of file undopage.hxx.

◆ ~SdPageLRUndoAction()

SdPageLRUndoAction::~SdPageLRUndoAction ( )
overridevirtual

Definition at line 64 of file undopage.cxx.

Member Function Documentation

◆ Redo()

void SdPageLRUndoAction::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 74 of file undopage.cxx.

References mnNewLeft, mnNewRight, mpPage, SdPage::SetLeftBorder(), and SdPage::SetRightBorder().

◆ Undo()

void SdPageLRUndoAction::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 68 of file undopage.cxx.

References mnOldLeft, mnOldRight, mpPage, SdPage::SetLeftBorder(), and SdPage::SetRightBorder().

Member Data Documentation

◆ mnNewLeft

sal_Int32 SdPageLRUndoAction::mnNewLeft
private

Definition at line 113 of file undopage.hxx.

Referenced by Redo().

◆ mnNewRight

sal_Int32 SdPageLRUndoAction::mnNewRight
private

Definition at line 114 of file undopage.hxx.

Referenced by Redo().

◆ mnOldLeft

sal_Int32 SdPageLRUndoAction::mnOldLeft
private

Definition at line 111 of file undopage.hxx.

Referenced by Undo().

◆ mnOldRight

sal_Int32 SdPageLRUndoAction::mnOldRight
private

Definition at line 112 of file undopage.hxx.

Referenced by Undo().

◆ mpPage

SdPage* SdPageLRUndoAction::mpPage
private

Definition at line 109 of file undopage.hxx.

Referenced by Redo(), and Undo().


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