|
LibreOffice Module sw (master) 1
|
#include <rolbck.hxx>
Public Member Functions | |
| SwHistory () | |
| ~SwHistory () | |
| bool | Rollback (SwDoc *pDoc, sal_uInt16 nStart=0) |
| bool | TmpRollback (SwDoc *pDoc, sal_uInt16 nStart, bool ToFirst=true) |
| void | Add (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, SwNodeOffset nNodeIdx) |
| void | Add (SwTextAttr *pTextHt, SwNodeOffset nNodeIdx, bool bNewAttr) |
| void | Add (SwFormatColl *, SwNodeOffset nNodeIdx, SwNodeType nWhichNd) |
| void | Add (const ::sw::mark::IMark &, bool bSavePos, bool bSaveOtherPos) |
| void | AddChangeFlyAnchor (sw::SpzFrameFormat &rFormat) |
| void | AddDeleteFly (SwFrameFormat &, sal_uInt16 &rSetPos) |
| void | Add (const SwTextFootnote &) |
| void | Add (const SfxItemSet &rSet, const SwCharFormat &rCharFormat) |
| sal_uInt16 | Count () const |
| sal_uInt16 | GetTmpEnd () const |
| sal_uInt16 | SetTmpEnd (sal_uInt16 nTmpEnd) |
| SwHistoryHint * | operator[] (sal_uInt16 nPos) |
| SwHistoryHint const * | operator[] (sal_uInt16 nPos) const |
| void | Move (sal_uInt16 nPos, SwHistory *pIns, sal_uInt16 const nStart=0) |
| void | CopyAttr (SwpHints const *pHts, const SwNodeOffset nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields) |
| void | CopyFormatAttr (const SfxItemSet &rSet, SwNodeOffset nNodeIdx) |
| void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
| std::vector< std::unique_ptr< SwHistoryHint > > | m_SwpHstry |
| sal_uInt16 | m_nEndDiff |
Friends | |
| class | SwDoc |
| class | SwRegHistory |
Definition at line 354 of file rolbck.hxx.
| SwHistory::SwHistory | ( | ) |
Definition at line 1020 of file rolbck.cxx.
| SwHistory::~SwHistory | ( | ) |
Definition at line 1025 of file rolbck.cxx.
| void SwHistory::Add | ( | const ::sw::mark::IMark & | rBkmk, |
| bool | bSavePos, | ||
| bool | bSaveOtherPos | ||
| ) |
Definition at line 1117 of file rolbck.cxx.
References IDocumentMarkAccess::CHECKBOX_FIELDMARK, IDocumentMarkAccess::DATE_FIELDMARK, IDocumentMarkAccess::DROPDOWN_FIELDMARK, IDocumentMarkAccess::GetType(), m_nEndDiff, m_SwpHstry, and IDocumentMarkAccess::TEXT_FIELDMARK.
| void SwHistory::Add | ( | const SfxItemSet & | rSet, |
| const SwCharFormat & | rCharFormat | ||
| ) |
Definition at line 1196 of file rolbck.cxx.
References SwFormat::GetName(), m_SwpHstry, and rSet.
| void SwHistory::Add | ( | const SfxPoolItem * | pOldValue, |
| const SfxPoolItem * | pNewValue, | ||
| SwNodeOffset | nNodeIdx | ||
| ) |
Definition at line 1029 of file rolbck.cxx.
References IsDefaultItem(), m_nEndDiff, m_SwpHstry, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), and SfxPoolItem::Which().
Referenced by SwRegHistory::AddHint(), SwCollectTableLineBoxes::AddToUndoHistory(), CopyAttr(), CopyFormatAttr(), lcl_SetTextFormatColl(), SwRegHistory::SwClientNotify(), and SwTableBoxFormula::ToSplitMergeBoxNmWithHistory().
| void SwHistory::Add | ( | const SwTextFootnote & | rFootnote | ) |
Definition at line 1189 of file rolbck.cxx.
References m_SwpHstry.
| void SwHistory::Add | ( | SwFormatColl * | pColl, |
| SwNodeOffset | nNodeIdx, | ||
| SwNodeType | nWhichNd | ||
| ) |
Definition at line 1108 of file rolbck.cxx.
References m_nEndDiff, and m_SwpHstry.
| void SwHistory::Add | ( | SwTextAttr * | pTextHt, |
| SwNodeOffset | nNodeIdx, | ||
| bool | bNewAttr | ||
| ) |
Definition at line 1066 of file rolbck.cxx.
References SwTextAttr::GetAnyEnd(), SwTextAttr::GetStart(), m_nEndDiff, m_SwpHstry, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), and SwTextAttr::Which().
| void SwHistory::AddChangeFlyAnchor | ( | sw::SpzFrameFormat & | rFormat | ) |
| void SwHistory::AddDeleteFly | ( | SwFrameFormat & | rFormat, |
| sal_uInt16 & | rSetPos | ||
| ) |
Definition at line 1150 of file rolbck.cxx.
References SwFormat::GetItemIfSet(), m_nEndDiff, m_SwpHstry, RES_CHAIN(), RES_DRAWFRMFMT(), RES_FLYFRMFMT(), SwFormat::ResetFormatAttr(), SwFormatChain::SetNext(), SwFormatChain::SetPrev(), and SwFormat::Which().
| void SwHistory::CopyAttr | ( | SwpHints const * | pHts, |
| const SwNodeOffset | nNodeIdx, | ||
| const sal_Int32 | nStart, | ||
| const sal_Int32 | nEnd, | ||
| const bool | bCopyFields | ||
| ) |
Definition at line 1299 of file rolbck.cxx.
References Add(), SwpHints::Count(), SwpHints::Get(), SwTextAttr::GetEnd(), SwTextAttr::GetStart(), n, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_INPUTFIELD(), and SwTextAttr::Which().
| void SwHistory::CopyFormatAttr | ( | const SfxItemSet & | rSet, |
| SwNodeOffset | nNodeIdx | ||
| ) |
Definition at line 1263 of file rolbck.cxx.
References Add(), SfxItemSet::Count(), SfxItemIter::GetCurItem(), IsInvalidItem(), SfxItemIter::NextItem(), and rSet.
|
inline |
Definition at line 381 of file rolbck.hxx.
References m_SwpHstry.
Referenced by lcl_RewriterFromHistory(), Rollback(), SwUndoSplitTable::SaveFormula(), SetTmpEnd(), SwDoc::SplitTable(), TmpRollback(), and SwUndoTextToTable::UndoImpl().
| void SwHistory::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 1284 of file rolbck.cxx.
References m_SwpHstry.
|
inline |
Definition at line 382 of file rolbck.hxx.
References m_nEndDiff, and m_SwpHstry.
|
inline |
Definition at line 389 of file rolbck.hxx.
References m_SwpHstry, and nPos.
Referenced by SwUndoDelete::RedoImpl(), SwUndoReplace::Impl::UndoImpl(), and SwUndoDelete::UndoImpl().
|
inline |
Definition at line 384 of file rolbck.hxx.
References m_SwpHstry, and nPos.
|
inline |
Definition at line 385 of file rolbck.hxx.
References m_SwpHstry, and nPos.
| bool SwHistory::Rollback | ( | SwDoc * | pDoc, |
| sal_uInt16 | nStart = 0 |
||
| ) |
Definition at line 1202 of file rolbck.cxx.
References Count(), i, m_nEndDiff, m_SwpHstry, and SwHistoryHint::SetInDoc().
Referenced by SwUndoFlyBase::InsFly(), SwRedlineSaveData::RedlineToDoc(), and SwUndoTableNdsChg::UndoImpl().
| sal_uInt16 SwHistory::SetTmpEnd | ( | sal_uInt16 | nTmpEnd | ) |
Definition at line 1242 of file rolbck.cxx.
References Count(), HSTRY_FLYCNT, m_nEndDiff, and n.
Referenced by SwUndoTextToTable::UndoImpl().
| bool SwHistory::TmpRollback | ( | SwDoc * | pDoc, |
| sal_uInt16 | nStart, | ||
| bool | ToFirst = true |
||
| ) |
Definition at line 1217 of file rolbck.cxx.
References Count(), m_nEndDiff, m_SwpHstry, and SwHistoryHint::SetInDoc().
Referenced by SwUndoTextToTable::UndoImpl().
|
friend |
Definition at line 356 of file rolbck.hxx.
|
friend |
Definition at line 357 of file rolbck.hxx.
|
private |
Definition at line 360 of file rolbck.hxx.
Referenced by Add(), AddDeleteFly(), GetTmpEnd(), Rollback(), SetTmpEnd(), and TmpRollback().
|
private |
Definition at line 359 of file rolbck.hxx.
Referenced by Add(), AddChangeFlyAnchor(), AddDeleteFly(), Count(), dumpAsXml(), GetTmpEnd(), SwRegHistory::InsertItems(), Move(), operator[](), Rollback(), SwRegHistory::SwClientNotify(), and TmpRollback().