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 <boost/smart_ptr.hpp>
17 #include "support/smart_ptr.h"
24 #include "FormMathsPanel.h"
27 * This class provides an XForms implementation of a maths bitmap form.
29 class FormMathsBitmap : public FormMathsSub {
30 friend class FormMathsPanel;
34 typedef lyx::shared_c_ptr<FL_OBJECT> bm_ptr;
36 FormMathsBitmap(LyXView *, Dialogs * d, FormMathsPanel const &,
37 std::vector<string> const &);
39 void addBitmap(int, int, int, int, int, unsigned char const *,
44 int GetIndex(FL_OBJECT *);
51 bool input(FL_OBJECT *, long);
53 /// Pointer to the actual instantiation of the xforms form
54 virtual FL_FORM * form() const;
56 /// The latex names associated with each symbol
57 std::vector<string> latex_;
58 /// The latex name chosen
60 /// Real GUI implementation
63 std::vector<bm_ptr> bitmaps_;
78 #endif // FORM_MATHSBITMAP_H