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

Marks a character position inside a document model content node (SwContentNode) More...

#include <contentindex.hxx>

Collaboration diagram for SwContentIndex:
[legend]

Public Member Functions

 SwContentIndex (const SwContentNode *pContentNode, sal_Int32 const nIdx=0)
 
 SwContentIndex (const SwContentIndex &)
 
 SwContentIndex (const SwContentIndex &, short nDiff)
 
 ~SwContentIndex ()
 
SwContentIndexoperator= (sal_Int32 const)
 
SwContentIndexoperator= (const SwContentIndex &)
 
sal_Int32 operator++ ()
 
sal_Int32 operator-- ()
 
sal_Int32 operator-- (int)
 
sal_Int32 operator+= (sal_Int32 const)
 
sal_Int32 operator-= (sal_Int32 const)
 
bool operator< (const SwContentIndex &) const
 
bool operator<= (const SwContentIndex &) const
 
bool operator> (const SwContentIndex &) const
 
bool operator>= (const SwContentIndex &) const
 
bool operator< (sal_Int32 const nVal) const
 
bool operator<= (sal_Int32 const nVal) const
 
bool operator> (sal_Int32 const nVal) const
 
bool operator>= (sal_Int32 const nVal) const
 
bool operator== (sal_Int32 const nVal) const
 
bool operator!= (sal_Int32 const nVal) const
 
bool operator== (const SwContentIndex &rSwContentIndex) const
 
bool operator!= (const SwContentIndex &rSwContentIndex) const
 
sal_Int32 GetIndex () const
 
SwContentIndexAssign (const SwContentNode *, sal_Int32)
 
const SwContentNodeGetContentNode () const
 
const SwContentIndexGetNext () const
 
const sw::mark::IMarkGetMark () const
 
void SetMark (const sw::mark::IMark *pMark)
 
SwRangeRedlineGetRedline () const
 
void SetRedline (SwRangeRedline *pRangeRedline)
 

Private Member Functions

SwContentIndexChgValue (const SwContentIndex &rIdx, sal_Int32 nNewValue)
 
void Init (sal_Int32 const nIdx)
 
void Remove ()
 

Private Attributes

sal_Int32 m_nIndex
 
SwContentNodem_pContentNode
 
SwContentIndexm_pNext
 
SwContentIndexm_pPrev
 
SwRangeRedlinem_pRangeRedline = nullptr
 points to the SwRangeRedline (if any) that contains this SwIndex, via SwPosition and SwPaM More...
 
const sw::mark::IMarkm_pMark
 Pointer to a mark that owns this position to allow fast lookup of marks of an SwContentIndexReg. More...
 

Friends

class SwContentIndexReg
 

Detailed Description

Marks a character position inside a document model content node (SwContentNode)

Definition at line 36 of file contentindex.hxx.

Constructor & Destructor Documentation

◆ SwContentIndex() [1/3]

SwContentIndex::SwContentIndex ( const SwContentNode pContentNode,
sal_Int32 const  nIdx = 0 
)
explicit

Definition at line 27 of file index.cxx.

References Init(), and m_nIndex.

◆ SwContentIndex() [2/3]

SwContentIndex::SwContentIndex ( const SwContentIndex rIdx)

Definition at line 46 of file index.cxx.

References ChgValue(), and m_nIndex.

◆ SwContentIndex() [3/3]

SwContentIndex::SwContentIndex ( const SwContentIndex rIdx,
short  nDiff 
)

Definition at line 37 of file index.cxx.

References ChgValue(), and m_nIndex.

◆ ~SwContentIndex()

SwContentIndex::~SwContentIndex ( )
inline

Definition at line 61 of file contentindex.hxx.

References Remove.

Member Function Documentation

◆ Assign()

SwContentIndex & SwContentIndex::Assign ( const SwContentNode pArr,
sal_Int32  nIdx 
)

Definition at line 206 of file index.cxx.

References ChgValue(), Init(), m_nIndex, m_pContentNode, m_pNext, m_pPrev, and Remove().

