]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsBitmap.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormMathsBitmap.h
index ff412d00a268a177fc838295b4919dd0462f7ccf..4d9495e630643f724fde6db7245f6eee423e57b3 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file FormMathsBitmap.h
  * Copyright 2001 the LyX Team
@@ -12,7 +13,7 @@
 #define FORM_MATHSBITMAP_H
 
 #include <vector>
-#include <boost/smart_ptr.hpp>
+#include "support/smart_ptr.h"
 
 #ifdef __GNUG__
 #pragma interface
  * 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 boost::shared_ptr<FL_OBJECT> bm_ptr;
+       typedef lyx::shared_c_ptr<FL_FORM> fl_ptr;
+       
        ///
        FormMathsBitmap(LyXView *, Dialogs * d, FormMathsPanel const &,
                        std::vector<string> const &);
        ///
+       ~FormMathsBitmap();
+       ///
        void addBitmap(int, int, int, int, int, unsigned char const *,
                       bool = true);
 
@@ -41,7 +48,7 @@ private:
        ///
        int GetIndex(FL_OBJECT *);
 
-       /// Build the popup
+       /// Build the dialog
        virtual void build();
        /// apply the data
        virtual void apply();
@@ -56,7 +63,7 @@ private:
        /// The latex name chosen
        string latex_chosen_;
        /// Real GUI implementation
-       FL_FORM * form_;
+       fl_ptr form_;
        /// The bitmap tables
        std::vector<bm_ptr> bitmaps_;