LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
SwHistory Class Reference

#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)
SwHistoryHintoperator[] (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


class SwDoc
class SwRegHistory

Detailed Description

Definition at line 354 of file rolbck.hxx.

Constructor & Destructor Documentation

◆ SwHistory()

SwHistory::SwHistory ( )

Definition at line 1020 of file rolbck.cxx.

◆ ~SwHistory()

SwHistory::~SwHistory ( )

Definition at line 1025 of file rolbck.cxx.

Member Function Documentation

◆ Add() [1/6]

void SwHistory::Add ( const ::sw::mark::IMark rBkmk,
bool  bSavePos,
bool  bSaveOtherPos 

◆ Add() [2/6]

void SwHistory::Add ( const SfxItemSet rSet,
const SwCharFormat rCharFormat 

Definition at line 1196 of file rolbck.cxx.

References SwFormat::GetName(), m_SwpHstry, and rSet.

◆ Add() [3/6]

void SwHistory::Add ( const SfxPoolItem pOldValue,
const SfxPoolItem pNewValue,
SwNodeOffset  nNodeIdx 

◆ Add() [4/6]

void SwHistory::Add ( const SwTextFootnote rFootnote)

Definition at line 1189 of file rolbck.cxx.

References m_SwpHstry.

◆ Add() [5/6]

void SwHistory::Add ( SwFormatColl pColl,
SwNodeOffset  nNodeIdx,
SwNodeType  nWhichNd 

Definition at line 1108 of file rolbck.cxx.

References m_nEndDiff, and m_SwpHstry.

◆ Add() [6/6]

void SwHistory::Add ( SwTextAttr pTextHt,
SwNodeOffset  nNodeIdx,
bool  bNewAttr 

◆ AddChangeFlyAnchor()

void SwHistory::AddChangeFlyAnchor ( sw::SpzFrameFormat rFormat)

Definition at line 1144 of file rolbck.cxx.

References m_SwpHstry.

Referenced by SaveFlyInRange().

◆ AddDeleteFly()

void SwHistory::AddDeleteFly ( SwFrameFormat rFormat,
sal_uInt16 &  rSetPos 

◆ CopyAttr()

void SwHistory::CopyAttr ( SwpHints const *  pHts,
const SwNodeOffset  nNodeIdx,
const sal_Int32  nStart,
const sal_Int32  nEnd,
const bool  bCopyFields 

◆ CopyFormatAttr()

void SwHistory::CopyFormatAttr ( const SfxItemSet rSet,
SwNodeOffset  nNodeIdx 

◆ Count()

sal_uInt16 SwHistory::Count ( ) const

◆ dumpAsXml()

void SwHistory::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1284 of file rolbck.cxx.

References m_SwpHstry.

◆ GetTmpEnd()

sal_uInt16 SwHistory::GetTmpEnd ( ) const

Definition at line 382 of file rolbck.hxx.

References m_nEndDiff, and m_SwpHstry.

◆ Move()

void SwHistory::Move ( sal_uInt16  nPos,
SwHistory pIns,
sal_uInt16 const  nStart = 0 

Definition at line 389 of file rolbck.hxx.

References m_SwpHstry, and nPos.

Referenced by SwUndoDelete::RedoImpl(), SwUndoReplace::Impl::UndoImpl(), and SwUndoDelete::UndoImpl().

◆ operator[]() [1/2]

SwHistoryHint * SwHistory::operator[] ( sal_uInt16  nPos)

Definition at line 384 of file rolbck.hxx.

References m_SwpHstry, and nPos.

◆ operator[]() [2/2]

SwHistoryHint const * SwHistory::operator[] ( sal_uInt16  nPos) const

Definition at line 385 of file rolbck.hxx.

References m_SwpHstry, and nPos.

◆ Rollback()

bool SwHistory::Rollback ( SwDoc pDoc,
sal_uInt16  nStart = 0 

◆ SetTmpEnd()

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().

◆ TmpRollback()

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().

Friends And Related Function Documentation

◆ SwDoc

friend class SwDoc

Definition at line 356 of file rolbck.hxx.

◆ SwRegHistory

friend class SwRegHistory

Definition at line 357 of file rolbck.hxx.

Member Data Documentation

◆ m_nEndDiff

sal_uInt16 SwHistory::m_nEndDiff

Definition at line 360 of file rolbck.hxx.

Referenced by Add(), AddDeleteFly(), GetTmpEnd(), Rollback(), SetTmpEnd(), and TmpRollback().

◆ m_SwpHstry

std::vector<std::unique_ptr<SwHistoryHint> > SwHistory::m_SwpHstry

The documentation for this class was generated from the following files: