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"
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 prohibitInput() const;
50 virtual void allowInput() const;
52 /// callback for close event from window manager
53 static int atCloseMainFormCB(FL_FORM *, void *);
57 * setWindowTitle - set title of window
58 * @param t main window title
59 * @param it iconified (short) title
61 virtual void setWindowTitle(string const & t, string const & it);
63 /// makes the main form.
64 void create_form_form_main(int width, int height);
66 boost::scoped_ptr<FL_FORM> form_;