]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlErrorList.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlErrorList.h
1 // -*- C++ -*-
2 /**
3  * \file ControlErrorList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alfredo Braunstein
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLERRORLIST_H
13 #define CONTROLERRORLIST_H
14
15 #include "errorlist.h"
16 #include "Dialog.h"
17
18 namespace lyx {
19 namespace frontend {
20
21 /** A controller for the ErrorList dialog.
22  */
23 class ControlErrorList : public Dialog::Controller {
24 public:
25         ///
26         ControlErrorList(Dialog & parent);
27         ///
28         virtual bool isBufferDependent() const { return true; }
29         ///
30         virtual bool initialiseParams(std::string const & data);
31         ///
32         virtual void clearParams();
33         ///
34         virtual void dispatchParams() {}
35
36         /// goto this error in the parent bv
37         void goTo(int item);
38         /// return the parent document name
39         std::string const & name();
40         ///
41         ErrorList const & errorList() const;
42 private:
43         ///
44         ErrorList errorlist_;
45         ///
46         std::string name_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // CONTROLERRORLIST_H