]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphList_fwd.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / ParagraphList_fwd.h
index e3401edaf69c5d173b30b40458143c06a7148bcb..df6d55041d9e551c189400bb41ae4179e2318a7c 100644 (file)
 #ifndef PARAGRAPH_LIST_FWD_H
 #define PARAGRAPH_LIST_FWD_H
 
-#include <list>
-#include <utility>
+#include "paragraph.h"
 
-class Paragraph;
+#include <vector>
 
-typedef std::list<Paragraph> ParagraphList;
-
-typedef std::pair<ParagraphList::iterator, int> PitPosPair;
+class ParagraphList : public std::vector<Paragraph>
+{
+public:
+       ///
+       typedef std::vector<Paragraph> BaseType;
+       ///
+       ParagraphList();
+       ///
+       template <class Iter>
+       ParagraphList(Iter beg, Iter end)
+               : BaseType(beg, end)
+       {}
+};
 
 #endif