]> git.lyx.org Git - lyx.git/blob - src/XFormsView.h
work around for bug reported by Mario Morandini
[lyx.git] / src / XFormsView.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LyXView_H
13 #define LyXView_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include FORMS_H_LOCATION
20
21 #include "LyXView.h"
22
23 /**
24   This class is the form containing the view of the buffer. The actual buffer
25   view is supposed (at least IMHO) to be another class, that shows its output
26   in one or more LyXView's.
27  */
28 class XFormsView : public LyXView {
29 public:
30         /// constructor
31         XFormsView(int w, int h);
32         /// destructor
33         ~XFormsView();
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)
39         virtual void init();
40         /// Redraw the main form.
41         virtual void redraw();
42         /// returns a pointer to the form.
43         FL_FORM * getForm() const;
44         ///
45         virtual void prohibitInput() const;
46         ///
47         virtual void allowInput() const;
48         /** This callback is run when a close event is sent from the
49           window manager. */
50         static int atCloseMainFormCB(FL_FORM *, void *);
51 private:
52         /// pass the title, and the iconified title
53         virtual void setWindowTitle(string const &, string const &);
54         /// makes the main form.
55         void create_form_form_main(int width, int height);
56         /// A pointer to the form.
57         FL_FORM * form_;
58 };
59 #endif