]> git.lyx.org Git - lyx.git/blobdiff - src/InsetList.h
namespace grfx -> lyx::graphics
[lyx.git] / src / InsetList.h
index 30dfea3fc4c670fef393aa23080344f1cd54d165..f542f7fb052b3c0519f311b486730fd8541eecea 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "support/types.h"
 
-
 class Inset;
 class BufferView;
 
@@ -24,30 +23,11 @@ public:
        };
        ///
        typedef std::vector<InsetTable> List;
-
        ///
-       class iterator {
-       public:
-               ///
-               iterator() {}
-               //
-               iterator(List::iterator const & iter);
-               ///
-               iterator & operator++();
-               ///
-               iterator operator++(int);
-               ///
-               lyx::pos_type getPos() const;
-               ///
-               Inset * getInset() const;
-               ///
-               void setInset(Inset * inset);
-               ///
-               friend bool operator==(iterator const &, iterator const &);
-       private:
-               ///
-               List::iterator it;
-       };
+       typedef List::iterator iterator;
+       ///
+       typedef List::const_iterator const_iterator;
+       
        ///
        ~InsetList();
        ///
@@ -55,9 +35,9 @@ public:
        ///
        iterator end();
        ///
-       iterator begin() const;
+       const_iterator begin() const;
        ///
-       iterator end() const;
+       const_iterator end() const;
        ///
        iterator insetIterator(lyx::pos_type pos);
        ///
@@ -81,11 +61,4 @@ private:
        List list;
 };
 
-///
-bool operator==(InsetList::iterator const & i1,
-               InsetList::iterator const & i2);
-///
-bool operator!=(InsetList::iterator const & i1,
-               InsetList::iterator const & i2);
-
 #endif