3 * \file FormMathsBitmap.h
4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author Alejandro Aguilar Sierra
8 * \author John Levon, moz@compsoc.man.ac.uk
9 * \author Angus Leeming, a.leeming@ic.ac.uk
12 #ifndef FORM_MATHSBITMAP_H
13 #define FORM_MATHSBITMAP_H
16 #include "support/smart_ptr.h"
23 #include "FormMathsPanel.h"
26 * This class provides an XForms implementation of a maths bitmap form.
28 class FormMathsBitmap : public FormMathsSub {
30 friend class FormMathsPanel;
34 typedef lyx::shared_c_ptr<FL_OBJECT> bm_ptr;
36 typedef lyx::shared_c_ptr<FL_FORM> fl_ptr;
39 FormMathsBitmap(LyXView *, Dialogs * d, FormMathsPanel const &,
40 string const &, std::vector<string> const &);
44 void addBitmap(int, int, int, int, int, unsigned char const *,
49 int GetIndex(FL_OBJECT *);
56 bool input(FL_OBJECT *, long);
58 /// Pointer to the actual instantiation of the xforms form
59 virtual FL_FORM * form() const;
61 /// The latex names associated with each symbol
62 std::vector<string> latex_;
63 /// The latex name chosen
65 /// Real GUI implementation
68 std::vector<bm_ptr> bitmaps_;
83 #endif // FORM_MATHSBITMAP_H