]> git.lyx.org Git - features.git/blob - src/frontends/xforms/FormLog.C
change "support/std_sstream.h" to <sstream>
[features.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 "lyx_forms.h"
18
19 #include <sstream>
20
21 namespace lyx {
22 namespace frontend {
23
24 FormLog::FormLog(Dialog & parent)
25         : FormController<ControlLog, FormBrowser>(parent, "")
26 {}
27
28
29 void FormLog::update()
30 {
31         setTitle(controller().title());
32
33         std::ostringstream ss;
34         controller().getContents(ss);
35
36         fl_clear_browser(dialog_->browser);
37         fl_add_browser_line(dialog_->browser, ss.str().c_str());
38 }
39
40 } // namespace frontend
41 } // namespace lyx