// -*- 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);
/// The latex name chosen
string latex_chosen_;
/// Real GUI implementation
- FL_FORM * form_;
+ fl_ptr form_;
/// The bitmap tables
std::vector<bm_ptr> bitmaps_;