3 * \file FormMathsBitmap.h
4 * Read the file COPYING
6 * \author Alejandro Aguilar Sierra
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS
13 #ifndef FORM_MATHSBITMAP_H
14 #define FORM_MATHSBITMAP_H
17 #include "FormMathsPanel.h"
19 #include <boost/shared_ptr.hpp>
28 * This class provides an XForms implementation of a maths bitmap form.
30 class FormMathsBitmap : public FormMathsSub {
32 friend class FormMathsPanel;
36 typedef boost::shared_ptr<FL_OBJECT> bm_ptr;
38 typedef boost::shared_ptr<FL_FORM> fl_ptr;
41 FormMathsBitmap(LyXView &, Dialogs & d, FormMathsPanel const &,
42 string const &, std::vector<string> const &);
46 void addBitmap(int, int, int, int, int, unsigned char const *,
51 int GetIndex(FL_OBJECT *);
58 bool input(FL_OBJECT *, long);
60 /// Pointer to the actual instantiation of the xforms form
61 virtual FL_FORM * form() const;
63 /// The latex names associated with each symbol
64 std::vector<string> latex_;
65 /// The latex name chosen
67 /// Real GUI implementation
70 std::vector<bm_ptr> bitmaps_;
85 #endif // FORM_MATHSBITMAP_H