X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ferrorlist.h;h=8c91c42e32a3a3018ce1c6c15506e45b441bf210;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=21a87b08ed14880efb3a09ba67a6e32d5015533d;hpb=ffb610695f141232d287534d29f985acf0ef318d;p=lyx.git diff --git a/src/errorlist.h b/src/errorlist.h index 21a87b08ed..8c91c42e32 100644 --- a/src/errorlist.h +++ b/src/errorlist.h @@ -1,8 +1,4 @@ // -*- C++ -*- - -#ifndef ERRORLIST_H -#define ERRORLIST_H - /** * \file errorlist.h * This file is part of LyX, the document processor. @@ -10,33 +6,40 @@ * * \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/docstring.h" #include +#include + + +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 & error, string const & description, - int parid, int posstart, int posend); + 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 { -public: +public: ErrorList() : std::vector () {}; - ErrorList(Buffer const & buf, TeXErrors const &); using std::vector::push_back; using std::vector::end; @@ -49,5 +52,6 @@ public: }; +} // namespace lyx #endif