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

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoObjSetText (SdrObject &rNewObj, sal_Int32 nText)
 
virtual ~SdrUndoObjSetText () override
 
bool IsDifferent () const
 
void AfterSetText ()
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual OUString GetComment () const override
 
virtual OUString GetSdrRepeatComment () const override
 
virtual void SdrRepeat (SdrView &rView) override
 
virtual bool CanSdrRepeat (SdrView &rView) 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
 

Private Attributes

std::optional< OutlinerParaObjectpOldText
 
std::optional< OutlinerParaObjectpNewText
 
bool bNewTextAvailable
 
bool bEmptyPresObj
 
sal_Int32 mnText
 

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)
 
- Static Protected Member Functions inherited from SdrUndoObj
static OUString GetDescriptionStringForObject (const SdrObject &_rForObject, TranslateId pStrCacheID, bool bRepeat=false)
 
- Protected Attributes inherited from SdrUndoObj
rtl::Reference< SdrObjectmxObj
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Definition at line 421 of file svdundo.hxx.

Constructor & Destructor Documentation

◆ SdrUndoObjSetText()

SdrUndoObjSetText::SdrUndoObjSetText ( SdrObject rNewObj,
sal_Int32  nText 
)

◆ ~SdrUndoObjSetText()

SdrUndoObjSetText::~SdrUndoObjSetText ( )
overridevirtual

Definition at line 999 of file svdundo.cxx.

References pNewText, pOldText, and std::optional< OutlinerParaObject >::reset().

Member Function Documentation

◆ AfterSetText()

void SdrUndoObjSetText::AfterSetText ( )

Definition at line 1012 of file svdundo.cxx.

References bNewTextAvailable, SdrText::GetOutlinerParaObject(), mnText, SdrUndoObj::mxObj, and pNewText.

Referenced by Undo().

◆ CanSdrRepeat()

bool SdrUndoObjSetText::CanSdrRepeat ( SdrView rView) const
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 1142 of file svdundo.cxx.

References SdrMarkView::AreObjectsMarked(), and bNewTextAvailable.

◆ GetComment()

OUString SdrUndoObjSetText::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1100 of file svdundo.cxx.

References SdrUndoObj::ImpGetDescriptionStr().

◆ GetSdrRepeatComment()

OUString SdrUndoObjSetText::GetSdrRepeatComment ( ) const
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 1105 of file svdundo.cxx.

References SdrUndoObj::ImpGetDescriptionStr().

◆ IsDifferent()

bool SdrUndoObjSetText::IsDifferent ( ) const

Definition at line 1005 of file svdundo.cxx.

References pNewText, and pOldText.

◆ Redo()

void SdrUndoObjSetText::Redo ( )
overridevirtual

◆ SdrRepeat()

void SdrUndoObjSetText::SdrRepeat ( SdrView rView)
overridevirtual

◆ Undo()

void SdrUndoObjSetText::Undo ( )
overridevirtual

Member Data Documentation

◆ bEmptyPresObj

bool SdrUndoObjSetText::bEmptyPresObj
private

Definition at line 428 of file svdundo.hxx.

Referenced by SdrUndoObjSetText(), and Undo().

◆ bNewTextAvailable

bool SdrUndoObjSetText::bNewTextAvailable
private

Definition at line 427 of file svdundo.hxx.

Referenced by AfterSetText(), CanSdrRepeat(), SdrRepeat(), and Undo().

◆ mnText

sal_Int32 SdrUndoObjSetText::mnText
private

Definition at line 429 of file svdundo.hxx.

Referenced by AfterSetText(), Redo(), SdrUndoObjSetText(), and Undo().

◆ pNewText

std::optional<OutlinerParaObject> SdrUndoObjSetText::pNewText
private

Definition at line 426 of file svdundo.hxx.

Referenced by AfterSetText(), IsDifferent(), Redo(), SdrRepeat(), and ~SdrUndoObjSetText().

◆ pOldText

std::optional<OutlinerParaObject> SdrUndoObjSetText::pOldText
private

Definition at line 424 of file svdundo.hxx.

Referenced by IsDifferent(), SdrUndoObjSetText(), Undo(), and ~SdrUndoObjSetText().


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