LibreOffice Module svx (master) 1
Public Member Functions | Static Protected Member Functions | Private Attributes | List of all members
SdrUndoAttrObj Class Reference

Changing the object attributes. More...

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoAttrObj (SdrObject &rNewObj, bool bStyleSheet1=false, bool bSaveText=false)
 
virtual ~SdrUndoAttrObj () override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual OUString GetComment () const override
 
virtual OUString GetSdrRepeatComment () 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 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
 

Static Protected Member Functions

static void ensureStyleSheetInStyleSheetPool (SfxStyleSheetBasePool &rStyleSheetPool, SfxStyleSheet &rSheet)
 
- Static Protected Member Functions inherited from SdrUndoObj
static OUString GetDescriptionStringForObject (const SdrObject &_rForObject, TranslateId pStrCacheID, bool bRepeat=false)
 

Private Attributes

std::optional< SfxItemSetmoUndoSet
 
std::optional< SfxItemSetmoRedoSet
 
rtl::Reference< SfxStyleSheetBasemxUndoStyleSheet
 
rtl::Reference< SfxStyleSheetBasemxRedoStyleSheet
 
bool bStyleSheet
 
bool bHaveToTakeRedoSet
 
std::optional< OutlinerParaObjectpTextUndo
 
std::optional< OutlinerParaObjectpTextRedo
 
std::unique_ptr< SdrUndoGrouppUndoGroup
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoObj
 SdrUndoObj (SdrObject &rNewObj)
 
virtual ~SdrUndoObj () override
 
OUString ImpGetDescriptionStr (TranslateId pStrCacheID, bool bRepeat=false) const
 
void ImpShowPageOfThisObject ()
 
- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 
- Protected Attributes inherited from SdrUndoObj
rtl::Reference< SdrObjectmxObj
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Changing the object attributes.

Create Action right before setting the new attributes. Also for StyleSheets.

Definition at line 150 of file svdundo.hxx.

Constructor & Destructor Documentation

◆ SdrUndoAttrObj()

SdrUndoAttrObj::SdrUndoAttrObj ( SdrObject rNewObj,
bool  bStyleSheet1 = false,
bool  bSaveText = false 
)

◆ ~SdrUndoAttrObj()

SdrUndoAttrObj::~SdrUndoAttrObj ( )
overridevirtual

Member Function Documentation

◆ ensureStyleSheetInStyleSheetPool()

void SdrUndoAttrObj::ensureStyleSheetInStyleSheetPool ( SfxStyleSheetBasePool rStyleSheetPool,
SfxStyleSheet rSheet 
)
staticprotected

◆ GetComment()

OUString SdrUndoAttrObj::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 494 of file svdundo.cxx.

References bStyleSheet, and SdrUndoObj::ImpGetDescriptionStr().

◆ GetSdrRepeatComment()

OUString SdrUndoAttrObj::GetSdrRepeatComment ( ) const
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 506 of file svdundo.cxx.

References bStyleSheet, and SdrUndoObj::ImpGetDescriptionStr().

◆ Redo()

void SdrUndoAttrObj::Redo ( )
overridevirtual

◆ Undo()

void SdrUndoAttrObj::Undo ( )
overridevirtual

Member Data Documentation

◆ bHaveToTakeRedoSet

bool SdrUndoAttrObj::bHaveToTakeRedoSet
private

Definition at line 159 of file svdundo.hxx.

Referenced by Undo().

◆ bStyleSheet

bool SdrUndoAttrObj::bStyleSheet
private

Definition at line 158 of file svdundo.hxx.

Referenced by GetComment(), GetSdrRepeatComment(), Redo(), SdrUndoAttrObj(), and Undo().

◆ moRedoSet

std::optional<SfxItemSet> SdrUndoAttrObj::moRedoSet
private

Definition at line 153 of file svdundo.hxx.

Referenced by Redo(), Undo(), and ~SdrUndoAttrObj().

◆ moUndoSet

std::optional<SfxItemSet> SdrUndoAttrObj::moUndoSet
private

Definition at line 152 of file svdundo.hxx.

Referenced by SdrUndoAttrObj(), Undo(), and ~SdrUndoAttrObj().

◆ mxRedoStyleSheet

rtl::Reference< SfxStyleSheetBase > SdrUndoAttrObj::mxRedoStyleSheet
private

Definition at line 157 of file svdundo.hxx.

Referenced by Redo(), and Undo().

◆ mxUndoStyleSheet

rtl::Reference< SfxStyleSheetBase > SdrUndoAttrObj::mxUndoStyleSheet
private

Definition at line 156 of file svdundo.hxx.

Referenced by Redo(), SdrUndoAttrObj(), and Undo().

◆ pTextRedo

std::optional<OutlinerParaObject> SdrUndoAttrObj::pTextRedo
private

Definition at line 165 of file svdundo.hxx.

Referenced by Redo(), Undo(), and ~SdrUndoAttrObj().

◆ pTextUndo

std::optional<OutlinerParaObject> SdrUndoAttrObj::pTextUndo
private

Definition at line 162 of file svdundo.hxx.

Referenced by SdrUndoAttrObj(), Undo(), and ~SdrUndoAttrObj().

◆ pUndoGroup

std::unique_ptr<SdrUndoGroup> SdrUndoAttrObj::pUndoGroup
private

Definition at line 168 of file svdundo.hxx.

Referenced by Redo(), SdrUndoAttrObj(), Undo(), and ~SdrUndoAttrObj().


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