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

#include <undoheaderfooter.hxx>

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

Public Member Functions

 SdHeaderFooterUndoAction (SdDrawDocument *pDoc, SdPage *pPage, sd::HeaderFooterSettings aNewSettings)
 
virtual ~SdHeaderFooterUndoAction () 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
 
const sd::HeaderFooterSettings maOldSettings
 
const sd::HeaderFooterSettings maNewSettings
 

Additional Inherited Members

- Protected Attributes inherited from SdUndoAction
SdDrawDocumentmpDoc
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 30 of file undoheaderfooter.hxx.

Constructor & Destructor Documentation

◆ SdHeaderFooterUndoAction()

SdHeaderFooterUndoAction::SdHeaderFooterUndoAction ( SdDrawDocument pDoc,
SdPage pPage,
sd::HeaderFooterSettings  aNewSettings 
)

Definition at line 28 of file undoheaderfooter.cxx.

References mpPage.

◆ ~SdHeaderFooterUndoAction()

SdHeaderFooterUndoAction::~SdHeaderFooterUndoAction ( )
overridevirtual

Definition at line 36 of file undoheaderfooter.cxx.

Member Function Documentation

◆ Redo()

void SdHeaderFooterUndoAction::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 47 of file undoheaderfooter.cxx.

References SfxViewFrame::Current(), maNewSettings, mpPage, and SdPage::setHeaderFooterSettings().

◆ Undo()

void SdHeaderFooterUndoAction::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 40 of file undoheaderfooter.cxx.

References SfxViewFrame::Current(), maOldSettings, mpPage, and SdPage::setHeaderFooterSettings().

Member Data Documentation

◆ maNewSettings

const sd::HeaderFooterSettings SdHeaderFooterUndoAction::maNewSettings
private

Definition at line 35 of file undoheaderfooter.hxx.

Referenced by Redo().

◆ maOldSettings

const sd::HeaderFooterSettings SdHeaderFooterUndoAction::maOldSettings
private

Definition at line 34 of file undoheaderfooter.hxx.

Referenced by Undo().

◆ mpPage

SdPage* SdHeaderFooterUndoAction::mpPage
private

Definition at line 32 of file undoheaderfooter.hxx.

Referenced by Redo(), and Undo().


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