2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
19 #include FORMS_H_LOCATION
34 This class is the form containing the view of the buffer. The actual buffer
35 view is supposed (at least IMHO) to be another class, that shows its output
36 in one or more LyXView's.
38 class LyXView : public SigC::Object {
41 LyXView(int w, int h);
46 /// Where to place the form.
47 void setPosition(int, int);
49 /// Show the main form.
50 void show(int, int, char const * t = "LyX");
52 /// init (should probably be removed later) (Lgb)
55 /// Redraw the main form.
58 /// returns the buffer currently shown in the main form.
59 Buffer * buffer() const;
62 BufferView * view() const;
64 /// returns a pointer to the form.
65 FL_FORM * getForm() const;
67 /// return a pointer to the toolbar
68 Toolbar * getToolbar() const;
70 /// return a pointer to the lyxfunc
71 LyXFunc * getLyXFunc() const;
73 /// return a pointer to the minibuffer
74 MiniBuffer * getMiniBuffer() const;
77 Menus * getMenus() const;
80 Intl * getIntl() const;
83 Dialogs * getDialogs() { return dialogs_; }
86 void updateLayoutChoice();
88 /// Updates the title of the window
89 void updateWindowTitle();
91 /// Reset autosave timer
92 void resetAutosaveTimer();
99 MiniBuffer * minibuffer;
107 /** This is supposed to be a pointer or a list of pointers to the
108 BufferViews currently being shown in the LyXView. So far
109 this is not used, but that should change pretty soon. (Lgb) */
110 BufferView * bufferview;
112 void invalidateLayoutChoice();
114 void UpdateDocumentClassChoice();
117 static int KeyPressMask_raw_callback(FL_FORM *, void * xev);
118 /** This callback is run when a close event is sent from the
120 static int atCloseMainFormCB(FL_FORM *, void *);
125 Timeout autosave_timeout;
126 /// makes the main form.
127 void create_form_form_main(int width, int height);
128 /// A pointer to the form.
130 /** The last textclass layout list in the layout choice selector
131 This should probably be moved to the toolbar, but for now it's