X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphList.h;h=b1e9d6d2869e6eb7eb2a1ea567697b3d366a7f1c;hb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;hp=7223b58e08c7c1baeb87d3af6959b813cc980dbd;hpb=ebc4d99eaa5d860fedfe509bd1b2a26938d95082;p=lyx.git diff --git a/src/ParagraphList.h b/src/ParagraphList.h index 7223b58e08..b1e9d6d286 100644 --- a/src/ParagraphList.h +++ b/src/ParagraphList.h @@ -3,84 +3,14 @@ #ifndef PARAGRAPH_LIST_H #define PARAGRAPH_LIST_H -#include +#include "paragraph.h" -class Paragraph; +#include -/// -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 * back() const; - /// - Paragraph * back(); - /// - int size() const; - /// - bool empty() const; -private: - /// - Paragraph * parlist; +struct ParagraphList : public std::list +{ }; -/// -bool operator==(ParagraphList::iterator const & i1, - ParagraphList::iterator const & i2); -/// -bool operator!=(ParagraphList::iterator const & i1, - ParagraphList::iterator const & i2); +typedef std::pair PitPosPair; #endif