FL_FORM * FormMathsBitmap::form() const
{
- return form_;
+ return form_.get();
}
h_+= 50; // Allow room for a Close button
- form_ = fl_bgn_form(FL_UP_BOX, w_, h_);
+ form_.reset(fl_bgn_form(FL_UP_BOX, w_, h_));
form_->u_vdata = this;
FL_OBJECT * obj = fl_add_box(FL_UP_BOX, 0, 0, w_, h_, "");
it < bitmaps_.end(); ++it) {
FL_OBJECT * obj = it->get();
- fl_add_object(form_, obj);
+ fl_add_object(form_.get(), obj);
bc().addReadOnly(obj);
y_ = max(y_, obj->y + obj->h);
#define FORM_MATHSBITMAP_H
#include <vector>
-//#include <boost/smart_ptr.hpp>
#include "support/smart_ptr.h"
#ifdef __GNUG__
* This class provides an XForms implementation of a maths bitmap form.
*/
class FormMathsBitmap : public FormMathsSub {
+ ///
friend class FormMathsPanel;
- public:
+public:
///
typedef lyx::shared_c_ptr<FL_OBJECT> bm_ptr;
+ ///
+ typedef lyx::shared_c_ptr<FL_FORM> fl_ptr;
+
///
FormMathsBitmap(LyXView *, Dialogs * d, FormMathsPanel const &,
std::vector<string> const &);
/// The latex name chosen
string latex_chosen_;
/// Real GUI implementation
- FL_FORM * form_;
+ fl_ptr form_;
/// The bitmap tables
std::vector<bm_ptr> bitmaps_;