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
19 #include "forms_fwd.h"
21 #include "frontends/LyXView.h"
26 * XFormsView - xforms implementation of LyXView
28 * xforms-private implementation of the main LyX window.
30 class XFormsView : public LyXView {
32 /// create a main window of the given dimensions
33 XFormsView(int w, int h);
38 * show - display the top-level window
39 * @param xpos requested x position (or 0)
40 * @param xpos requested y position (or 0)
41 * @param title window title
43 void show(int xpos, int ypos, string const & t = string("LyX"));
45 /// get the xforms main form
46 FL_FORM * getForm() const;
47 /// redraw the main form.
48 virtual void redraw();
50 virtual void prohibitInput() const;
52 virtual void allowInput() const;
54 /// callback for close event from window manager
55 static int atCloseMainFormCB(FL_FORM *, void *);
57 /// display a status message
58 virtual void message(string const & str);
62 * setWindowTitle - set title of window
63 * @param t main window title
64 * @param it iconified (short) title
66 virtual void setWindowTitle(string const & t, string const & it);
68 /// update the minibuffer state message
69 void show_view_state();
71 /// makes the main form.
72 void create_form_form_main(int width, int height);
74 boost::scoped_ptr<XMiniBuffer> minibuffer_;
76 boost::signals::connection view_state_con;
78 boost::signals::connection focus_con;
80 boost::signals::connection redraw_con;