]> git.lyx.org Git - lyx.git/blobdiff - src/InsetList.C
hopefully fix tex2lyx linking.
[lyx.git] / src / InsetList.C
index cdb9fd471521319890ec1999e5df43fdd8705e11..22e9273ab6223783af9b0baa739fc8431fe96186 100644 (file)
 #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;
@@ -31,7 +31,8 @@ namespace {
 
 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;
@@ -70,7 +71,7 @@ InsetList::const_iterator InsetList::insetIterator(pos_type pos) const
 }
 
 
-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);
@@ -135,3 +136,6 @@ void InsetList::decreasePosAfterPos(pos_type pos)
                --it->pos;
        }
 }
+
+
+} // namespace lyx