19#ifndef INCLUDED_SW_INC_NDINDEX_HXX
20#define INCLUDED_SW_INC_NDINDEX_HXX
39#if defined(__GNUC__) && (__GNUC__ == 12 || __GNUC__ == 13)
40#pragma GCC diagnostic push
41#pragma GCC diagnostic ignored "-Wdangling-pointer"
44#if defined(__GNUC__) && (__GNUC__ == 12 || __GNUC__ == 13)
45#pragma GCC diagnostic pop
69 :
SwNodeIndex( nDiff ? rIdx.GetNodes()[ rIdx.GetIndex() + nDiff ] : rIdx.m_pNode ) {}
75 :
SwNodeIndex( nDiff ? *rNd.GetNodes()[ rNd.GetIndex() + nDiff ] : rNd ) {}
128 return s <<
"SwNodeIndex (node " << sal_Int32(
index.GetIndex()) <<
")";
140 : aStart( rS ), aEnd( rE ) {}
142 : aStart( rS ), aEnd( rE ) {}
146 : aStart( rNds, nSttIdx ), aEnd( rNds, nEndIdx ) {}
149 : aStart( rS, nSttDiff ), aEnd( rE, nEndDiff ) {}
151 : aStart( rS, nSttDiff ), aEnd( rE, nEndDiff ) {}
Marks a node in the document model.
bool operator==(SwNodeOffset nOther) const
bool operator==(const SwNode &rNd) const
bool operator<(const SwNodeIndex &rIndex) const
bool operator!=(const SwNode &rNd) const
bool operator>(const SwNode &rNd) const
SwNodeIndex(SwNode *pNode)
SwNodeIndex & operator-=(SwNodeOffset nOffset)
bool operator<(SwNodeOffset nOther) const
bool operator<=(const SwNodeIndex &rIndex) const
bool operator>(SwNodeOffset nOther) const
const SwNodes & GetNodes() const
bool operator>=(const SwNode &rNd) const
SwNodeIndex & operator=(const SwNodeIndex &rIdx)
SwNodeIndex(const SwNode &rNd, sal_Int32 nDiff)
bool operator!=(const SwNodeIndex &rIndex) const
SwNodeIndex & operator--()
bool operator==(const SwNodeIndex &rIndex) const
SwNodeIndex(const SwNodeIndex &rIdx, sal_Int32 nDiff)
SwNodeIndex & operator+=(SwNodeOffset nOffset)
SwNodeIndex(const SwNode &rNd, SwNodeOffset nDiff)
bool operator!=(SwNodeOffset nOther) const
bool operator<(const SwNode &rNd) const
bool operator>=(const SwNodeIndex &rIndex) const
virtual ~SwNodeIndex() override
SwNodeIndex & operator++()
SwNodeIndex & Assign(const SwNode &rNd, sal_Int32 nOffset)
SwNodeOffset GetIndex() const
bool operator<=(SwNodeOffset nOther) const
bool operator>=(SwNodeOffset nOther) const
bool operator<=(const SwNode &rNd) const
SwNodeIndex(const SwNode &rNd)
SwNodeIndex(SwNodes &rNds, sal_Int32 nIdx)
SwNodeIndex(SwNodes &rNds, SwNodeOffset nIdx=SwNodeOffset(0))
SwNodeIndex(const SwNodeIndex &rIdx, SwNodeOffset nDiff=SwNodeOffset(0))
bool operator>(const SwNodeIndex &rIndex) const
const SwNodeIndex * GetNext() const
SwNodeIndex & Assign(SwNodes const &rNds, SwNodeOffset nIdx)
SwNodeIndex & operator=(SwNodeOffset)
SwNodeRange(const SwNodeRange &rRange)=default
SwNodeRange(SwNodes &rNds, SwNodeOffset nSttIdx, SwNodeOffset nEndIdx=SwNodeOffset(0))
SwNodeRange(const SwNodeIndex &rS, const SwNodeIndex &rE)
SwNodeRange(const SwNode &rS, SwNodeOffset nSttDiff, const SwNode &rE, SwNodeOffset nEndDiff=SwNodeOffset(0))
SwNodeRange(const SwNode &rS, const SwNode &rE)
SwNodeRange(const SwNodeIndex &rS, SwNodeOffset nSttDiff, const SwNodeIndex &rE, SwNodeOffset nEndDiff=SwNodeOffset(0))
Base class of the Writer document model elements.
SwNodeOffset GetIndex() const
SwNodes & GetNodes()
Node is in which nodes-array/doc?
SwNodeIndex * m_vIndices
ring of all indices on nodes.
void MoveTo(value_type *pDestRing)
Removes this item from its current ring container and adds it to another ring container.
value_type * GetNextInRing()
bool operator>(const Style &rL, const Style &rR)
std::ostream & operator<<(std::ostream &s, const SwNodeIndex &index)
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
timeval & operator-=(timeval &t1, const timeval &t2)
TOOLS_DLLPUBLIC tools::Rectangle & operator+=(tools::Rectangle &rRect, const SvBorder &rBorder)
bool operator<(const wwFont &r1, const wwFont &r2)
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)