]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsBitmap.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormMathsBitmap.h
index 0e820dfeb3d63e8f5c109cb82ce6f1a62f3cb526..e6ff7ace90f66522d88a2cfea07a83a18fd8dea3 100644 (file)
@@ -1,38 +1,48 @@
+// -*- C++ -*-
 /**
  * \file FormMathsBitmap.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author John Levon
+ * \author Angus Leeming 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef FORM_MATHSBITMAP_H
 #define FORM_MATHSBITMAP_H
 
+#include "LString.h"
+#include "FormMathsPanel.h"
+
+#include <boost/shared_ptr.hpp>
+
 #include <vector>
-#include <boost/smart_ptr.hpp>
 
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-#include "LString.h"
-#include "FormMathsPanel.h"
-
-/** 
+/**
  * This class provides an XForms implementation of a maths bitmap form.
  */
 class FormMathsBitmap : public FormMathsSub {
+       ///
        friend class FormMathsPanel;
 
-  public:
+public:
        ///
        typedef boost::shared_ptr<FL_OBJECT> bm_ptr;
        ///
-       FormMathsBitmap(LyXView *, Dialogs * d, FormMathsPanel const &,
-                       std::vector<string> const &);
+       typedef boost::shared_ptr<FL_FORM> fl_ptr;
+
+       ///
+       FormMathsBitmap(LyXView &, Dialogs & d, FormMathsPanel const &,
+                       string const &, std::vector<string> const &);
+       ///
+       ~FormMathsBitmap();
        ///
        void addBitmap(int, int, int, int, int, unsigned char const *,
                       bool = true);
@@ -56,7 +66,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_;