]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/XFormsView.C
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / XFormsView.C
index d4c7d4420b403d323cc48b0fa7d328473368aa53..8a3409c5a42031f636d4ed684727d78eb4f878cc 100644 (file)
@@ -5,41 +5,38 @@
  *
  * \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 FORMS_H_LOCATION
 
+#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/Toolbar.h"
-#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 lyx::support::LibFileSearch;
+
 using std::abs;
 using std::endl;
+using std::string;
+
 
 //extern void AutoSave(BufferView *);
 extern void QuitLyX();
 
-// This is very temporary
-BufferView * current_view;
-
 extern "C" {
 
 static
@@ -140,16 +137,16 @@ 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 Toolbar(this, air, 30 + air + bw));
+       toolbar_.reset(new XFormsToolbar(this, air, 30 + air + bw));
+       toolbar_->init();
 
        int const ywork = 60 + 2 * air + bw;
        int const workheight = height - ywork - (25 + 2 * air);
 
        bufferview_.reset(new BufferView(this, air, ywork,
                width - 3 * air, workheight));
-       ::current_view = bufferview_.get();
 
        minibuffer_.reset(new XMiniBuffer(*controlcommand_,
                air, height - (25 + air), width - (2 * air), 25));