]> git.lyx.org Git - lyx.git/blobdiff - src/errorlist.h
Change the color of the background widget to red.
[lyx.git] / src / errorlist.h
index 21a87b08ed14880efb3a09ba67a6e32d5015533d..1e5f7a9b325787128ba23cde406d3bebf0106d28 100644 (file)
@@ -1,8 +1,4 @@
 // -*- 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.
  */
 
-#include "LString.h"
+#ifndef ERRORLIST_H
+#define ERRORLIST_H
+
+#include "support/types.h"
 
 #include <vector>
+#include <string>
 
 class Buffer;
-class TeXErrors;
 
 /// A class to hold an error item
 struct ErrorItem {
-       string error;
-       string description;
+       std::string error;
+       std::string description;
        int par_id;
-       int pos_start;
-       int pos_end;
-       ErrorItem(string const & error, string const & description, 
-                 int parid, int posstart, int posend);
+       lyx::pos_type pos_start;
+       lyx::pos_type pos_end;
+       ErrorItem(std::string const & error, std::string const & description,
+                 int parid, lyx::pos_type posstart, lyx::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;
@@ -48,6 +47,4 @@ public:
        using std::vector<ErrorItem>::const_iterator;
 };
 
-
-
 #endif