LibreOffice Module sw (master) 1
|
#include <UndoCore.hxx>
Public Member Functions | |
SwUndoSetFlyFormat (SwFrameFormat &rFlyFormat, const SwFrameFormat &rNewFrameFormat) | |
virtual | ~SwUndoSetFlyFormat () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
virtual SwRewriter | GetRewriter () const override |
Returns the rewriter for this object. More... | |
Public Member Functions inherited from SwUndo | |
virtual void | UndoImpl (::sw::UndoRedoContext &)=0 |
virtual void | RedoImpl (::sw::UndoRedoContext &)=0 |
SwUndo (SwUndoId const nId, const SwDoc *pDoc) | |
virtual | ~SwUndo () override |
SwUndoId | GetId () const |
virtual OUString | GetComment () const override |
Returns textual comment for this undo object. More... | |
ViewShellId | GetViewShellId () const override |
See SfxUndoAction::GetViewShellId(). More... | |
RedlineFlags | GetRedlineFlags () const |
void | SetRedlineFlags (RedlineFlags eMode) |
bool | IsDelBox () const |
void | IgnoreRepeat () |
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 |
Public Member Functions inherited from SwClient | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::optional< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
virtual bool | GetInfo (SfxPoolItem &) const |
Public Member Functions inherited from sw::WriterListener | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () const |
Private Member Functions | |
void | PutAttr (sal_uInt16 nWhich, const SfxPoolItem *pItem) |
void | SwClientNotify (const SwModify &, const SfxHint &) override |
void | GetAnchor (SwFormatAnchor &rAnhor, SwNodeOffset nNode, sal_Int32 nContent) |
Private Attributes | |
SwFrameFormat * | m_pFrameFormat |
const OUString | m_DerivedFromFormatName |
const OUString | m_NewFormatName |
std::optional< SfxItemSet > | m_oItemSet |
SwNodeOffset | m_nOldNode |
SwNodeOffset | m_nNewNode |
sal_Int32 | m_nOldContent |
sal_Int32 | m_nNewContent |
RndStdIds | m_nOldAnchorType |
RndStdIds | m_nNewAnchorType |
bool | m_bAnchorChanged |
Additional Inherited Members | |
Static Public Member Functions inherited from SwUndo | |
static bool | FillSaveData (const SwPaM &rRange, SwRedlineSaveDatas &rSData, bool bDelRange=true, bool bCopyNext=true) |
static bool | FillSaveDataForFormat (const SwPaM &, SwRedlineSaveDatas &) |
static void | SetSaveData (SwDoc &rDoc, SwRedlineSaveDatas &rSData) |
static bool | HasHiddenRedlines (const SwRedlineSaveDatas &rSData) |
Protected Member Functions inherited from SwUndo | |
virtual SwRewriter | GetRewriter () const |
Returns the rewriter for this object. More... | |
virtual void | RepeatImpl (::sw::RepeatContext &) |
Protected Member Functions inherited from SwClient | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
Protected Member Functions inherited from sw::WriterListener | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint)=0 |
Static Protected Member Functions inherited from SwUndo | |
static void | RemoveIdxFromSection (SwDoc &, SwNodeOffset nSttIdx, const SwNodeOffset *pEndIdx=nullptr) |
static void | RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext) |
static void | RemoveIdxRel (SwNodeOffset, const SwPosition &) |
static bool | CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd) |
Protected Attributes inherited from SwUndo | |
bool | m_bCacheComment |
std::optional< OUString > | maComment |
Definition at line 193 of file UndoCore.hxx.
SwUndoSetFlyFormat::SwUndoSetFlyFormat | ( | SwFrameFormat & | rFlyFormat, |
const SwFrameFormat & | rNewFrameFormat | ||
) |
Definition at line 484 of file undobj1.cxx.
References FLY_AT_PARA, GetName(), and SETFLYFRMFMT.
|
overridevirtual |
Definition at line 505 of file undobj1.cxx.
|
private |
Definition at line 509 of file undobj1.cxx.
References SwFormatAnchor::GetAnchorId(), SwFormat::GetDoc(), SwDoc::GetNodes(), SwStartNode::GetStartNodeType(), SwTextNode::GetText(), SwNode::GetTextNode(), SwNode::IsStartNode(), SwNode::IsTextNode(), m_pFrameFormat, SwFormatAnchor::SetAnchor(), SwPosition::SetContent(), SwFormatAnchor::SetPageNum(), SwFormatAnchor::SetType(), and SwFlyStartNode.
Referenced by RedoImpl(), and UndoImpl().
|
overridevirtual |
Returns the rewriter for this object.
Reimplemented from SwUndo.
Definition at line 496 of file undobj1.cxx.
References SwRewriter::AddRule(), m_NewFormatName, and UndoArg1.
|
private |
Definition at line 649 of file undobj1.cxx.
References SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), GetDfltAttr(), SwNode::GetIndex(), SwFormatAnchor::GetPageNum(), m_bAnchorChanged, m_nNewAnchorType, m_nNewContent, m_nNewNode, m_nOldAnchorType, m_nOldContent, m_nOldNode, m_oItemSet, m_pFrameFormat, and RES_ANCHOR().
Referenced by SwClientNotify().
|
overridevirtual |
Implements SwUndo.
Definition at line 626 of file undobj1.cxx.
References aFrameFormatSetRange, SwDoc::FindFrameFormatByName(), GetAnchor(), SwDoc::GetAttrPool(), sw::UndoRedoContext::GetDoc(), m_bAnchorChanged, m_NewFormatName, m_nNewAnchorType, m_nNewContent, m_nNewNode, m_pFrameFormat, SfxItemSet::Put(), SwDoc::SetFrameFormatToFly(), and sw::UndoRedoContext::SetSelections().
|
overrideprivatevirtual |
Reimplemented from SwClient.
Definition at line 702 of file undobj1.cxx.
References SwAttrSetChg::GetChgSet(), SfxItemIter::GetCurItem(), SfxHint::GetId(), sw::LegacyModifyHint::m_pOld, SfxItemIter::NextItem(), POOLATTR_END(), PutAttr(), RES_ATTRSET_CHG(), and SfxPoolItem::Which().
|
overridevirtual |
Implements SwUndo.
Definition at line 556 of file undobj1.cxx.
References SwTextNode::DeleteAttributes(), SwFrameFormat::DelFrames(), SwFormat::DerivedFrom(), SwDoc::FindFrameFormatByName(), SwFormat::GetAnchor(), GetAnchor(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SfxItemIter::GetCurItem(), SfxItemIter::GetCurPos(), sw::UndoRedoContext::GetDoc(), SwTextAttr::GetFlyCnt(), SwFormatFlyCnt::GetFrameFormat(), SwTextNode::GetTextAttrForCharAt(), SwNode::GetTextNode(), SwTextNode::HasHints(), SwTextNode::InsertItem(), IsInvalidItem(), m_bAnchorChanged, m_DerivedFromFormatName, m_nOldAnchorType, m_nOldContent, m_nOldNode, m_oItemSet, m_pFrameFormat, SwFrameFormat::MakeFrames(), SfxItemIter::NextItem(), RES_TXTATR_FLYCNT(), SwFormat::ResetFormatAttr(), SwFormat::SetDerivedFrom(), SwFormat::SetFormatAttr(), sw::UndoRedoContext::SetSelections(), and SwTextAttr::Which().
|
private |
Definition at line 202 of file UndoCore.hxx.
Referenced by PutAttr(), RedoImpl(), and UndoImpl().
|
private |
Definition at line 196 of file UndoCore.hxx.
Referenced by UndoImpl().
|
private |
Definition at line 197 of file UndoCore.hxx.
Referenced by GetRewriter(), and RedoImpl().
|
private |
Definition at line 201 of file UndoCore.hxx.
Referenced by PutAttr(), and RedoImpl().
|
private |
Definition at line 200 of file UndoCore.hxx.
Referenced by PutAttr(), and RedoImpl().
|
private |
Definition at line 199 of file UndoCore.hxx.
Referenced by PutAttr(), and RedoImpl().
|
private |
Definition at line 201 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().
|
private |
Definition at line 200 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().
|
private |
Definition at line 199 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().
|
private |
Definition at line 198 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().
|
private |
Definition at line 195 of file UndoCore.hxx.
Referenced by GetAnchor(), PutAttr(), RedoImpl(), and UndoImpl().