]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlError.C
two patches from john
[lyx.git] / src / frontends / controllers / ControlError.C
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlError.C
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #ifdef __GNUG__
15 #pragma implementation
16 #endif
17
18 #include <config.h>
19
20 #include "ViewBase.h"
21 #include "ButtonControllerBase.h"
22 #include "ControlError.h"
23 #include "ControlInset.tmpl"
24 #include "Dialogs.h"
25 #include "LyXView.h"
26 #include "buffer.h"
27 #include "insets/inseterror.h"
28
29
30 ControlError::ControlError(LyXView & lv, Dialogs & d)
31         : ControlInset<InsetError, string>(lv, d)
32 {
33         d_.showError.connect(SigC::slot(this, &ControlError::showInset));
34 }
35
36
37 string const ControlError::getParams(InsetError const & inset)
38 {
39         return inset.getContents();
40 }
41