]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormLog.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormLog.C
1 /**
2  * \file FormLog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "FormLog.h"
14 #include "ControlLog.h"
15 #include "forms/form_browser.h"
16
17 #include "support/std_sstream.h"
18
19 #include "lyx_forms.h"
20
21
22 FormLog::FormLog(Dialog & parent)
23         : FormController<ControlLog, FormBrowser>(parent, "")
24 {}
25
26
27 void FormLog::update()
28 {
29         setTitle(controller().title());
30
31         std::ostringstream ss;
32         controller().getContents(ss);
33
34         fl_clear_browser(dialog_->browser);
35         fl_add_browser_line(dialog_->browser, ss.str().c_str());
36 }