45 bool Insert( sal_Int32 nPos );
48 bool Remove( sal_Int32 nPos );
50 void RemoveRange( sal_Int32 nPosStart, sal_Int32 nPosEnd );
55 bool HasSplit( sal_Int32 nPos )
const;
61 sal_uInt32
GetIndex( sal_Int32 nPos )
const;
69 {
return static_cast<sal_uInt32
>(
maVec.size()); }
71 sal_Int32
GetPos( sal_uInt32 nIndex )
const;
A vector of column splits that supports inserting, removing and moving splits.
bool Remove(sal_Int32 nPos)
Removes a split by position.
sal_uInt32 Count() const
Returns the number of splits.
ScSplitVector::const_iterator const_iterator
sal_uInt32 GetIndex(sal_Int32 nPos) const
Searches for a split at position nPos.
bool Insert(sal_Int32 nPos)
The split container.
sal_uInt32 LowerBound(sal_Int32 nPos) const
Returns index of the first split greater than or equal to nPos.
sal_Int32 GetPos(sal_uInt32 nIndex) const
Returns the position of the specified split.
::std::vector< sal_Int32 > ScSplitVector
void RemoveRange(sal_Int32 nPosStart, sal_Int32 nPosEnd)
Removes a range of splits in the given position range.
sal_Int32 operator[](sal_uInt32 nIndex) const
Returns the position of the specified split.
void Clear()
Removes all elements from the vector.
sal_uInt32 GetIterIndex(const_iterator const &aIter) const
Returns the vector index of an iterator.
sal_uInt32 UpperBound(sal_Int32 nPos) const
Returns index of the last split less than or equal to nPos.
bool HasSplit(sal_Int32 nPos) const
Returns true if at position nPos is a split.
const sal_uInt32 CSV_VEC_NOTFOUND
Constant for an invalid vector index.
const sal_Int32 CSV_POS_INVALID
Constant for an invalid ruler position.