X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphList.h;h=649df312d366bc922acbe874d58c8d9aa496732d;hb=8765ab59cdddad67284007813ef25934ea0042ce;hp=b81ac00690dda63d87e89a6b81103efd73aff5a3;hpb=30a9dd7f98faf7baccc3c233e223a421eb9896cd;p=lyx.git diff --git a/src/ParagraphList.h b/src/ParagraphList.h index b81ac00690..649df312d3 100644 --- a/src/ParagraphList.h +++ b/src/ParagraphList.h @@ -1,84 +1,28 @@ // -*- C++ -*- +/** + * \file ParagraphList.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author Angus Leeming + * + * Full author contact details are available in file CREDITS. + */ #ifndef PARAGRAPH_LIST_H #define PARAGRAPH_LIST_H -#include +#include "paragraph.h" -class Paragraph; +#include "support/RandomAccessList.h" -/// -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(); - /// - 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; -}; -/// -bool operator==(ParagraphList::iterator const & i1, - ParagraphList::iterator const & i2); -/// -bool operator!=(ParagraphList::iterator const & i1, - ParagraphList::iterator const & i2); +namespace lyx { + +/// Container for all kind of Paragraphs used in Lyx. +typedef RandomAccessList ParagraphList; + + +} // namespace lyx #endif