19#ifndef INCLUDED_SW_INC_DOCARY_HXX
20#define INCLUDED_SW_INC_DOCARY_HXX
51 virtual SwFormat* FindFormatByName(
const OUString& rName)
const;
61template<
typename Value>
65 typedef typename std::vector<Value>::iterator
iterator;
67 typedef typename std::vector<Value>::size_type
size_type;
68 typedef typename std::vector<Value>::value_type
value_type;
97 template<
typename TInputIterator>
100 mvVals.insert(aIt, aFirst, aLast);
126 if (aEndIdx < aStartIdx)
129 it !=
begin() + aEndIdx; ++it)
137 return it ==
end() ? SIZE_MAX : it -
begin();
141 bool IsAlive(
typename std::remove_pointer<Value>::type
const*
const p)
const
147template<
typename Value>
203class SwTOXTypes :
public std::vector<std::unique_ptr<SwTOXType>> {};
void dumpAsXml(xmlTextWriterPtr pWriter) const
void dumpAsXml(xmlTextWriterPtr pWriter) const
void CheckOverlapping(vector_type::const_iterator it)
size_type FindNextSeqNo(sal_uInt16 nSeqNo, size_type nSttPos) const
Search next or previous Redline with the same Seq.
bool InsertWithValidRanges(SwRangeRedline *&p, size_type *pInsPos=nullptr)
void dumpAsXml(xmlTextWriterPtr pWriter) const
size_type FindPrevOfSeqNo(size_type nSttPos) const
size_type FindPrevSeqNo(sal_uInt16 nSeqNo, size_type nSttPos) const
size_type FindNextOfSeqNo(size_type nSttPos) const
vector_type::const_iterator end() const
bool isMoved(size_type tableIndex) const
bool Insert(SwRangeRedline *&p)
static void LOKRedlineNotification(RedlineNotification eType, SwRangeRedline *pRedline)
Emits LOK notification about one addition / removal of a redline item.
bool m_bHasOverlappingElements
Sometimes we load bad data, and we need to know if we can use fast binary search, or if we have to fa...
bool Contains(const SwRangeRedline *p) const
void DeleteAndDestroy(size_type nPos)
o3tl::sorted_vector< SwRangeRedline *, CompareSwRedlineTable, o3tl::find_partialorder_ptrequals > vector_type
static constexpr size_type npos
vector_type::const_iterator begin() const
void Remove(size_type nPos)
vector_type::size_type size_type
SwRangeRedline * operator[](size_type idx) const
bool HasOverlappingElements() const
void DeleteAndDestroyAll()
size_type GetPos(const SwRangeRedline *p) const
const SwRangeRedline * FindAtPosition(const SwPosition &startPosition, size_type &tableIndex, bool next=true) const
Find the redline at the given position.
SwTableBox is one table cell in the document model.
SwTableLine is one table row in the document model.
SwTable is one table in the document model, containing rows (which contain cells).
void dumpAsXml(xmlTextWriterPtr pWriter) const
std::vector< Value >::const_iterator const_iterator
size_t GetPos(Value const &p) const
SwVectorModifyBase(SwVectorModifyBase const &)=default
std::vector< Value >::size_type size_type
const DestructorPolicy mPolicy
std::vector< Value > mvVals
std::vector< Value >::value_type value_type
void insert(iterator aIt, TInputIterator aFirst, TInputIterator aLast)
Value const & at(size_type nPos) const
void DeleteAndDestroy(int aStartIdx, int aEndIdx)
const_iterator end() const
iterator insert(iterator aIt, Value const &rVal)
void push_back(Value const &rVal)
Value & operator[](size_type nPos)
static void dumpAsXml(xmlTextWriterPtr)
iterator erase(iterator aFirst, iterator aLast)
iterator erase(iterator aIt)
Value const & front() const
SwVectorModifyBase(DestructorPolicy policy=DestructorPolicy::FreeElements)
Value const & operator[](size_type nPos) const
virtual ~SwVectorModifyBase()
SwVectorModifyBase & operator=(SwVectorModifyBase const &)=default
void reserve(size_type nSize)
SwVectorModifyBase(SwVectorModifyBase &&)=default
bool IsAlive(typename std::remove_pointer< Value >::type const *const p) const
check that given format is still alive (i.e. contained here)
const_iterator begin() const
std::vector< Value >::iterator iterator
const_iterator begin() const
std::vector< Value >::const_iterator const_iterator
const_iterator find(const Value &x) const
const_iterator end() const
std::vector< Value >::size_type size_type
struct _xmlTextWriter * xmlTextWriterPtr
std::vector< SwOLENode * > SwOLENodes
bool operator()(SwRangeRedline *const &lhs, SwRangeRedline *const &rhs) const
Marks a position in the document model.