]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlError.C
handle some tmpl files in a more sane way
[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 #include <config.h>
15
16 #ifdef __GNUG__
17 #pragma implementation
18 #endif
19
20 #include "ControlError.h"
21 #include "ViewBase.h"
22 #include "ButtonControllerBase.h"
23 #include "Dialogs.h"
24 #include "buffer.h"
25 #include "insets/inseterror.h"
26
27 #include "frontends/LyXView.h"
28
29 #include <boost/bind.hpp>
30
31 ControlError::ControlError(LyXView & lv, Dialogs & d)
32         : ControlInset<InsetError, string>(lv, d)
33 {
34         d_.showError = boost::bind(&ControlError::showInset, this, _1);
35 }
36
37
38 string const ControlError::getParams(InsetError const & inset)
39 {
40         return inset.getContents();
41 }