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  ObjStrAttrType {
  ObjStrAttrType::Name,
  ObjStrAttrType::Title,
  ObjStrAttrType::Description
}
 

Public Member Functions

 SdrUndoObjStrAttr (SdrObject &rNewObj, const ObjStrAttrType eObjStrAttr, const OUString &sOldStr, const 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 UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
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)
 
OUString ImpGetDescriptionStr (const char *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, const char *pStrCacheID, bool bRepeat=false)
 
- Protected Attributes inherited from SdrUndoObj
SdrObjectpObj
 
- 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 426 of file svdundo.hxx.

Member Enumeration Documentation

Enumerator
Name 
Title 
Description 

Definition at line 429 of file svdundo.hxx.

Constructor & Destructor Documentation

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

Definition at line 1144 of file svdundo.cxx.

Member Function Documentation

OUString SdrUndoObjStrAttr::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1191 of file svdundo.cxx.

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

void SdrUndoObjStrAttr::Redo ( )
overridevirtual
void SdrUndoObjStrAttr::Undo ( )
overridevirtual

Member Data Documentation

const ObjStrAttrType SdrUndoObjStrAttr::meObjStrAttr
private

Definition at line 447 of file svdundo.hxx.

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

const OUString SdrUndoObjStrAttr::msNewStr
private

Definition at line 449 of file svdundo.hxx.

Referenced by GetComment(), and Redo().

const OUString SdrUndoObjStrAttr::msOldStr
private

Definition at line 448 of file svdundo.hxx.

Referenced by Undo().


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