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/strfwd.h"
26 /// A class to hold an error item
29 typedef TexRow::TextEntry TextEntry;
31 docstring description;
32 // To generalise into RowEntries
35 Buffer const * buffer;
36 // With a start position and an end position
37 ErrorItem(docstring const & error, docstring const & description,
38 TextEntry start, TextEntry end, Buffer const * buf = 0);
39 // Error outside the document body
40 ErrorItem(docstring const & error, docstring const & description,
41 Buffer const * buf = 0);
46 class ErrorList : private std::vector<ErrorItem>
49 ErrorList() : std::vector<ErrorItem> () {}
51 using std::vector<ErrorItem>::push_back;
52 using std::vector<ErrorItem>::end;
53 using std::vector<ErrorItem>::begin;
54 using std::vector<ErrorItem>::operator[];
55 using std::vector<ErrorItem>::size;
56 using std::vector<ErrorItem>::clear;
57 using std::vector<ErrorItem>::empty;
58 using std::vector<ErrorItem>::const_iterator;