]> git.lyx.org Git - lyx.git/blobdiff - src/InsetList.h
more cursor dispatch
[lyx.git] / src / InsetList.h
index 1141a8a84a13418aed63f7cbd27ddb8f0bd61ee9..5baa9087944364e98f0a2430dc9da0ce75acff1c 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <vector>
 
-class InsetOld;
+class InsetBase;
 class Buffer;
 
 
@@ -28,9 +28,9 @@ public:
                ///
                lyx::pos_type pos;
                ///
-               InsetOld * inset;
+               InsetBase * inset;
                ///
-               InsetTable(lyx::pos_type p, InsetOld * i) : pos(p), inset(i) {}
+               InsetTable(lyx::pos_type p, InsetBase * i) : pos(p), inset(i) {}
        };
        ///
        typedef std::vector<InsetTable> List;
@@ -42,25 +42,27 @@ public:
        ///
        ~InsetList();
        ///
-       iterator begin();
+       iterator begin() { return list.begin(); }
        ///
-       iterator end();
+       iterator end() { return list.end(); }
        ///
-       const_iterator begin() const;
+       const_iterator begin() const { return list.begin(); }
        ///
-       const_iterator end() const;
+       const_iterator end() const { return list.end(); }
+       ///
+       bool empty() const { return list.empty(); }
        ///
        iterator insetIterator(lyx::pos_type pos); 
        ///
        const_iterator insetIterator(lyx::pos_type pos) const;
        ///
-       void insert(InsetOld * inset, lyx::pos_type pos);
+       void insert(InsetBase * inset, lyx::pos_type pos);
        ///
        void erase(lyx::pos_type pos);
        ///
-       InsetOld * release(lyx::pos_type);
+       InsetBase * release(lyx::pos_type);
        ///
-       InsetOld * get(lyx::pos_type pos) const;
+       InsetBase * get(lyx::pos_type pos) const;
        ///
        void increasePosAfterPos(lyx::pos_type pos);
        ///