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... | |
![]() | |
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 () |
![]() | |
SfxUndoAction () | |
virtual | ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE |
virtual bool | Merge (SfxUndoAction *pNextAction) |
virtual OUString | GetRepeatComment (SfxRepeatTarget &) const |
const DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::unique_ptr< 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 |
![]() | |
bool | IsLast () const |
Private Member Functions | |
void | PutAttr (sal_uInt16 nWhich, const SfxPoolItem *pItem) |
void | SwClientNotify (const SwModify &, const SfxHint &) override |
void | GetAnchor (SwFormatAnchor &rAnhor, sal_uLong nNode, sal_Int32 nContent) |
Private Attributes | |
SwFrameFormat * | m_pFrameFormat |
const OUString | m_DerivedFromFormatName |
const OUString | m_NewFormatName |
std::unique_ptr< SfxItemSet > | m_pItemSet |
sal_uLong | m_nOldNode |
sal_uLong | m_nNewNode |
sal_Int32 | m_nOldContent |
sal_Int32 | m_nNewContent |
RndStdIds | m_nOldAnchorType |
RndStdIds | m_nNewAnchorType |
bool | m_bAnchorChanged |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
virtual void | RepeatImpl (::sw::RepeatContext &) |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
![]() | |
static void | RemoveIdxFromSection (SwDoc &, sal_uLong nSttIdx, const sal_uLong *pEndIdx=nullptr) |
static void | RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext) |
static void | RemoveIdxRel (sal_uLong, const SwPosition &) |
static bool | CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd) |
![]() | |
bool | m_bCacheComment |
std::optional< OUString > | maComment |
Definition at line 187 of file UndoCore.hxx.
SwUndoSetFlyFormat::SwUndoSetFlyFormat | ( | SwFrameFormat & | rFlyFormat, |
const SwFrameFormat & | rNewFrameFormat | ||
) |
Definition at line 482 of file undobj1.cxx.
References FLY_AT_PARA, and SETFLYFRMFMT.
|
overridevirtual |
Definition at line 503 of file undobj1.cxx.
|
private |
Definition at line 507 of file undobj1.cxx.
References SwIndex::Assign(), SwFormatAnchor::GetAnchorId(), SwFormat::GetDoc(), SwDoc::GetNodes(), SwTextNode::GetText(), SwNode::GetTextNode(), SwNode::IsStartNode(), SwNode::IsTextNode(), m_pFrameFormat, SwPosition::nContent, SwFormatAnchor::SetAnchor(), SwFormatAnchor::SetPageNum(), SwFormatAnchor::SetType(), and SwFlyStartNode.
Referenced by RedoImpl(), and UndoImpl().
|
overridevirtual |
Returns the rewriter for this object.
Reimplemented from SwUndo.
Definition at line 494 of file undobj1.cxx.
References SwRewriter::AddRule(), m_NewFormatName, and UndoArg1.
|
private |
Definition at line 647 of file undobj1.cxx.
References SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), GetDfltAttr(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwFormatAnchor::GetPageNum(), m_bAnchorChanged, m_nNewAnchorType, m_nNewContent, m_nNewNode, m_nOldAnchorType, m_nOldContent, m_nOldNode, m_pFrameFormat, m_pItemSet, SwPosition::nContent, SwPosition::nNode, and RES_ANCHOR().
Referenced by SwClientNotify().
|
overridevirtual |
Implements SwUndo.
Definition at line 624 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, SwDoc::SetFrameFormatToFly(), and sw::UndoRedoContext::SetSelections().
|
overrideprivatevirtual |
Reimplemented from SwClient.
Definition at line 700 of file undobj1.cxx.
References sw::LegacyModifyHint::m_pOld, POOLATTR_END(), PutAttr(), RES_ATTRSET_CHG(), and SfxPoolItem::Which().
|
overridevirtual |
Implements SwUndo.
Definition at line 554 of file undobj1.cxx.
References assert(), SwTextNode::DeleteAttributes(), SwFrameFormat::DelFrames(), SwFormat::DerivedFrom(), SwDoc::FindFrameFormatByName(), GetAnchor(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SfxItemIter::GetCurItem(), SfxItemIter::GetCurPos(), sw::UndoRedoContext::GetDoc(), SwTextAttr::GetFlyCnt(), SwFormatFlyCnt::GetFrameFormat(), SwIndex::GetIndex(), SwNodeIndex::GetNode(), SwTextNode::GetTextAttrForCharAt(), SwNode::GetTextNode(), SwTextNode::HasHints(), SwTextNode::InsertItem(), IsInvalidItem(), m_bAnchorChanged, m_DerivedFromFormatName, m_nOldAnchorType, m_nOldContent, m_nOldNode, m_pFrameFormat, m_pItemSet, SwFrameFormat::MakeFrames(), SwPosition::nContent, SfxItemIter::NextItem(), SwPosition::nNode, RES_TXTATR_FLYCNT(), SwFormat::ResetFormatAttr(), SwFormat::SetDerivedFrom(), SwFormat::SetFormatAttr(), sw::UndoRedoContext::SetSelections(), and SwTextAttr::Which().
|
private |
Definition at line 196 of file UndoCore.hxx.
Referenced by PutAttr(), RedoImpl(), and UndoImpl().
|
private |
Definition at line 190 of file UndoCore.hxx.
Referenced by UndoImpl().
|
private |
Definition at line 191 of file UndoCore.hxx.
Referenced by GetRewriter(), and RedoImpl().
|
private |
Definition at line 195 of file UndoCore.hxx.
Referenced by PutAttr(), and RedoImpl().
|
private |
Definition at line 194 of file UndoCore.hxx.
Referenced by PutAttr(), and RedoImpl().
|
private |
Definition at line 193 of file UndoCore.hxx.
Referenced by PutAttr(), and RedoImpl().
|
private |
Definition at line 195 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().
|
private |
Definition at line 194 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().
|
private |
Definition at line 193 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().
|
private |
Definition at line 189 of file UndoCore.hxx.
Referenced by GetAnchor(), PutAttr(), RedoImpl(), and UndoImpl().
|
private |
Definition at line 192 of file UndoCore.hxx.
Referenced by PutAttr(), and UndoImpl().