]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphList.h
rename Inset to InsetOld
[lyx.git] / src / ParagraphList.h
index f60337eff4f1b58040303fea17cad0f152733bd2..b1e9d6d2869e6eb7eb2a1ea567697b3d366a7f1c 100644 (file)
@@ -3,96 +3,14 @@
 #ifndef PARAGRAPH_LIST_H
 #define PARAGRAPH_LIST_H
 
-#include <iterator>
-#include <utility>
+#include "paragraph.h"
 
-class Paragraph;
+#include <list>
 
-///
-class ParagraphList {
-public:
-       ///
-       class iterator {
-       public:
-               ///
-               typedef std::bidirectional_iterator_tag iterator_category;
-               ///
-               typedef Paragraph * value_type;
-               ///
-               typedef ptrdiff_t difference_type;
-               ///
-               typedef Paragraph * pointer;
-               ///
-               typedef Paragraph & reference;
-               ///
-               iterator();
-               ///
-               iterator(value_type);
-               ///
-               reference operator*();
-               ///
-               pointer operator->();
-               ///
-               iterator & operator++();
-               ///
-               iterator operator++(int);
-               ///
-               iterator & operator--();
-               ///
-               iterator operator--(int);
-       private:
-               ///
-               Paragraph * ptr;
-       };
-       ///
-       ParagraphList();
-       ///
-       iterator insert(iterator it, Paragraph * par);
-       ///
-       void clear();
-       ///
-       void erase(iterator it);
-       ///
-       iterator begin();
-       ///
-       iterator begin() const;
-       ///
-       iterator end();
-       ///
-       iterator end() const;
-       ///
-       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;
-private:
-       ///
-       Paragraph * parlist;
+struct ParagraphList : public std::list<Paragraph>
+{
 };
 
-
-
 typedef std::pair<ParagraphList::iterator, int> PitPosPair;
 
-
-
-///
-bool operator==(ParagraphList::iterator const & i1,
-               ParagraphList::iterator const & i2);
-///
-bool operator!=(ParagraphList::iterator const & i1,
-               ParagraphList::iterator const & i2);
-
-
 #endif