]> git.lyx.org Git - lyx.git/blobdiff - src/ErrorList.h
Update fr.po
[lyx.git] / src / ErrorList.h
index d0b77439ac27dd7e660aedec6ed9931b20326cf9..29cb03cfe6ace8d311290a8140c756855c36721a 100644 (file)
 #ifndef ERRORLIST_H
 #define ERRORLIST_H
 
-#include "support/docstring.h"
-#include "support/types.h"
+#include "TexRow.h"
+
+#include "support/strfwd.h"
 
 #include <vector>
-#include <string>
 
 
 namespace lyx {
@@ -26,15 +26,19 @@ class Buffer;
 /// A class to hold an error item
 class ErrorItem {
 public:
+       typedef TexRow::TextEntry TextEntry;
        docstring error;
        docstring description;
-       int par_id;
-       pos_type pos_start;
-       pos_type pos_end;
+       // To generalise into RowEntries
+       TextEntry start;
+       TextEntry end;
        Buffer const * buffer;
+       // With a start position and an end position
+       ErrorItem(docstring const & error, docstring const & description,
+                 TextEntry start, TextEntry end, Buffer const * buf = 0);
+       // Error outside the document body
        ErrorItem(docstring const & error, docstring const & description,
-                 int parid, pos_type posstart, pos_type posend,
-                 Buffer const * buf = 0);
+                 Buffer const * buf = 0);
        ErrorItem();
 };
 
@@ -42,7 +46,7 @@ public:
 class ErrorList : private std::vector<ErrorItem>
 {
 public:
-       ErrorList() : std::vector<ErrorItem> () {};
+       ErrorList() : std::vector<ErrorItem> () {}
 
        using std::vector<ErrorItem>::push_back;
        using std::vector<ErrorItem>::end;