]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphList.h
Alfredo's second patch
[lyx.git] / src / ParagraphList.h
index 322aa85cb8b4e052f1a446f2e45d73e30d55318b..f60337eff4f1b58040303fea17cad0f152733bd2 100644 (file)
@@ -4,6 +4,7 @@
 #define PARAGRAPH_LIST_H
 
 #include <iterator>
+#include <utility>
 
 class Paragraph;
 
@@ -46,8 +47,12 @@ public:
        ///
        ParagraphList();
        ///
+       iterator insert(iterator it, Paragraph * par);
+       ///
        void clear();
        ///
+       void erase(iterator it);
+       ///
        iterator begin();
        ///
        iterator begin() const;
@@ -58,6 +63,16 @@ public:
        ///
        void set(Paragraph *);
        ///
+       void push_back(Paragraph *);
+       ///
+       Paragraph const & front() const;
+       ///
+       Paragraph & front();
+       ///
+       Paragraph const & back() const;
+       ///
+       Paragraph & back();
+       ///
        int size() const;
        ///
        bool empty() const;
@@ -66,6 +81,12 @@ private:
        Paragraph * parlist;
 };
 
+
+
+typedef std::pair<ParagraphList::iterator, int> PitPosPair;
+
+
+
 ///
 bool operator==(ParagraphList::iterator const & i1,
                ParagraphList::iterator const & i2);
@@ -73,4 +94,5 @@ bool operator==(ParagraphList::iterator const & i1,
 bool operator!=(ParagraphList::iterator const & i1,
                ParagraphList::iterator const & i2);
 
+
 #endif