]> git.lyx.org Git - lyx.git/blob - src/errorlist.h
"Inter-word Space"
[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 class TeXErrors;
22
23 /// A class to hold an error item
24 struct ErrorItem {
25         string error;
26         string description;
27         int par_id;
28         int pos_start;
29         int pos_end;
30         ErrorItem(string const &, string const &, 
31                   int, int, int);
32         ErrorItem();
33 };
34
35 class ErrorList : private std::vector<ErrorItem>
36 {
37 public: 
38         ErrorList() : std::vector<ErrorItem> () {};
39         ErrorList(Buffer const & buf, TeXErrors const &);
40
41         using std::vector<ErrorItem>::push_back;
42         using std::vector<ErrorItem>::end;
43         using std::vector<ErrorItem>::begin;
44         using std::vector<ErrorItem>::operator[];
45         using std::vector<ErrorItem>::size;
46         using std::vector<ErrorItem>::clear;
47         using std::vector<ErrorItem>::empty;
48         using std::vector<ErrorItem>::const_iterator;
49 };
50
51
52
53 #endif