]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphList.h
don't rm emergency saves ever
[lyx.git] / src / ParagraphList.h
index b81ac00690dda63d87e89a6b81103efd73aff5a3..92470cb97688fbc0bbf06cbe2a21847751c07352 100644 (file)
@@ -4,6 +4,7 @@
 #define PARAGRAPH_LIST_H
 
 #include <iterator>
+#include <utility>
 
 class Paragraph;
 
@@ -46,6 +47,18 @@ public:
        ///
        ParagraphList();
        ///
+       ParagraphList(ParagraphList const &);
+       ///
+       ParagraphList & operator=(ParagraphList const &);
+       ///
+       iterator insert(iterator it, Paragraph * par);
+       ///
+       void insert(iterator pos, iterator beg, iterator end);
+       ///
+       void assign(iterator beg, iterator end);
+       ///
+       void splice(iterator pos, ParagraphList & pl);
+       ///
        void clear();
        ///
        void erase(iterator it);
@@ -62,9 +75,13 @@ public:
        ///
        void push_back(Paragraph *);
        ///
-       Paragraph const * back() const;
+       Paragraph const & front() const;
+       ///
+       Paragraph & front();
        ///
-       Paragraph * back();
+       Paragraph const & back() const;
+       ///
+       Paragraph & back();
        ///
        int size() const;
        ///
@@ -74,6 +91,12 @@ private:
        Paragraph * parlist;
 };
 
+
+
+typedef std::pair<ParagraphList::iterator, int> PitPosPair;
+
+
+
 ///
 bool operator==(ParagraphList::iterator const & i1,
                ParagraphList::iterator const & i2);
@@ -81,4 +104,5 @@ bool operator==(ParagraphList::iterator const & i1,
 bool operator!=(ParagraphList::iterator const & i1,
                ParagraphList::iterator const & i2);
 
+
 #endif