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
37 FL_OBJECT * timer_autosave;
41 FL_OBJECT * timer_update;
53 This class is the form containing the view of the buffer. The actual buffer
54 view is supposed (at least IMHO) to be another class, that shows its output
55 in one or more LyXView's.
60 LyXView(int w, int h);
65 /// Where to place the form.
66 void setPosition(int, int);
68 /// Show the main form.
69 void show(int, int, char const * t = "LyX");
71 /// init (should probably be removed later) (Lgb)
74 /// Redraw the main form.
77 /// returns the buffer currently shown in the main form.
78 Buffer * buffer() const;
81 BufferView * view() const;
83 /// returns a pointer to the main form.
84 FD_form_main * getMainForm() const;
86 /// returns a pointer to the form.
87 FL_FORM * getForm() const;
89 /// return a pointer to the toolbar
90 Toolbar * getToolbar() const;
92 /// return a pointer to the lyxfunc
93 LyXFunc * getLyXFunc() const;
95 /// return a pointer to the minibuffer
96 MiniBuffer * getMiniBuffer() const;
99 Menus * getMenus() const;
102 Intl * getIntl() const;
105 void updateLayoutChoice();
107 /// Updates the title of the window
108 void updateWindowTitle();
110 /// Reset autosave timer
111 void resetAutosaveTimer();
118 MiniBuffer * minibuffer;
124 /** This is supposed to be a pointer or a list of pointers to the
125 BufferViews currently being shown in the LyXView. So far
126 this is not used, but that should change pretty soon. (Lgb) */
127 BufferView * bufferview;
129 void invalidateLayoutChoice();
131 void UpdateDocumentClassChoice();
134 static int KeyPressMask_raw_callback(FL_FORM *, void * xev);
135 /** This callback is run when a close event is sent from the
137 static int atCloseMainFormCB(FL_FORM *, void *);
141 static void UpdateTimerCB(void *);
144 //Timeout update_timeout;
148 Timeout autosave_timeout;
149 /// makes the main form.
150 void create_form_form_main(int width, int height);
151 /// A pointer to the form.
152 FD_form_main * form_main_;
153 /// A pointer to the form.
155 /** The last textclass layout list in the layout choice selector
156 This should probably be moved to the toolbar, but for now it's