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
19 #include <boost/shared_ptr.hpp>
24 BitmapStore(int nt_in, int nx_in, int ny_in, int bw_in, int bh_in,
25 unsigned char const * data_in, bool vert_in)
26 : nt(nt_in), nx(nx_in), ny(ny_in), bw(bw_in), bh(bh_in),
27 data(data_in), vert(vert_in)
35 unsigned char const * data;
40 struct FD_maths_bitmap
44 FL_OBJECT * button_close;
49 * This class provides an XForms implementation of a maths bitmap form.
54 class FormMathsBitmap : public FormCB<ControlMathSub, FormDB<FD_maths_bitmap> >
58 FormMathsBitmap(string const &, std::vector<string> const &);
60 void addBitmap(int, int, int, int, int, unsigned char 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