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

#include <undoback.hxx>

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

Public Member Functions

 SdBackgroundObjUndoAction (SdDrawDocument &rDoc, SdPage &rPage, const SfxItemSet &rItemSet)
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual SdUndoActionClone () const 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 Member Functions

void ImplRestoreBackgroundObj ()
 
void saveFillBitmap (SfxItemSet &rItemSet)
 
void restoreFillBitmap (SfxItemSet &rItemSet)
 

Private Attributes

SdPagemrPage
 
std::unique_ptr< SfxItemSetmpItemSet
 
std::unique_ptr< SfxPoolItemmpFillBitmapItem
 
bool mbHasFillBitmap
 

Additional Inherited Members

- Protected Attributes inherited from SdUndoAction
SdDrawDocumentmpDoc
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 33 of file undoback.hxx.

Constructor & Destructor Documentation

◆ SdBackgroundObjUndoAction()

SdBackgroundObjUndoAction::SdBackgroundObjUndoAction ( SdDrawDocument rDoc,
SdPage rPage,
const SfxItemSet rItemSet 
)

Definition at line 35 of file undoback.cxx.

References mpItemSet, saveFillBitmap(), SdResId(), and SdUndoAction::SetComment().

Member Function Documentation

◆ Clone()

SdUndoAction * SdBackgroundObjUndoAction::Clone ( ) const
overridevirtual

Reimplemented from SdUndoAction.

Definition at line 75 of file undoback.cxx.

References mbHasFillBitmap, SdUndoAction::mpDoc, mpFillBitmapItem, mpItemSet, and mrPage.

◆ ImplRestoreBackgroundObj()

void SdBackgroundObjUndoAction::ImplRestoreBackgroundObj ( )
private

◆ Redo()

void SdBackgroundObjUndoAction::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 70 of file undoback.cxx.

References ImplRestoreBackgroundObj().

◆ restoreFillBitmap()

void SdBackgroundObjUndoAction::restoreFillBitmap ( SfxItemSet rItemSet)
private

Definition at line 98 of file undoback.cxx.

References mbHasFillBitmap, mpFillBitmapItem, and SfxItemSet::Put().

Referenced by ImplRestoreBackgroundObj().

◆ saveFillBitmap()

void SdBackgroundObjUndoAction::saveFillBitmap ( SfxItemSet rItemSet)
private

◆ Undo()

void SdBackgroundObjUndoAction::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 65 of file undoback.cxx.

References ImplRestoreBackgroundObj().

Member Data Documentation

◆ mbHasFillBitmap

bool SdBackgroundObjUndoAction::mbHasFillBitmap
private

Definition at line 40 of file undoback.hxx.

Referenced by Clone(), ImplRestoreBackgroundObj(), restoreFillBitmap(), and saveFillBitmap().

◆ mpFillBitmapItem

std::unique_ptr<SfxPoolItem> SdBackgroundObjUndoAction::mpFillBitmapItem
private

Definition at line 39 of file undoback.hxx.

Referenced by Clone(), ImplRestoreBackgroundObj(), restoreFillBitmap(), and saveFillBitmap().

◆ mpItemSet

std::unique_ptr<SfxItemSet> SdBackgroundObjUndoAction::mpItemSet
private

Definition at line 38 of file undoback.hxx.

Referenced by Clone(), ImplRestoreBackgroundObj(), and SdBackgroundObjUndoAction().

◆ mrPage

SdPage& SdBackgroundObjUndoAction::mrPage
private

Definition at line 37 of file undoback.hxx.

Referenced by Clone(), and ImplRestoreBackgroundObj().


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