LibreOffice Module svx (master) 1
|
#include <svdundo.hxx>
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 DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
std::optional< OutlinerParaObject > | pOldText |
std::optional< OutlinerParaObject > | pNewText |
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< SdrObject > | mxObj |
Protected Attributes inherited from SdrUndoAction | |
SdrModel & | rMod |
ViewShellId | m_nViewShellId |
Definition at line 421 of file svdundo.hxx.
SdrUndoObjSetText::SdrUndoObjSetText | ( | SdrObject & | rNewObj, |
sal_Int32 | nText | ||
) |
Definition at line 986 of file svdundo.cxx.
References bEmptyPresObj, SdrText::GetOutlinerParaObject(), SdrObject::IsEmptyPresObj(), mnText, and pOldText.
|
overridevirtual |
Definition at line 999 of file svdundo.cxx.
References pNewText, pOldText, and std::optional< OutlinerParaObject >::reset().
void SdrUndoObjSetText::AfterSetText | ( | ) |
Definition at line 1012 of file svdundo.cxx.
References bNewTextAvailable, SdrText::GetOutlinerParaObject(), mnText, SdrUndoObj::mxObj, and pNewText.
Referenced by Undo().
|
overridevirtual |
Reimplemented from SdrUndoAction.
Definition at line 1142 of file svdundo.cxx.
References SdrMarkView::AreObjectsMarked(), and bNewTextAvailable.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1100 of file svdundo.cxx.
References SdrUndoObj::ImpGetDescriptionStr().
|
overridevirtual |
Reimplemented from SdrUndoAction.
Definition at line 1105 of file svdundo.cxx.
References SdrUndoObj::ImpGetDescriptionStr().
bool SdrUndoObjSetText::IsDifferent | ( | ) | const |
Definition at line 1005 of file svdundo.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1065 of file svdundo.cxx.
References SdrObject::ActionChanged(), SdrObject::BroadcastObjectChange(), DynCastSdrTextObj(), SdrTextObj::getText(), SdrUndoObj::ImpShowPageOfThisObject(), mnText, SdrUndoObj::mxObj, SdrTextObj::NbcAdjustTextFrameWidthAndHeight(), SdrTextObj::NbcSetOutlinerParaObjectForText(), and pNewText.
|
overridevirtual |
Reimplemented from SdrUndoAction.
Definition at line 1110 of file svdundo.cxx.
References SdrEditView::AddUndo(), SdrMarkView::AreObjectsMarked(), aStr, SdrEditView::BegUndo(), bNewTextAvailable, DynCastSdrTextObj(), SdrEditView::EndUndo(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrUndoObj::ImpGetDescriptionStr(), SdrEditView::IsUndoEnabled(), nCount, pNewText, and SdrObject::SetOutlinerParaObject().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1023 of file svdundo.cxx.
References SdrObject::ActionChanged(), AfterSetText(), bEmptyPresObj, bNewTextAvailable, SdrObject::BroadcastObjectChange(), DynCastSdrTextObj(), SdrTextObj::getText(), SdrUndoObj::ImpShowPageOfThisObject(), mnText, SdrUndoObj::mxObj, SdrTextObj::NbcAdjustTextFrameWidthAndHeight(), SdrTextObj::NbcSetOutlinerParaObjectForText(), pOldText, and SdrObject::SetEmptyPresObj().
|
private |
Definition at line 428 of file svdundo.hxx.
Referenced by SdrUndoObjSetText(), and Undo().
|
private |
Definition at line 427 of file svdundo.hxx.
Referenced by AfterSetText(), CanSdrRepeat(), SdrRepeat(), and Undo().
|
private |
Definition at line 429 of file svdundo.hxx.
Referenced by AfterSetText(), Redo(), SdrUndoObjSetText(), and Undo().
|
private |
Definition at line 426 of file svdundo.hxx.
Referenced by AfterSetText(), IsDifferent(), Redo(), SdrRepeat(), and ~SdrUndoObjSetText().
|
private |
Definition at line 424 of file svdundo.hxx.
Referenced by IsDifferent(), SdrUndoObjSetText(), Undo(), and ~SdrUndoObjSetText().