]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlErrorList.h
Overhaul the branches code.
[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
19
20 /** A controller for the ErrorList dialog.
21  */
22
23
24 class ControlErrorList : public Dialog::Controller {
25 public:
26         ///
27         ControlErrorList(Dialog & parent);
28         ///
29         virtual bool isBufferDependent() const { return true; }
30         ///
31         virtual bool initialiseParams(std::string const & data);
32         ///
33         virtual void clearParams();
34         ///
35         virtual void dispatchParams() {}
36
37         /// goto this error in the parent bv
38         void goTo(int item);
39         /// return the parent document name
40         std::string const & name();
41         ///
42         ErrorList const & errorList() const;
43 private:
44         ///
45         ErrorList errorlist_;
46         ///
47         std::string name_;
48 };
49
50 #endif // CONTROLERRORLIST_H