X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphList.h;h=b1e9d6d2869e6eb7eb2a1ea567697b3d366a7f1c;hb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;hp=b56dacdc724c4065818f4f7b2d57c5b52c55689d;hpb=1d4154f33363e61541d39e18fe400864e7b0439a;p=lyx.git diff --git a/src/ParagraphList.h b/src/ParagraphList.h index b56dacdc72..b1e9d6d286 100644 --- a/src/ParagraphList.h +++ b/src/ParagraphList.h @@ -3,80 +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(); - /// - void clear(); - /// - 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