LibreOffice Module editeng (master) 1
|
#include <editundo.hxx>
Public Member Functions | |
EditUndoSetAttribs (EditEngine *pEE, const ESelection &rESel, SfxItemSet aNewItems) | |
virtual | ~EditUndoSetAttribs () override |
SfxItemSet & | GetNewAttribs () |
void | SetSpecial (SetAttribsMode n) |
void | SetUpdateSelection (bool bSetSelection) |
void | SetRemoveAttribs (bool b) |
void | SetRemoveParaAttribs (bool b) |
void | SetRemoveWhich (sal_uInt16 n) |
virtual void | Undo () override |
virtual void | Redo () override |
void | AppendContentInfo (ContentAttribsInfo *pNew) |
Public Member Functions inherited from EditUndo | |
EditUndo (sal_uInt16 nI, EditEngine *pEE) | |
virtual | ~EditUndo () override |
EditEngine * | GetEditEngine () |
virtual void | Undo () override=0 |
virtual void | Redo () override=0 |
virtual bool | CanRepeat (SfxRepeatTarget &) const override |
virtual OUString | GetComment () const override |
ViewShellId | GetViewShellId () const override |
See SfxUndoAction::GetViewShellId(). More... | |
sal_uInt16 | GetId () const |
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 Types | |
typedef std::vector< std::unique_ptr< ContentAttribsInfo > > | InfoArrayType |
Private Member Functions | |
void | ImpSetSelection () |
Private Attributes | |
ESelection | aESel |
SfxItemSet | aNewAttribs |
InfoArrayType | aPrevAttribs |
SetAttribsMode | nSpecial |
bool | m_bSetSelection |
Once the attributes are set / unset, set the selection to the end of the formatted range? More... | |
bool | bSetIsRemove |
bool | bRemoveParaAttribs |
sal_uInt16 | nRemoveWhich |
Definition at line 211 of file editundo.hxx.
|
private |
Definition at line 214 of file editundo.hxx.
EditUndoSetAttribs::EditUndoSetAttribs | ( | EditEngine * | pEE, |
const ESelection & | rESel, | ||
SfxItemSet | aNewItems | ||
) |
Definition at line 502 of file editundo.cxx.
References NONE.
|
overridevirtual |
Definition at line 532 of file editundo.cxx.
References aNewAttribs, aPrevAttribs, and SfxItemSet::GetPool().
void EditUndoSetAttribs::AppendContentInfo | ( | ContentAttribsInfo * | pNew | ) |
Definition at line 590 of file editundo.cxx.
References aPrevAttribs.
|
inline |
Definition at line 234 of file editundo.hxx.
References aNewAttribs.
|
private |
Definition at line 595 of file editundo.cxx.
References aESel, EditEngine::CreateSelection(), EditEngine::GetActiveView(), EditUndo::GetEditEngine(), EditView::GetImpEditView(), and ImpEditView::SetEditSelection().
|
overridevirtual |
Implements EditUndo.
Definition at line 573 of file editundo.cxx.
References aESel, aNewAttribs, bRemoveParaAttribs, bSetIsRemove, EditEngine::CreateSelection(), DBG_ASSERT, GetActiveView(), EditUndo::GetEditEngine(), ImpSetSelection(), m_bSetSelection, nRemoveWhich, nSpecial, EditEngine::RemoveCharAttribs(), and EditEngine::SetAttribs().
|
inline |
Definition at line 238 of file editundo.hxx.
References bSetIsRemove.
|
inline |
Definition at line 239 of file editundo.hxx.
References bRemoveParaAttribs.
|
inline |
Definition at line 240 of file editundo.hxx.
References n, and nRemoveWhich.
|
inline |
Definition at line 236 of file editundo.hxx.
|
inline |
Definition at line 237 of file editundo.hxx.
References m_bSetSelection.
|
overridevirtual |
Implements EditUndo.
Definition at line 539 of file editundo.cxx.
References aESel, aPrevAttribs, DBG_ASSERT, EE_FEATURE_FIELD(), GetActiveView(), EditEngine::GetEditDoc(), EditUndo::GetEditEngine(), EditCharAttrib::GetEnd(), EditCharAttrib::GetItem(), EditDoc::GetObject(), ContentAttribsInfo::GetPrevCharAttribs(), ContentAttribsInfo::GetPrevParaAttribs(), EditCharAttrib::GetStart(), ImpSetSelection(), EditDoc::InsertAttrib(), m_bSetSelection, ESelection::nEndPara, ESelection::nStartPara, EditEngine::RemoveCharAttribs(), EditEngine::SetParaAttribsOnly(), EditEngine::UpdateFieldsOnly(), and EditCharAttrib::Which().
|
private |
Definition at line 216 of file editundo.hxx.
Referenced by ImpSetSelection(), Redo(), and Undo().
|
private |
Definition at line 217 of file editundo.hxx.
Referenced by GetNewAttribs(), Redo(), and ~EditUndoSetAttribs().
|
private |
Definition at line 218 of file editundo.hxx.
Referenced by AppendContentInfo(), Undo(), and ~EditUndoSetAttribs().
|
private |
Definition at line 224 of file editundo.hxx.
Referenced by Redo(), and SetRemoveParaAttribs().
|
private |
Definition at line 223 of file editundo.hxx.
Referenced by Redo(), and SetRemoveAttribs().
|
private |
Once the attributes are set / unset, set the selection to the end of the formatted range?
Definition at line 222 of file editundo.hxx.
Referenced by Redo(), SetUpdateSelection(), and Undo().
|
private |
Definition at line 225 of file editundo.hxx.
Referenced by Redo(), and SetRemoveWhich().
|
private |
Definition at line 220 of file editundo.hxx.
Referenced by Redo(), and SetSpecial().