38 : m_pIndexReg( rIdx.m_pIndexReg )
47 : m_nIndex( rIdx.m_nIndex )
48 , m_pIndexReg( rIdx.m_pIndexReg )
93 if (!pPrv || pPrv->
m_nIndex <= nNewValue)
117 if (!pNxt || pNxt->
m_nIndex >= nNewValue)
136 else if( pFnd !=
this )
228 : m_pFirst( nullptr ), m_pLast( nullptr )
239 const sal_Int32 nDiff,
244 const sal_Int32 nNewVal = rIdx.
m_nIndex;
247 const sal_Int32 nLast = rIdx.
GetIndex() + nDiff;
248 while (pStt && pStt->
m_nIndex == nNewVal)
254 while (pStt && pStt->
m_nIndex >= nNewVal
268 while (pStt && pStt->
m_nIndex == nNewVal)
277 if (!pStt->
m_pMark ||
nullptr == dynamic_cast<
311 "SwIndex::operator++() wraps around" );
320 "SwIndex::operator--(int) wraps around" );
322 const sal_Int32 nOldIndex =
m_nIndex;
330 "SwIndex::operator--() wraps around" );
337 "SwIndex SwIndex::operator+=(sal_Int32) wraps around" );
344 "SwIndex::operator-=(sal_Int32) wraps around" );
388 return s <<
"SwIndex offset (" << index.
GetIndex() <<
")";
std::ostream & operator<<(std::ostream &s, const SwIndex &index)
SwIndex(SwIndexReg *const pReg, sal_Int32 const nIdx=0)
bool operator<=(const SwIndex &) const
SwIndex & ChgValue(const SwIndex &rIdx, sal_Int32 nNewValue)
void MoveTo(SwIndexReg &rArr)
bool operator<(const SwIndex &) const
void Init(sal_Int32 const nIdx)
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
virtual void Update(SwIndex const &rPos, const sal_Int32 nChangeLen, const bool bNegative=false, const bool bDelete=false)
sal_Int32 operator-=(sal_Int32 const )
SwIndex & Assign(SwIndexReg *, sal_Int32)
Marks a character position inside a document model node.
void SetMark(const sw::mark::IMark *pMark)
#define SAL_WARN_IF(condition, area, stream)
sal_Int32 GetIndex() const
SwIndex & operator=(sal_Int32 const )
bool operator>(const SwIndex &) const
const sw::mark::IMark * m_pMark
Pointer to a mark that owns this position to allow fast lookup of marks of an SwIndexReg.
bool operator>=(const SwIndex &) const
sal_Int32 operator+=(sal_Int32 const )