\end_document replaces \the_end.
[lyx.git] / src / errorlist.h
blobf2a9b2d46787ac1bd603bb07cf58884884dc92b1
1 // -*- C++ -*-
3 #ifndef ERRORLIST_H
4 #define ERRORLIST_H
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.
11 * \author Alfredo Braunstein
13 * Full author contact details are available in file CREDITS
16 #include "LString.h"
18 #include <vector>
20 class Buffer;
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();
34 class ErrorList : private std::vector<ErrorItem>
36 public:
37 ErrorList() : std::vector<ErrorItem> () {};
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;
51 #endif