tufte layout files:
[lyx.git] / src / ErrorList.h
blobe5ccdce7ad698d0f6f552f6081cbccf758f28b63
1 // -*- C++ -*-
2 /**
3 * \file ErrorList.h
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.
12 #ifndef ERRORLIST_H
13 #define ERRORLIST_H
15 #include "support/docstring.h"
16 #include "support/types.h"
18 #include <vector>
19 #include <string>
22 namespace lyx {
24 class Buffer;
26 /// A class to hold an error item
27 class ErrorItem {
28 public:
29 docstring error;
30 docstring description;
31 int par_id;
32 pos_type pos_start;
33 pos_type pos_end;
34 ErrorItem(docstring const & error, docstring const & description,
35 int parid, pos_type posstart, pos_type posend);
36 ErrorItem();
40 class ErrorList : private std::vector<ErrorItem>
42 public:
43 ErrorList() : std::vector<ErrorItem> () {};
45 using std::vector<ErrorItem>::push_back;
46 using std::vector<ErrorItem>::end;
47 using std::vector<ErrorItem>::begin;
48 using std::vector<ErrorItem>::operator[];
49 using std::vector<ErrorItem>::size;
50 using std::vector<ErrorItem>::clear;
51 using std::vector<ErrorItem>::empty;
52 using std::vector<ErrorItem>::const_iterator;
56 } // namespace lyx
58 #endif