LibreOffice Module svx (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
SdrUndoObjStrAttr Class Referencefinal

Implement Title/Description Elements UI for Writer text frames, graphics and embedded objects (#i73249#) More...

#include <svdundo.hxx>

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

Public Types

enum class  ObjStrAttrType {
  Name ,
  Title ,
  Description
}
 

Public Member Functions

 SdrUndoObjStrAttr (SdrObject &rNewObj, const ObjStrAttrType eObjStrAttr, OUString sOldStr, OUString sNewStr)
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual OUString GetComment () 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

const ObjStrAttrType meObjStrAttr
 
const OUString msOldStr
 
const OUString msNewStr
 

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

Implement Title/Description Elements UI for Writer text frames, graphics and embedded objects (#i73249#)

Definition at line 452 of file svdundo.hxx.

Member Enumeration Documentation

◆ ObjStrAttrType

Enumerator
Name 
Title 
Description 

Definition at line 455 of file svdundo.hxx.

Constructor & Destructor Documentation

◆ SdrUndoObjStrAttr()

SdrUndoObjStrAttr::SdrUndoObjStrAttr ( SdrObject rNewObj,
const ObjStrAttrType  eObjStrAttr,
OUString  sOldStr,
OUString  sNewStr 
)

Definition at line 1152 of file svdundo.cxx.

Member Function Documentation

◆ GetComment()

OUString SdrUndoObjStrAttr::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1199 of file svdundo.cxx.

References aStr, Description, SdrUndoObj::ImpGetDescriptionStr(), meObjStrAttr, msNewStr, Name, and Title.

◆ Redo()

void SdrUndoObjStrAttr::Redo ( )
overridevirtual

◆ Undo()

void SdrUndoObjStrAttr::Undo ( )
overridevirtual

Member Data Documentation

◆ meObjStrAttr

const ObjStrAttrType SdrUndoObjStrAttr::meObjStrAttr
private

Definition at line 473 of file svdundo.hxx.

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

◆ msNewStr

const OUString SdrUndoObjStrAttr::msNewStr
private

Definition at line 475 of file svdundo.hxx.

Referenced by GetComment(), and Redo().

◆ msOldStr

const OUString SdrUndoObjStrAttr::msOldStr
private

Definition at line 474 of file svdundo.hxx.

Referenced by Undo().


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