2 * \file FormMathsBitmap.h
3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author Alejandro Aguilar Sierra
7 * \author John Levon, moz@compsoc.man.ac.uk
8 * \author Angus Leeming, a.leeming@ic.ac.uk
11 #ifndef FORM_MATHSBITMAP_H
12 #define FORM_MATHSBITMAP_H
15 #include <boost/smart_ptr.hpp>
22 #include "FormMathsPanel.h"
25 * This class provides an XForms implementation of a maths bitmap form.
27 class FormMathsBitmap : public FormMathsSub {
28 friend class FormMathsPanel;
32 typedef boost::shared_ptr<FL_OBJECT> bm_ptr;
34 FormMathsBitmap(LyXView *, Dialogs * d, FormMathsPanel const &,
35 std::vector<string> const &);
37 void addBitmap(int, int, int, int, int, unsigned char const *,
42 int GetIndex(FL_OBJECT *);
49 bool input(FL_OBJECT *, long);
51 /// Pointer to the actual instantiation of the xforms form
52 virtual FL_FORM * form() const;
54 /// The latex names associated with each symbol
55 std::vector<string> latex_;
56 /// The latex name chosen
58 /// Real GUI implementation
61 std::vector<bm_ptr> bitmaps_;
76 #endif // FORM_MATHSBITMAP_H