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_H_LOCATION
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);
34 /// Where to place the form.
35 virtual void setPosition(int, int);
36 /// Show the main form.
37 virtual void show(int, int, string const & t = string("LyX"));
38 /// init (should probably be removed later) (Lgb)
40 /// get the xforms main form
41 FL_FORM * getForm() const;
42 /// redraw the main form.
43 virtual void redraw();
45 virtual void prohibitInput() const;
47 virtual void allowInput() const;
49 /// callback for close event from window manager
50 static int atCloseMainFormCB(FL_FORM *, void *);
54 * setWindowTitle - set title of window
55 * @param t main window title
56 * @param it iconified (short) title
58 virtual void setWindowTitle(string const & t, string const & it);
60 /// makes the main form.
61 void create_form_form_main(int width, int height);
63 boost::scoped_ptr<FL_FORM> form_;