]> git.lyx.org Git - lyx.git/blob - src/errorlist.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / errorlist.h
1 // -*- C++ -*-
2
3 #ifndef ERRORLIST_H
4 #define ERRORLIST_H
5
6 /**
7  * \file errorlist.h
8  * This file is part of LyX, the document processor.
9  * Licence details can be found in the file COPYING.
10  *
11  * \author Alfredo Braunstein
12  *
13  * Full author contact details are available in file CREDITS
14  */
15
16 #include "LString.h"
17
18 #include <vector>
19
20 class Buffer;
21
22 /// A class to hold an error item
23 struct ErrorItem {
24         string error;
25         string description;
26         int par_id;
27         int pos_start;
28         int pos_end;
29         ErrorItem(string const & error, string const & description, 
30                   int parid, int posstart, int posend);
31         ErrorItem();
32 };
33
34 class ErrorList : private std::vector<ErrorItem>
35 {
36 public: 
37         ErrorList() : std::vector<ErrorItem> () {};
38
39         using std::vector<ErrorItem>::push_back;
40         using std::vector<ErrorItem>::end;
41         using std::vector<ErrorItem>::begin;
42         using std::vector<ErrorItem>::operator[];
43         using std::vector<ErrorItem>::size;
44         using std::vector<ErrorItem>::clear;
45         using std::vector<ErrorItem>::empty;
46         using std::vector<ErrorItem>::const_iterator;
47 };
48
49
50
51 #endif