Referenced by SwPosition::Adjust(), SwPosition::Assign(), SwPosition::AssignEndIndex(), SwPosition::AssignStartIndex(), SwHTMLParser::Continue(), SwFEShell::Copy(), sw::DocumentContentOperationsManager::CopyFlyInFlyImpl(), sw::DocumentContentOperationsManager::CopyImplImpl(), SwEditShell::CopySelToDoc(), SwRangeRedline::DelCopyOfSection(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwDoc::DeleteRow(), SwXMLImport::endDocument(), sw::GetAllValidRanges(), GetMergeSel(), GoCurrPara(), GoCurrSection(), GoEndOfSection(), GoNextPara(), GoPrevPara(), GoStartOfSection(), SwDoc::InsCopyOfTable(), lcl_CpyBox(), lcl_EnsureValidPam(), lcl_RestoreAnchor(), SwContentNode::MakeEndIndex(), SwDoc::MakeFlyAndMove(), SwContentNode::MakeStartIndex(), SwDoc::MergeTable(), SwRangeRedline::MoveFromSection(), SwDoc::MoveParagraphImpl(), SwUndoSaveContent::MovePtBackward(), SwNodes::MoveRange(), SwContentIndexReg::MoveTo(), SwTable::PrepareMerge(), SwUndoTableCpyTable::PrepareRedline(), XMLReader::Read(), WW8Reader::Read(), SwRedlineExtraData_FormatColl::Reject(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwUndoFormatAttr::RestoreFlyAnchor(), SwEditShell::SaveGlossaryDoc(), SwHistoryChangeFlyAnchor::SetInDoc(), SwDoc::SetRowNotTracked(), SwFEShell::Sort(), SwHTMLParser::StripTrailingPara(), SwPaM::SwPaM(), SwUndoDelete::SwUndoDelete(), SwUndoMove::SwUndoMove(), SwEditShell::TableToText(), SwUndoDelete::UndoImpl(), SwUndoMove::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwTOXBaseSection::Update(), and SwTextNode::Update().

◆ ChgValue()

SwContentIndex & SwContentIndex::ChgValue ( const SwContentIndex rIdx,
sal_Int32  nNewValue 
)
private

◆ GetContentNode()

const SwContentNode * SwContentIndex::GetContentNode ( ) const
inline

◆ GetIndex()

sal_Int32 SwContentIndex::GetIndex ( ) const
inline

◆ GetMark()

const sw::mark::IMark * SwContentIndex::GetMark ( ) const
inline

◆ GetNext()

const SwContentIndex * SwContentIndex::GetNext ( ) const
inline

◆ GetRedline()

SwRangeRedline * SwContentIndex::GetRedline ( ) const
inline

Definition at line 109 of file contentindex.hxx.

Referenced by SwTextNode::Update().

◆ Init()

void SwContentIndex::Init ( sal_Int32 const  nIdx)
private

◆ operator!=() [1/2]

bool SwContentIndex::operator!= ( const SwContentIndex rSwContentIndex) const
inline

Definition at line 91 of file contentindex.hxx.

References m_nIndex, and m_pContentNode.

◆ operator!=() [2/2]

bool SwContentIndex::operator!= ( sal_Int32 const  nVal) const
inline

Definition at line 83 of file contentindex.hxx.

◆ operator++()

sal_Int32 SwContentIndex::operator++ ( void  )

Definition at line 304 of file index.cxx.

References ChgValue(), m_nIndex, SAL_MAX_INT32, and SAL_WARN_IF.

◆ operator+=()

sal_Int32 SwContentIndex::operator+= ( sal_Int32 const  nVal)

Definition at line 330 of file index.cxx.

References ChgValue(), m_nIndex, and SAL_WARN_IF.

◆ operator--() [1/2]

sal_Int32 SwContentIndex::operator-- ( )

Definition at line 323 of file index.cxx.

References ChgValue(), m_nIndex, and SAL_WARN_IF.

◆ operator--() [2/2]

sal_Int32 SwContentIndex::operator-- ( int  )

Definition at line 313 of file index.cxx.

References ChgValue(), m_nIndex, and SAL_WARN_IF.

◆ operator-=()

sal_Int32 SwContentIndex::operator-= ( sal_Int32 const  nVal)

Definition at line 337 of file index.cxx.

References ChgValue(), m_nIndex, and SAL_WARN_IF.

◆ operator<() [1/2]

bool SwContentIndex::operator< ( const SwContentIndex rIndex) const

Definition at line 344 of file index.cxx.

References m_nIndex, and m_pContentNode.

◆ operator<() [2/2]

bool SwContentIndex::operator< ( sal_Int32 const  nVal) const
inline

Definition at line 78 of file contentindex.hxx.

◆ operator<=() [1/2]

bool SwContentIndex::operator<= ( const SwContentIndex rIndex) const

Definition at line 351 of file index.cxx.

References m_nIndex, and m_pContentNode.

◆ operator<=() [2/2]

bool SwContentIndex::operator<= ( sal_Int32 const  nVal) const
inline

Definition at line 79 of file contentindex.hxx.

◆ operator=() [1/2]

SwContentIndex & SwContentIndex::operator= ( const SwContentIndex rIdx)

Definition at line 188 of file index.cxx.

References ChgValue(), m_nIndex, m_pContentNode, m_pNext, m_pPrev, and Remove().

◆ operator=() [2/2]

SwContentIndex & SwContentIndex::operator= ( sal_Int32 const  nVal)

Definition at line 372 of file index.cxx.

References ChgValue(), and m_nIndex.

◆ operator==() [1/2]

bool SwContentIndex::operator== ( const SwContentIndex rSwContentIndex) const
inline

Definition at line 85 of file contentindex.hxx.

References m_nIndex, and m_pContentNode.

◆ operator==() [2/2]

bool SwContentIndex::operator== ( sal_Int32 const  nVal) const
inline

Definition at line 82 of file contentindex.hxx.

◆ operator>() [1/2]

bool SwContentIndex::operator> ( const SwContentIndex rIndex) const

Definition at line 358 of file index.cxx.

References m_nIndex, and m_pContentNode.

◆ operator>() [2/2]

bool SwContentIndex::operator> ( sal_Int32 const  nVal) const
inline

Definition at line 80 of file contentindex.hxx.

◆ operator>=() [1/2]

bool SwContentIndex::operator>= ( const SwContentIndex rIndex) const

Definition at line 365 of file index.cxx.

References m_nIndex, and m_pContentNode.

◆ operator>=() [2/2]

bool SwContentIndex::operator>= ( sal_Int32 const  nVal) const
inline

Definition at line 81 of file contentindex.hxx.

◆ Remove()

void SwContentIndex::Remove ( )
private

◆ SetMark()

void SwContentIndex::SetMark ( const sw::mark::IMark pMark)

Definition at line 222 of file index.cxx.

References m_pMark.

Referenced by SwPosition::SetMark().

◆ SetRedline()

void SwContentIndex::SetRedline ( SwRangeRedline pRangeRedline)
inline

Definition at line 110 of file contentindex.hxx.

Referenced by SwPosition::SetRedline().

Friends And Related Function Documentation

◆ SwContentIndexReg

friend class SwContentIndexReg
friend

Definition at line 39 of file contentindex.hxx.

Member Data Documentation

◆ m_nIndex

sal_Int32 SwContentIndex::m_nIndex
private

◆ m_pContentNode

SwContentNode* SwContentIndex::m_pContentNode
private

◆ m_pMark

const sw::mark::IMark* SwContentIndex::m_pMark
private

Pointer to a mark that owns this position to allow fast lookup of marks of an SwContentIndexReg.

Definition at line 51 of file contentindex.hxx.

Referenced by SetMark(), and SwContentIndexReg::Update().

◆ m_pNext

SwContentIndex* SwContentIndex::m_pNext
private

◆ m_pPrev

SwContentIndex* SwContentIndex::m_pPrev
private

Definition at line 45 of file contentindex.hxx.

Referenced by Assign(), ChgValue(), operator=(), Remove(), and SwContentIndexReg::Update().

◆ m_pRangeRedline

SwRangeRedline* SwContentIndex::m_pRangeRedline = nullptr
private

points to the SwRangeRedline (if any) that contains this SwIndex, via SwPosition and SwPaM

Definition at line 48 of file contentindex.hxx.


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