]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsPanel.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormMathsPanel.h
1 // -*- C++ -*-
2 /**
3  * \file FormMathsPanel.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  * \author John Levon
9  * \author Angus Leeming 
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 #ifndef FORM_MATHSPANEL_H
15 #define FORM_MATHSPANEL_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "FormBase.h"
22
23 class ControlMath;
24 struct FD_maths_panel;
25 class FormMathsBitmap;
26
27 /**
28  * This class provides an XForms implementation of the maths panel.
29  */
30 class FormMathsPanel : public FormCB<ControlMath, FormDB<FD_maths_panel> > {
31 public:
32         ///
33         FormMathsPanel();
34
35 private:
36         /// Not needed.
37         virtual void apply() {}
38         ///
39         virtual void update() {}
40
41         ///
42         virtual void build();
43         ///
44         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
45
46         /** Add a bitmap dialog to the store of all daughters_ and
47          *  return a pointer to the dialog, so that bitmaps can be added to it.
48          */
49         FormMathsBitmap * addDaughter(void * button, string const & title,
50                                       char const * const * data, int size);
51 };
52
53 #endif //  FORM_MATHSPANEL_H