]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/XFormsView.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / XFormsView.C
index 948f47f44b50c9c0518bb1734b1bc378199908fb..e0b7208c1692f13299fc623ec013e5a9017436d6 100644 (file)
@@ -5,37 +5,34 @@
  *
  * \author unknown
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-
 #include "XFormsView.h"
-#include "lyx_forms.h"
 
-#include "XMiniBuffer.h"
+#include "XFormsMenubar.h"
 #include "XFormsToolbar.h"
+#include "XMiniBuffer.h"
+
+#include "BufferView.h"
 #include "debug.h"
-#include "intl.h"
-#include "lyxrc.h"
-#include "support/filetools.h"        // OnlyFilename()
-#include "frontends/Menubar.h"
-#include "frontends/Timeout.h"
-#include "frontends/Dialogs.h"
-#include "MenuBackend.h"
-#include "ToolbarBackend.h"
 #include "lyxfunc.h"
-#include "bufferview_funcs.h"
-#include "BufferView.h"
+#include "MenuBackend.h"
+
+#include "frontends/Dialogs.h"
+
+#include "support/filetools.h"        // OnlyFilename()
 
 #include <boost/bind.hpp>
-#include <boost/signals/connection.hpp>
 
-using namespace lyx::support;
+using lyx::support::LibFileSearch;
 
 using std::abs;
 using std::endl;
+using std::string;
+
 
 //extern void AutoSave(BufferView *);
 extern void QuitLyX();
@@ -58,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));
 }
 
 
@@ -140,7 +140,7 @@ void XFormsView::create_form_form_main(int width, int height)
        int const air = 2;
        int const bw = abs(fl_get_border_width());
 
-       menubar_.reset(new Menubar(this, menubackend));
+       menubar_.reset(new XFormsMenubar(this, menubackend));
 
        toolbar_.reset(new XFormsToolbar(this, air, 30 + air + bw));
        toolbar_->init();
@@ -191,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());
 }