]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphList.h
Alfredo's second patch
[lyx.git] / src / ParagraphList.h
index 7223b58e08c7c1baeb87d3af6959b813cc980dbd..f60337eff4f1b58040303fea17cad0f152733bd2 100644 (file)
@@ -4,6 +4,7 @@
 #define PARAGRAPH_LIST_H
 
 #include <iterator>
+#include <utility>
 
 class Paragraph;
 
@@ -64,9 +65,13 @@ public:
        ///
        void push_back(Paragraph *);
        ///
-       Paragraph const * back() const;
+       Paragraph const & front() const;
        ///
-       Paragraph * back();
+       Paragraph & front();
+       ///
+       Paragraph const & back() const;
+       ///
+       Paragraph & back();
        ///
        int size() const;
        ///
@@ -76,6 +81,12 @@ private:
        Paragraph * parlist;
 };
 
+
+
+typedef std::pair<ParagraphList::iterator, int> PitPosPair;
+
+
+
 ///
 bool operator==(ParagraphList::iterator const & i1,
                ParagraphList::iterator const & i2);
@@ -83,4 +94,5 @@ bool operator==(ParagraphList::iterator const & i1,
 bool operator!=(ParagraphList::iterator const & i1,
                ParagraphList::iterator const & i2);
 
+
 #endif