]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphList.h
rename Inset to InsetOld
[lyx.git] / src / ParagraphList.h
index a4bba61552756bdcc2276293731e5dc82c29ac12..b1e9d6d2869e6eb7eb2a1ea567697b3d366a7f1c 100644 (file)
 #ifndef PARAGRAPH_LIST_H
 #define PARAGRAPH_LIST_H
 
-#define NO_STD_LIST 1
-
-#ifndef NO_STD_LIST
-
 #include "paragraph.h"
 
 #include <list>
 
-typedef std::list<Paragraph> ParagraphList;
-
-#else
-
-class Paragraph;
-
-#include <iterator>
-#include <utility>
-
-///
-class ParagraphList {
-public:
-       ///
-       class iterator {
-       public:
-               friend class ParagraphList;
-               ///
-               typedef std::bidirectional_iterator_tag iterator_category;
-               ///
-               typedef Paragraph * value_type;
-               ///
-               typedef ptrdiff_t difference_type;
-               ///
-               typedef Paragraph * pointer;
-               ///
-               typedef Paragraph & reference;
-               ///
-               iterator();
-               ///
-               reference operator*();
-               ///
-               pointer operator->();
-               ///
-               iterator & operator++();
-               ///
-               iterator operator++(int);
-               ///
-               iterator & operator--();
-               ///
-               iterator operator--(int);
-       private:
-               ///
-               iterator(value_type);
-               ///
-               Paragraph * ptr;
-       };
-       ///
-       ParagraphList();
-       ///
-       ParagraphList(ParagraphList const &);
-       ///
-       ParagraphList & operator=(ParagraphList const &);
-       ///
-       iterator insert(iterator it, Paragraph const & par);
-       ///
-       void insert(iterator pos, iterator beg, iterator end);
-       ///
-       void assign(iterator beg, iterator end);
-       ///
-       void splice(iterator pos, ParagraphList & pl);
-       ///
-       void clear();
-       ///
-       iterator erase(iterator it);
-       ///
-       iterator erase(iterator first, iterator last);
-       ///
-       iterator begin();
-       ///
-       iterator begin() const;
-       ///
-       iterator end();
-       ///
-       iterator end() const;
-       ///
-       void push_back(Paragraph const &);
-       ///
-       Paragraph const & front() const;
-       ///
-       Paragraph & front();
-       ///
-       Paragraph const & back() const;
-       ///
-       Paragraph & back();
-       ///
-       int size() const;
-       ///
-       bool empty() const;
-       ///
-       iterator find(Paragraph 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
-
 #endif