3 * \file ControlErrorList.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alfredo Braunstein
9 * Full author contact details are available in file CREDITS
12 #ifndef CONTROLERRORLIST_H
13 #define CONTROLERRORLIST_H
21 /** A controller for the ErrorList dialog.
25 class ControlErrorList : public Dialog::Controller {
27 /// A class to hold an error item
30 std::string description;
34 ErrorItem(string const &, string const &, int, int, int);
37 ControlErrorList(Dialog & parent);
39 virtual bool isBufferDependent() const { return true; }
41 virtual bool initialiseParams(const string & params);
43 virtual void ControlErrorList::clearParams();
45 virtual void ControlErrorList::dispatchParams() {}
47 /// get the current item
48 int currentItem() const;
49 /// goto this error in the parent bv
51 /// return the parent document name
52 string const & docName();
53 /// rescan the log file and rebuild the error list
58 std::vector<ErrorItem> const & ErrorList() const;
61 std::vector<ErrorItem> ErrorList_;
68 #endif // CONTROLERRORLIST_H