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 (SwFrameFormat &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
 

Friends

class SwDoc
 
class SwRegHistory
 

Detailed Description

Definition at line 351 of file rolbck.hxx.

Constructor & Destructor Documentation

◆ SwHistory()

SwHistory::SwHistory ( )

Definition at line 1019 of file rolbck.cxx.

◆ ~SwHistory()

SwHistory::~SwHistory ( )

Definition at line 1024 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 1195 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 1188 of file rolbck.cxx.

References m_SwpHstry.

◆ Add() [5/6]

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

Definition at line 1107 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 ( SwFrameFormat rFormat)

Definition at line 1143 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
inline

◆ dumpAsXml()

void SwHistory::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1283 of file rolbck.cxx.

References m_SwpHstry.

◆ GetTmpEnd()

sal_uInt16 SwHistory::GetTmpEnd ( ) const
inline

Definition at line 379 of file rolbck.hxx.

References m_nEndDiff, and m_SwpHstry.

◆ Move()

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

Definition at line 386 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)
inline

Definition at line 381 of file rolbck.hxx.

References m_SwpHstry, and nPos.

◆ operator[]() [2/2]

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

Definition at line 382 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 1241 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 1216 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
friend

Definition at line 353 of file rolbck.hxx.

◆ SwRegHistory

friend class SwRegHistory
friend

Definition at line 354 of file rolbck.hxx.

Member Data Documentation

◆ m_nEndDiff

sal_uInt16 SwHistory::m_nEndDiff
private

Definition at line 357 of file rolbck.hxx.

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

◆ m_SwpHstry

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

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