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 * ====================================================== */
20 #include FORMS_H_LOCATION
25 This class is the form containing the view of the buffer. The actual buffer
26 view is supposed (at least IMHO) to be another class, that shows its output
27 in one or more LyXView's.
29 class XFormsView : public LyXView {
32 XFormsView(int w, int h);
35 /// Where to place the form.
36 virtual void setPosition(int, int);
37 /// Show the main form.
38 virtual void show(int, int, string const & t = string("LyX"));
39 /// init (should probably be removed later) (Lgb)
41 /// Redraw the main form.
42 virtual void redraw();
43 /// returns a pointer to the form.
44 FL_FORM * getForm() const;
46 virtual void prohibitInput() const;
48 virtual void allowInput() const;
49 /** This callback is run when a close event is sent from the
51 static int atCloseMainFormCB(FL_FORM *, void *);
54 virtual void setWindowTitle(string const &);
55 /// makes the main form.
56 void create_form_form_main(int width, int height);
57 /// A pointer to the form.