4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
16 #include "forms_fwd.h"
18 #include "frontends/LyXView.h"
19 #include <X11/Xlib.h> // for Pixmap
24 * XFormsView - xforms implementation of LyXView
26 * xforms-private implementation of the main LyX window.
28 class XFormsView : public LyXView {
30 /// create a main window of the given dimensions
31 XFormsView(int w, int h);
36 * show - display the top-level window
37 * @param xpos requested x position (or 0)
38 * @param xpos requested y position (or 0)
39 * @param title window title
41 void show(int xpos, int ypos, string const & t = string("LyX"));
43 /// get the xforms main form
44 FL_FORM * getForm() const;
45 /// redraw the main form.
46 virtual void redraw();
48 virtual void busy(bool) const;
50 /// callback for close event from window manager
51 static int atCloseMainFormCB(FL_FORM *, void *);
53 /// display a status message
54 virtual void message(string const & str);
58 * setWindowTitle - set title of window
59 * @param t main window title
60 * @param it iconified (short) title
62 virtual void setWindowTitle(string const & t, string const & it);
64 /// update the minibuffer state message
65 void show_view_state();
67 /// makes the main form.
68 void create_form_form_main(int width, int height);
70 boost::scoped_ptr<XMiniBuffer> minibuffer_;
72 boost::signals::connection view_state_con;
74 boost::signals::connection focus_con;
76 boost::signals::connection redraw_con;
80 /// Passed to the window manager to give a pretty little symbol ;-)