]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/XFormsView.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / XFormsView.C
index 4c9595a68a360a75b274804586184f0244b53f5e..e0b7208c1692f13299fc623ec013e5a9017436d6 100644 (file)
 
 #include <boost/bind.hpp>
 
-using namespace lyx::support;
+using lyx::support::LibFileSearch;
 
 using std::abs;
 using std::endl;
+using std::string;
 
 
 //extern void AutoSave(BufferView *);
@@ -54,12 +55,15 @@ XFormsView::XFormsView(int width, int height)
        create_form_form_main(width, height);
        fl_set_form_atclose(getForm(), C_XFormsView_atCloseMainFormCB, 0);
 
-       view_state_con = view_state_changed.connect(boost::bind(&XFormsView::show_view_state, this));
-       focus_con = focus_command_buffer.connect(boost::bind(&XMiniBuffer::focus, minibuffer_.get()));
+       view_state_con =
+               view_state_changed.connect(boost::bind(&XFormsView::show_view_state, this));
+       focus_con =
+               focus_command_buffer.connect(boost::bind(&XMiniBuffer::focus, minibuffer_.get()));
 
        // Make sure the buttons are disabled if needed.
        updateToolbar();
-       redraw_con = getDialogs().redrawGUI().connect(boost::bind(&XFormsView::redraw, this));
+       redraw_con =
+               getDialogs().redrawGUI().connect(boost::bind(&XFormsView::redraw, this));
 }
 
 
@@ -187,13 +191,13 @@ void XFormsView::message(string const & str)
 
 void XFormsView::clearMessage()
 {
-       message(getLyXFunc().view_status_message());
+       message(getLyXFunc().viewStatusMessage());
 }
 
 
 void XFormsView::show_view_state()
 {
-       message(getLyXFunc().view_status_message());
+       message(getLyXFunc().viewStatusMessage());
 }