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