2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
19 #include "forms_fwd.h"
21 #include "frontends/LyXView.h"
27 * XFormsView - xforms implementation of LyXView
29 * xforms-private implementation of the main LyX window.
31 class XFormsView : public LyXView {
33 /// create a main window of the given dimensions
34 XFormsView(int w, int h);
39 * show - display the top-level window
40 * @param xpos requested x position (or 0)
41 * @param xpos requested y position (or 0)
42 * @param title window title
44 void show(int xpos, int ypos, string const & t = string("LyX"));
46 /// get the xforms main form
47 FL_FORM * getForm() const;
48 /// redraw the main form.
49 virtual void redraw();
51 virtual void prohibitInput() const;
53 virtual void allowInput() const;
55 /// callback for close event from window manager
56 static int atCloseMainFormCB(FL_FORM *, void *);
58 /// display a status message
59 virtual void message(string const & str);
63 * setWindowTitle - set title of window
64 * @param t main window title
65 * @param it iconified (short) title
67 virtual void setWindowTitle(string const & t, string const & it);
69 /// update the minibuffer state message
70 void show_view_state();
72 /// makes the main form.
73 void create_form_form_main(Dialogs & d, int width, int height);
75 boost::scoped_ptr<XMiniBuffer> minibuffer_;
77 boost::signals::connection view_state_con;
79 boost::signals::connection focus_con;
81 boost::signals::connection redraw_con;