LibreOffice Module sw (master)  1
docary.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SW_INC_DOCARY_HXX
20 #define INCLUDED_SW_INC_DOCARY_HXX
21 
22 #include <vector>
23 #include <type_traits>
24 #include <o3tl/sorted_vector.hxx>
25 
26 #include <boost/multi_index_container.hpp>
27 #include <boost/multi_index/composite_key.hpp>
28 #include <boost/multi_index/identity.hpp>
29 #include <boost/multi_index/mem_fun.hpp>
30 #include <boost/multi_index/ordered_index.hpp>
31 #include <boost/multi_index/random_access_index.hpp>
32 
33 #include "fmtcol.hxx"
34 #include "frmfmt.hxx"
35 #include "section.hxx"
36 #include "tox.hxx"
37 #include "numrule.hxx"
38 #include "fldbas.hxx"
39 
40 class SwRangeRedline;
41 class SwExtraRedline;
42 class SwOLENode;
43 class SwTable;
44 class SwTableLine;
45 class SwTableBox;
46 struct SwPosition;
47 
50 {
51 public:
52  virtual size_t GetFormatCount() const = 0;
53  virtual SwFormat* GetFormat(size_t idx) const = 0;
54  virtual ~SwFormatsBase() {};
55 
56  SwFormatsBase() = default;
57  SwFormatsBase(SwFormatsBase const &) = default;
58  SwFormatsBase(SwFormatsBase &&) = default;
59  SwFormatsBase & operator =(SwFormatsBase const &) = default;
60  SwFormatsBase & operator =(SwFormatsBase &&) = default;
61 };
62 
63 template<typename Value>
65 {
66 public:
67  typedef typename std::vector<Value>::iterator iterator;
68  typedef typename std::vector<Value>::const_iterator const_iterator;
69  typedef typename std::vector<Value>::size_type size_type;
70  typedef typename std::vector<Value>::value_type value_type;
71 
72 protected:
73  enum class DestructorPolicy {
76  };
77 
78 private:
79  typename std::vector<Value> mvVals;
81 
82 protected:
83  // default destructor deletes all contained elements
85  : mPolicy(policy) {}
86 
87 public:
88  bool empty() const { return mvVals.empty(); }
89  Value const& front() const { return mvVals.front(); }
90  size_t size() const { return mvVals.size(); }
91  iterator begin() { return mvVals.begin(); }
92  const_iterator begin() const { return mvVals.begin(); }
93  iterator end() { return mvVals.end(); }
94  const_iterator end() const { return mvVals.end(); }
95  void clear() { mvVals.clear(); }
96  iterator erase(iterator aIt) { return mvVals.erase(aIt); }
97  iterator erase(iterator aFirst, iterator aLast) { return mvVals.erase(aFirst, aLast); }
98  iterator insert(iterator aIt, Value const& rVal) { return mvVals.insert(aIt, rVal); }
99  template<typename TInputIterator>
100  void insert(iterator aIt, TInputIterator aFirst, TInputIterator aLast)
101  {
102  mvVals.insert(aIt, aFirst, aLast);
103  }
104  void push_back(Value const& rVal) { mvVals.push_back(rVal); }
105  void reserve(size_type nSize) { mvVals.reserve(nSize); }
106  Value const& at(size_type nPos) const { return mvVals.at(nPos); }
107  Value const& operator[](size_type nPos) const { return mvVals[nPos]; }
108  Value& operator[](size_type nPos) { return mvVals[nPos]; }
109 
110  // free any remaining child objects based on mPolicy
112  {
113  if (mPolicy == DestructorPolicy::FreeElements)
114  for(const_iterator it = begin(); it != end(); ++it)
115  delete *it;
116  }
117 
118  //TODO: These functions are apparently brittle (but the copy functions are actually used by the
119  // code; the move functions will be implicitly-defined as deleted anyway) and should probably
120  // only be used with DestructorPolicy::KeepELements:
121  SwVectorModifyBase(SwVectorModifyBase const &) = default;
123  SwVectorModifyBase & operator =(SwVectorModifyBase const &) = default;
125 
126  void DeleteAndDestroy(int aStartIdx, int aEndIdx)
127  {
128  if (aEndIdx < aStartIdx)
129  return;
130  for (const_iterator it = begin() + aStartIdx;
131  it != begin() + aEndIdx; ++it)
132  delete *it;
133  erase( begin() + aStartIdx, begin() + aEndIdx);
134  }
135 
136  size_t GetPos(Value const& p) const
137  {
138  const_iterator const it = std::find(begin(), end(), p);
139  return it == end() ? SIZE_MAX : it - begin();
140  }
141 
143  bool IsAlive(typename std::remove_pointer<Value>::type const*const p) const
144  { return std::find(begin(), end(), p) != end(); }
145 
146  static void dumpAsXml(xmlTextWriterPtr /*pWriter*/) {};
147 };
148 
149 template<typename Value>
151 {
152 protected:
155  : SwVectorModifyBase<Value>(policy) {}
156 
157 public:
158  virtual size_t GetFormatCount() const override
159  { return SwVectorModifyBase<Value>::size(); }
160 
161  virtual Value GetFormat(size_t idx) const override
163 
164  size_t GetPos(const SwFormat *p) const
165  { return SwVectorModifyBase<Value>::GetPos( static_cast<Value>( const_cast<SwFormat*>( p ) ) ); }
166 
169  bool ContainsFormat(SwFormat const*const pFormat) const {
170  Value p = dynamic_cast<Value>(const_cast<SwFormat*>(pFormat));
171  return p != nullptr && SwVectorModifyBase<Value>::IsAlive(p);
172  }
173 };
174 
175 class SwGrfFormatColls : public SwFormatsModifyBase<SwGrfFormatColl*>
176 {
177 public:
179 };
180 
181 // Like o3tl::find_partialorder_ptrequals
182 // We don't allow duplicated object entries!
183 struct type_name_key:boost::multi_index::composite_key<
184  SwFrameFormat*,
185  boost::multi_index::const_mem_fun<SwFormat,sal_uInt16,&SwFormat::Which>,
186  boost::multi_index::const_mem_fun<SwFormat,const OUString&,&SwFormat::GetName>,
187  boost::multi_index::identity<SwFrameFormat*> // the actual object pointer
188 >{};
189 
190 typedef boost::multi_index_container<
191  SwFrameFormat*,
192  boost::multi_index::indexed_by<
193  boost::multi_index::random_access<>,
194  boost::multi_index::ordered_unique< type_name_key >
195  >
196  >
198 
201 {
202  // function updating ByName index via modify
203  friend void SwFrameFormat::SetName( const OUString&, bool );
204 
205  typedef SwFrameFormatsBase::nth_index<0>::type ByPos;
206  typedef SwFrameFormatsBase::nth_index<1>::type ByTypeAndName;
207  typedef ByPos::iterator iterator;
208 
210  ByPos &m_PosIndex;
211  ByTypeAndName &m_TypeAndNameIndex;
212 
213 public:
214  typedef ByPos::const_iterator const_iterator;
215  typedef ByTypeAndName::const_iterator const_range_iterator;
216  typedef SwFrameFormatsBase::size_type size_type;
217  typedef SwFrameFormatsBase::value_type value_type;
218 
219  SwFrameFormats();
220  // frees all SwFrameFormat!
221  virtual ~SwFrameFormats() override;
222 
223  bool empty() const { return m_Array.empty(); }
224  size_t size() const { return m_Array.size(); }
225 
226  // Only fails, if you try to insert the same object twice
227  std::pair<const_iterator,bool> push_back( const value_type& x );
228 
229  // This will try to remove the exact object!
230  bool erase( const value_type& x );
231  void erase( size_type index );
232  void erase( const_iterator const& position );
233 
234  // Get the iterator of the exact object (includes pointer!),
235  // e.g for position with std::distance.
236  // There is also ContainsFormat, if you don't need the position.
237  const_iterator find( const value_type& x ) const;
238 
239  // As this array is non-unique related to type and name,
240  // we always get ranges for the "key" values.
241  std::pair<const_range_iterator,const_range_iterator>
242  rangeFind( sal_uInt16 type, const OUString& name ) const;
243  // Convenience function, which just uses type and name!
244  // To look for the exact object use find.
245  std::pair<const_range_iterator,const_range_iterator>
246  rangeFind( const value_type& x ) const;
247  // So we can actually check for end()
248  const_range_iterator rangeEnd() const { return m_TypeAndNameIndex.end(); }
249  const_iterator rangeProject( const_range_iterator const& position )
250  { return m_Array.project<0>( position ); }
251 
252  const value_type& operator[]( size_t index_ ) const
253  { return m_PosIndex.operator[]( index_ ); }
254  const value_type& front() const { return m_PosIndex.front(); }
255  const value_type& back() const { return m_PosIndex.back(); }
256  const_iterator begin() const { return m_PosIndex.begin(); }
257  const_iterator end() const { return m_PosIndex.end(); }
258 
259  void dumpAsXml(xmlTextWriterPtr pWriter, const char* pName) const;
260 
261  virtual size_t GetFormatCount() const override { return m_Array.size(); }
262  virtual SwFormat* GetFormat(size_t idx) const override { return operator[]( idx ); }
263 
266  bool ContainsFormat(SwFrameFormat const& rFormat) const;
268  bool IsAlive(SwFrameFormat const*) const;
269 
270  void DeleteAndDestroyAll( bool keepDefault = false );
271 
272  bool newDefault( const value_type& x );
273  void newDefault( const_iterator const& position );
274 };
275 
276 
278 class SwFrameFormatsV : public SwFormatsModifyBase<SwFrameFormat*>
279 {
280 public:
282 };
283 
284 class SwCharFormats : public SwFormatsModifyBase<SwCharFormat*>
285 {
286 public:
287  void dumpAsXml(xmlTextWriterPtr pWriter) const;
288 };
289 
290 class SwTextFormatColls : public SwFormatsModifyBase<SwTextFormatColl*>
291 {
292 public:
294  void dumpAsXml(xmlTextWriterPtr pWriter) const;
295 };
296 
298 class SW_DLLPUBLIC SwSectionFormats : public SwFormatsModifyBase<SwSectionFormat*>
299 {
300 public:
301  void dumpAsXml(xmlTextWriterPtr pWriter) const;
302 };
303 
304 class SwFieldTypes : public std::vector<std::unique_ptr<SwFieldType>> {
305 public:
306  void dumpAsXml(xmlTextWriterPtr pWriter) const;
307 };
308 
309 class SwTOXTypes : public std::vector<std::unique_ptr<SwTOXType>> {};
310 
311 class SW_DLLPUBLIC SwNumRuleTable : public SwVectorModifyBase<SwNumRule*> {
312 public:
313  void dumpAsXml(xmlTextWriterPtr pWriter) const;
314 };
315 
317 {
318  bool operator()(SwRangeRedline* const &lhs, SwRangeRedline* const &rhs) const;
319 };
320 
321 // Notification type for notifying about redlines to LOK clients
323 
325 
327 {
328 public:
332  static constexpr size_type npos = USHRT_MAX;
333  //TODO: std::numeric_limits<size_type>::max()
334 private:
335  vector_type maVector;
336 public:
337  ~SwRedlineTable();
338  bool Contains(const SwRangeRedline* p) const { return maVector.find(const_cast<SwRangeRedline*>(p)) != maVector.end(); }
339  size_type GetPos(const SwRangeRedline* p) const;
340 
341  bool Insert(SwRangeRedlinePtr& p);
342  bool Insert(SwRangeRedlinePtr& p, size_type& rInsPos);
343  bool InsertWithValidRanges(SwRangeRedlinePtr& p, size_type* pInsPos = nullptr);
344 
345  void Remove( size_type nPos );
346  void Remove( const SwRangeRedline* p );
347  void DeleteAndDestroy(size_type nPos);
348  void DeleteAndDestroyAll();
349 
350  void dumpAsXml(xmlTextWriterPtr pWriter) const;
351 
352  size_type FindNextOfSeqNo( size_type nSttPos ) const;
353  size_type FindPrevOfSeqNo( size_type nSttPos ) const;
357  size_type FindNextSeqNo( sal_uInt16 nSeqNo, size_type nSttPos ) const;
358  size_type FindPrevSeqNo( sal_uInt16 nSeqNo, size_type nSttPos ) const;
359 
367  const SwRangeRedline* FindAtPosition( const SwPosition& startPosition, size_type& tableIndex, bool next = true ) const;
368 
369  bool empty() const { return maVector.empty(); }
370  size_type size() const { return maVector.size(); }
371  SwRangeRedline* operator[]( size_type idx ) const { return maVector[idx]; }
372  vector_type::const_iterator begin() const { return maVector.begin(); }
373  vector_type::const_iterator end() const { return maVector.end(); }
374  void Resort() { maVector.Resort(); }
375 
376  // Notifies all LOK clients when redlines are added/modified/removed
377  static void LOKRedlineNotification(RedlineNotification eType, SwRangeRedline* pRedline);
378 };
379 
382 {
383 private:
384  std::vector<SwExtraRedline*> m_aExtraRedlines;
385 
386 public:
388 
389  void Insert( SwExtraRedline* p );
390 
391  void DeleteAndDestroy( sal_uInt16 nPos);
392  void DeleteAndDestroyAll();
393 
394  void dumpAsXml(xmlTextWriterPtr pWriter) const;
395 
396  sal_uInt16 GetSize() const { return m_aExtraRedlines.size(); }
397  SwExtraRedline* GetRedline( sal_uInt16 uIndex ) const { return m_aExtraRedlines.operator[]( uIndex ); }
398 
399  SW_DLLPUBLIC bool DeleteAllTableRedlines( SwDoc* pDoc, const SwTable& rTable, bool bSaveInUndo, sal_uInt16 nRedlineTypeToDelete );
400  bool DeleteTableRowRedline ( SwDoc* pDoc, const SwTableLine& rTableLine, bool bSaveInUndo, sal_uInt16 nRedlineTypeToDelete );
401  bool DeleteTableCellRedline( SwDoc* pDoc, const SwTableBox& rTableBox, bool bSaveInUndo, sal_uInt16 nRedlineTypeToDelete );
402 };
403 
404 typedef std::vector<SwOLENode*> SwOLENodes;
405 
406 #endif // INCLUDED_SW_INC_DOCARY_HXX
407 
408 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void DeleteAndDestroy(int aStartIdx, int aEndIdx)
Definition: docary.hxx:126
void Resort()
Definition: docary.hxx:374
void insert(iterator aIt, TInputIterator aFirst, TInputIterator aLast)
Definition: docary.hxx:100
void Insert(SwExtraRedline *p)
Definition: docredln.cxx:1893
static void dumpAsXml(xmlTextWriterPtr)
Definition: docary.hxx:146
Marks a position in the document model.
Definition: pam.hxx:35
void reserve(size_type nSize)
Definition: docary.hxx:105
vector_type::const_iterator end() const
Definition: docary.hxx:373
const value_type & operator[](size_t index_) const
Definition: docary.hxx:252
virtual size_t GetFormatCount() const override
Definition: docary.hxx:261
bool Contains(const SwRangeRedline *p) const
Definition: docary.hxx:338
const_iterator begin() const
Definition: docary.hxx:256
size_type FindPrevOfSeqNo(size_type nSttPos) const
Definition: docredln.cxx:650
iterator erase(iterator aFirst, iterator aLast)
Definition: docary.hxx:97
void Remove(size_type nPos)
Definition: docredln.cxx:609
ByPos & m_PosIndex
Definition: docary.hxx:210
Definition: doc.hxx:185
size_t GetPos(Value const &p) const
Definition: docary.hxx:136
bool InsertWithValidRanges(SwRangeRedlinePtr &p, size_type *pInsPos=nullptr)
Definition: docredln.cxx:560
const_iterator find(const Value &x) const
virtual size_t GetFormatCount() const override
Definition: docary.hxx:158
SwTableLine is one table row in the document model.
Definition: swtable.hxx:344
SwExtraRedline * GetRedline(sal_uInt16 uIndex) const
Definition: docary.hxx:397
std::vector< Value >::const_iterator const_iterator
Definition: docary.hxx:68
const_iterator end() const
Definition: docary.hxx:257
Value const & at(size_type nPos) const
Definition: docary.hxx:106
std::vector< Value > mvVals
Definition: docary.hxx:79
bool empty() const
Definition: docary.hxx:88
SwFrameFormatsBase::value_type value_type
Definition: docary.hxx:217
size_t GetPos(const SwFormat *p) const
Definition: docary.hxx:164
ByTypeAndName & m_TypeAndNameIndex
Definition: docary.hxx:211
Array of Undo-history.
Definition: docary.hxx:298
size_type size() const
Definition: docary.hxx:370
OSQLColumns::Vector::const_iterator find(const OSQLColumns::Vector::const_iterator &first, const OSQLColumns::Vector::const_iterator &last, const OUString &_rVal, const ::comphelper::UStringMixEqual &_rCase)
Value
const_iterator rangeProject(const_range_iterator const &position)
Definition: docary.hxx:249
SwFrameFormatsBase::nth_index< 0 >::type ByPos
Definition: docary.hxx:205
provides some methods for generic operations on lists that contain SwFormat* subclasses.
Definition: docary.hxx:49
const_iterator end() const
Definition: docary.hxx:94
bool empty() const
Definition: docary.hxx:369
Unsorted, undeleting SwFrameFormat vector.
Definition: docary.hxx:278
vector_type::const_iterator begin() const
Definition: docary.hxx:372
SwFormatsBase()=default
virtual void SetName(const OUString &rNewName, bool bBroadcast=false) override
Definition: atrfrm.cxx:2464
static void LOKRedlineNotification(RedlineNotification eType, SwRangeRedline *pRedline)
Emits LOK notification about one addition / removal of a redline item.
Definition: docredln.cxx:352
void DeleteAndDestroy(sal_uInt16 nPos)
Definition: docredln.cxx:1899
bool empty() const
Definition: docary.hxx:223
ByTypeAndName::const_iterator const_range_iterator
Definition: docary.hxx:215
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: fmtcol.cxx:471
size_type size() const
Specific frame formats (frames, DrawObjects).
Definition: docary.hxx:200
bool IsAlive(typename std::remove_pointer< Value >::type const *const p) const
check that given format is still alive (i.e. contained here)
Definition: docary.hxx:143
Base class for various Writer styles.
Definition: format.hxx:43
vector_type maVector
Definition: docary.hxx:335
sal_uInt16 GetSize() const
Definition: docary.hxx:396
Table that holds 'extra' redlines, such as 'table row insert/delete', 'paragraph moves' etc...
Definition: docary.hxx:381
size_type FindPrevSeqNo(sal_uInt16 nSeqNo, size_type nSttPos) const
Definition: docredln.cxx:681
struct _xmlTextWriter * xmlTextWriterPtr
size_type GetPos(const SwRangeRedline *p) const
Definition: docredln.cxx:593
SwFrameFormatsBase::nth_index< 1 >::type ByTypeAndName
Definition: docary.hxx:206
Style of a layout element.
Definition: frmfmt.hxx:57
Value const & front() const
Definition: docary.hxx:89
std::vector< SwOLENode * > SwOLENodes
Definition: docary.hxx:404
std::vector< Value >::value_type value_type
Definition: docary.hxx:70
void DeleteAndDestroy(size_type nPos)
Definition: docredln.cxx:635
iterator begin()
Definition: docary.hxx:91
std::vector< Value >::size_type size_type
Definition: docary.hxx:69
void DeleteAndDestroyAll()
Definition: docredln.cxx:624
virtual size_t GetFormatCount() const =0
vector_type::size_type size_type
Definition: docary.hxx:331
SwFormatsBase & operator=(SwFormatsBase const &)=default
size_t size() const
Definition: docary.hxx:90
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: fldbas.cxx:169
const value_type & front() const
Definition: docary.hxx:254
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: docredln.cxx:730
std::vector< Value >::iterator iterator
Definition: docary.hxx:67
const SwRangeRedline * FindAtPosition(const SwPosition &startPosition, size_type &tableIndex, bool next=true) const
Find the redline at the given position.
Definition: docredln.cxx:702
iterator erase(iterator aIt)
Definition: docary.hxx:96
sal_uInt16 sal_Char * pName
Value const & operator[](size_type nPos) const
Definition: docary.hxx:107
bool Insert(SwRangeRedlinePtr &p)
Definition: docredln.cxx:425
const_iterator end() const
bool empty() const
const_range_iterator rangeEnd() const
Definition: docary.hxx:248
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
Base object for 'Redlines' that are not of 'Ranged' type (like table row insert)
Definition: redline.hxx:287
SwVectorModifyBase & operator=(SwVectorModifyBase const &)=default
SwFormatsModifyBase(typename SwVectorModifyBase< Value >::DestructorPolicy policy=SwVectorModifyBase< Value >::DestructorPolicy::FreeElements)
Definition: docary.hxx:153
iterator end()
Definition: docary.hxx:93
SwTable is one table in the document model, containing rows (which contain cells).
Definition: swtable.hxx:110
SwVectorModifyBase(DestructorPolicy policy=DestructorPolicy::FreeElements)
Definition: docary.hxx:84
iterator insert(iterator aIt, Value const &rVal)
Definition: docary.hxx:98
void push_back(Value const &rVal)
Definition: docary.hxx:104
const_iterator begin() const
virtual Value GetFormat(size_t idx) const override
Definition: docary.hxx:161
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: chrfmt.cxx:34
size_type FindNextOfSeqNo(size_type nSttPos) const
Definition: docredln.cxx:643
const DestructorPolicy mPolicy
Definition: docary.hxx:80
SwRangeRedline * operator[](size_type idx) const
Definition: docary.hxx:371
const_iterator begin() const
Definition: docary.hxx:92
ByPos::const_iterator const_iterator
Definition: docary.hxx:214
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: docredln.cxx:93
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
Definition: unosett.cxx:259
virtual ~SwFormatsBase()
Definition: docary.hxx:54
virtual SwFormat * GetFormat(size_t idx) const override
Definition: docary.hxx:262
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:386
Value & operator[](size_type nPos)
Definition: docary.hxx:108
bool DeleteTableCellRedline(SwDoc *pDoc, const SwTableBox &rTableBox, bool bSaveInUndo, sal_uInt16 nRedlineTypeToDelete)
Definition: docredln.cxx:257
size_type FindNextSeqNo(sal_uInt16 nSeqNo, size_type nSttPos) const
Search next or previous Redline with the same Seq.
Definition: docredln.cxx:658
RedlineNotification
Definition: docary.hxx:322
bool DeleteTableRowRedline(SwDoc *pDoc, const SwTableLine &rTableLine, bool bSaveInUndo, sal_uInt16 nRedlineTypeToDelete)
Definition: docredln.cxx:213
void DeleteAndDestroyAll()
Definition: docredln.cxx:1918
ByPos::iterator iterator
Definition: docary.hxx:207
bool ContainsFormat(SwFormat const *const pFormat) const
check if given format is contained here pFormat must not have been deleted
Definition: docary.hxx:169
size_t size() const
Definition: docary.hxx:224
SW_DLLPUBLIC bool DeleteAllTableRedlines(SwDoc *pDoc, const SwTable &rTable, bool bSaveInUndo, sal_uInt16 nRedlineTypeToDelete)
Definition: docredln.cxx:137
o3tl::sorted_vector< SwRangeRedline *, CompareSwRedlineTable, o3tl::find_partialorder_ptrequals > vector_type
Definition: docary.hxx:330
virtual SwFormat * GetFormat(size_t idx) const =0
SwFrameFormatsBase::size_type size_type
Definition: docary.hxx:216
SwRangeRedline * SwRangeRedlinePtr
Definition: docary.hxx:324
const value_type & back() const
Definition: docary.hxx:255
std::vector< Value >::size_type size_type
static constexpr size_type npos
Definition: docary.hxx:332
bool operator()(SwRangeRedline *const &lhs, SwRangeRedline *const &rhs) const
Definition: docredln.cxx:583
SwFrameFormatsBase m_Array
Definition: docary.hxx:209
boost::multi_index_container< SwFrameFormat *, boost::multi_index::indexed_by< boost::multi_index::random_access<>, boost::multi_index::ordered_unique< type_name_key > > > SwFrameFormatsBase
Definition: docary.hxx:197
virtual ~SwVectorModifyBase()
Definition: docary.hxx:111
std::vector< SwExtraRedline * > m_aExtraRedlines
Definition: docary.hxx:384