// -*- C++ -*-
-
-#ifndef ERRORLIST_H
-#define ERRORLIST_H
-
/**
* \file errorlist.h
* This file is part of LyX, the document processor.
*
* \author Alfredo Braunstein
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
+#ifndef ERRORLIST_H
+#define ERRORLIST_H
+
+#include "support/docstring.h"
#include <vector>
-#include "support/lstrings.h"
+#include <string>
+
+
+namespace lyx {
class Buffer;
-class TeXErrors;
/// A class to hold an error item
-struct ErrorItem {
- string error;
- string description;
+class ErrorItem {
+public:
+ docstring error;
+ docstring description;
int par_id;
- int pos_start;
- int pos_end;
- ErrorItem(string const &, string const &,
- int, int, int);
+ pos_type pos_start;
+ pos_type pos_end;
+ ErrorItem(docstring const & error, docstring const & description,
+ int parid, pos_type posstart, pos_type posend);
ErrorItem();
};
+
class ErrorList : private std::vector<ErrorItem>
{
-public:
+public:
ErrorList() : std::vector<ErrorItem> () {};
- ErrorList(Buffer const & buf, TeXErrors const &);
using std::vector<ErrorItem>::push_back;
using std::vector<ErrorItem>::end;
};
+} // namespace lyx
#endif