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
17 #include "FormDialogView.h"
22 BitmapStore(int nt_in, int nx_in, int ny_in, int bw_in, int bh_in,
23 unsigned char const * data_in, bool vert_in)
24 : nt(nt_in), nx(nx_in), ny(ny_in), bw(bw_in), bh(bh_in),
25 data(data_in), vert(vert_in)
33 unsigned char const * data;
38 struct FD_maths_bitmap
42 FL_OBJECT * button_close;
47 * This class provides an XForms implementation of a maths bitmap form.
53 : public FormController<ControlMath, FormView<FD_maths_bitmap> > {
56 FormMathsBitmap(Dialog &, string const &, std::vector<string> const &);
58 void addBitmap(BitmapStore const &);
62 int GetIndex(FL_OBJECT *);
69 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
71 virtual void update() {}
74 FL_OBJECT * buildBitmap(BitmapStore const & bmstore);
76 /// The latex names associated with each symbol
77 std::vector<string> latex_;
78 /// The latex name chosen
81 /** Temporary store for bitmap data passed to addBitmap()
82 * but before the FL_OBJECT is created in build().
84 std::vector<BitmapStore> bitmaps_;
99 #endif // FORM_MATHSBITMAP_H