X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ferrorlist.h;h=bd9bd1e330a2d136bb258b62ea81157ca06ac173;hb=87cd77d1fc819bc8f14982fc6b20091720c011f5;hp=a10225790c24c7a11cd6c0c568a3af02ef48e23e;hpb=2a882902eb6a2633ed419556f6a630e0a048e154;p=lyx.git diff --git a/src/errorlist.h b/src/errorlist.h index a10225790c..bd9bd1e330 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,37 @@ * * \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/types.h" #include -#include "support/lstrings.h" +#include class Buffer; -class TeXErrors; /// A class to hold an error item -struct ErrorItem { - string error; - string description; +class ErrorItem { +public: + std::string error; + std::string description; int par_id; - int pos_start; - int pos_end; - ErrorItem(string const &, string const &, - int, int, int); + 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 { -public: +public: ErrorList() : std::vector () {}; - ErrorList(Buffer const & buf, TeXErrors const &); using std::vector::push_back; using std::vector::end; @@ -48,6 +48,4 @@ public: using std::vector::const_iterator; }; - - #endif