// -*- C++ -*-
/**
* \file FormMathsPanel.h
- * Copyright 2001 The LyX Team.
- * See 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_MATHSPANEL_H
#pragma interface
#endif
+#include "MathsCallbacks.h"
#include "FormBaseDeprecated.h"
-#include "MathsSymbols.h"
#include <boost/scoped_ptr.hpp>
class FormMathsSpace;
class FormMathsStyle;
class FormMathsSub;
-struct FD_form_maths_panel;
+struct FD_maths_panel;
/**
* This class provides an XForms implementation of the maths panel.
class FormMathsPanel : public FormBaseBD {
public:
///
- FormMathsPanel(LyXView *, Dialogs *);
+ FormMathsPanel(LyXView &, Dialogs &);
///
void setActive(FormMathsSub *) const;
- /// dispatch a symbol insert
- void insertSymbol(string const & sym, bool bs = true) const;
/// dispatch an LFUN:
void dispatchFunc(kb_action action) const;
+ /// dispatch a symbol insert
+ void insertSymbol(string const & sym, bool bs = true) const;
private:
/// Pointer to the actual instantiation of the ButtonController.
virtual xformsBC & bc();
/// Pointer to the actual instantiation of the xforms form
virtual FL_FORM * form() const;
- // build the panels
- FD_form_maths_panel * build_maths_panel();
+ // Real GUI implementation
+ boost::scoped_ptr<FD_maths_panel> dialog_;
/// send LFUN_MATH_DISPLAY
void mathDisplay() const;
- // Real GUI implementation
- boost::scoped_ptr<FD_form_maths_panel> dialog_;
-
/// Subdialogs
boost::scoped_ptr<FormMathsDeco> deco_;
boost::scoped_ptr<FormMathsDelim> delim_;
public:
///
- FormMathsSub(LyXView *, Dialogs *, FormMathsPanel const &,
- string const &, bool allowResize=true);
+ FormMathsSub(LyXView &, Dialogs &, FormMathsPanel const &,
+ string const &, bool allowResize = true);
protected:
/// Pointer to the actual instantiation of the ButtonController.