3 * \file FormMathsBitmap.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS
14 #ifndef FORM_MATHSBITMAP_H
15 #define FORM_MATHSBITMAP_H
18 #include "FormMathsPanel.h"
20 #include <boost/shared_ptr.hpp>
29 * This class provides an XForms implementation of a maths bitmap form.
31 class FormMathsBitmap : public FormMathsSub {
33 friend class FormMathsPanel;
37 typedef boost::shared_ptr<FL_OBJECT> bm_ptr;
39 typedef boost::shared_ptr<FL_FORM> fl_ptr;
42 FormMathsBitmap(LyXView &, Dialogs & d, FormMathsPanel const &,
43 string const &, std::vector<string> const &);
47 void addBitmap(int, int, int, int, int, unsigned char const *,
52 int GetIndex(FL_OBJECT *);
59 bool input(FL_OBJECT *, long);
61 /// Pointer to the actual instantiation of the xforms form
62 virtual FL_FORM * form() const;
64 /// The latex names associated with each symbol
65 std::vector<string> latex_;
66 /// The latex name chosen
68 /// Real GUI implementation
71 std::vector<bm_ptr> bitmaps_;
86 #endif // FORM_MATHSBITMAP_H