4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alfredo Braunstein
9 * Full author contact details are available in file CREDITS.
17 #include "support/docstring.h"
18 #include "support/types.h"
27 /// A class to hold an error item
30 typedef TexRow::TextEntry TextEntry;
32 docstring description;
33 // To generalise into RowEntries
36 Buffer const * buffer;
37 // With a start position and an end position
38 ErrorItem(docstring const & error, docstring const & description,
39 TextEntry start, TextEntry end, Buffer const * buf = 0);
40 // Error outside the document body
41 ErrorItem(docstring const & error, docstring const & description,
42 Buffer const * buf = 0);
47 class ErrorList : private std::vector<ErrorItem>
50 ErrorList() : std::vector<ErrorItem> () {}
52 using std::vector<ErrorItem>::push_back;
53 using std::vector<ErrorItem>::end;
54 using std::vector<ErrorItem>::begin;
55 using std::vector<ErrorItem>::operator[];
56 using std::vector<ErrorItem>::size;
57 using std::vector<ErrorItem>::clear;
58 using std::vector<ErrorItem>::empty;
59 using std::vector<ErrorItem>::const_iterator;