#include "buffer.h"
#include "bufferparams.h"
#include "BranchList.h"
-#include "BufferView.h"
#include "debug.h"
#include "insets/insetbranch.h"
-using lyx::pos_type;
+
+namespace lyx {
using std::endl;
using std::lower_bound;
typedef InsetList::InsetTable Table;
-struct InsetTablePosLess : public std::binary_function<Table, Table, bool> {
+class InsetTablePosLess : public std::binary_function<Table, Table, bool> {
+public:
bool operator()(Table const & t1, Table const & t2) const
{
return t1.pos < t2.pos;
}
-void InsetList::insert(InsetBase * inset, lyx::pos_type pos)
+void InsetList::insert(InsetBase * inset, pos_type pos)
{
List::iterator end = list_.end();
List::iterator it = insetIterator(pos);
--it->pos;
}
}
+
+
+} // namespace lyx