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 <leeming@lyx.org>
12 #ifndef FORM_MATHSBITMAP_H
13 #define FORM_MATHSBITMAP_H
16 #include "FormMathsPanel.h"
18 #include <boost/shared_ptr.hpp>
27 * This class provides an XForms implementation of a maths bitmap form.
29 class FormMathsBitmap : public FormMathsSub {
31 friend class FormMathsPanel;
35 typedef boost::shared_ptr<FL_OBJECT> bm_ptr;
37 typedef boost::shared_ptr<FL_FORM> fl_ptr;
40 FormMathsBitmap(LyXView &, Dialogs & d, FormMathsPanel const &,
41 string const &, std::vector<string> const &);
45 void addBitmap(int, int, int, int, int, unsigned char const *,
50 int GetIndex(FL_OBJECT *);
57 bool input(FL_OBJECT *, long);
59 /// Pointer to the actual instantiation of the xforms form
60 virtual FL_FORM * form() const;
62 /// The latex names associated with each symbol
63 std::vector<string> latex_;
64 /// The latex name chosen
66 /// Real GUI implementation
69 std::vector<bm_ptr> bitmaps_;
84 #endif // FORM_MATHSBITMAP_H