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 std::vector<string> const &);
42 void addBitmap(int, int, int, int, int, unsigned char const *,
47 int GetIndex(FL_OBJECT *);
54 bool input(FL_OBJECT *, long);
56 /// Pointer to the actual instantiation of the xforms form
57 virtual FL_FORM * form() const;
59 /// The latex names associated with each symbol
60 std::vector<string> latex_;
61 /// The latex name chosen
63 /// Real GUI implementation
66 std::vector<bm_ptr> bitmaps_;
81 #endif // FORM_MATHSBITMAP_H