3 * \file FormMathsBitmap.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS
14 #ifndef FORM_MATHSBITMAP_H
15 #define FORM_MATHSBITMAP_H
18 #include "FormDialogView.h"
19 #include <boost/shared_ptr.hpp>
25 BitmapStore(int nt_in, int nx_in, int ny_in, int bw_in, int bh_in,
26 unsigned char const * data_in, bool vert_in)
27 : nt(nt_in), nx(nx_in), ny(ny_in), bw(bw_in), bh(bh_in),
28 data(data_in), vert(vert_in)
36 unsigned char const * data;
41 struct FD_maths_bitmap
45 FL_OBJECT * button_close;
50 * This class provides an XForms implementation of a maths bitmap form.
56 : public FormController<ControlMath, FormView<FD_maths_bitmap> > {
59 FormMathsBitmap(Dialog &, string const &, std::vector<string> const &);
61 void addBitmap(BitmapStore const &);
65 int GetIndex(FL_OBJECT *);
72 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
74 virtual void update() {}
77 FL_OBJECT * buildBitmap(BitmapStore const & bmstore);
79 /// The latex names associated with each symbol
80 std::vector<string> latex_;
81 /// The latex name chosen
84 /** Temporary store for bitmap data passed to addBitmap()
85 * but before the FL_OBJECT is created in build().
87 std::vector<BitmapStore> bitmaps_;
102 #endif // FORM_MATHSBITMAP_H