4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
15 #include "support/types.h"
33 InsetTable(lyx::pos_type p, InsetBase * i) : pos(p), inset(i) {}
36 typedef std::vector<InsetTable> List;
38 typedef List::iterator iterator;
40 typedef List::const_iterator const_iterator;
45 iterator begin() { return list.begin(); }
47 iterator end() { return list.end(); }
49 const_iterator begin() const { return list.begin(); }
51 const_iterator end() const { return list.end(); }
53 bool empty() const { return list.empty(); }
55 iterator insetIterator(lyx::pos_type pos);
57 const_iterator insetIterator(lyx::pos_type pos) const;
59 void insert(InsetBase * inset, lyx::pos_type pos);
61 void erase(lyx::pos_type pos);
63 InsetBase * release(lyx::pos_type);
65 InsetBase * get(lyx::pos_type pos) const;
67 void increasePosAfterPos(lyx::pos_type pos);
69 void decreasePosAfterPos(lyx::pos_type pos);
71 void insetsOpenCloseBranch(Buffer const & buf);