]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsDelim.h
Remove some xforms cruft from BufferView.h BufferView_pimpl.h.
[lyx.git] / src / frontends / xforms / FormMathsDelim.h
1 /** 
2  * \file FormMathsDelim.h
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  * 
6  * \author Alejandro Aguilar Sierra 
7  * \author John Levon, moz@compsoc.man.ac.uk
8  * \author Angus Leeming, a.leeming@ic.ac.uk
9  */
10
11 #ifndef FORM_MATHSDELIM_H
12 #define FORM_MATHSDELIM_H
13
14 #include <boost/smart_ptr.hpp>
15
16 #ifdef __GNUG_
17 #pragma interface
18 #endif
19
20 #include "FormMathsPanel.h"
21
22 struct FD_form_maths_delim;
23
24 /** 
25  * This class provides an XForms implementation of the maths delim.
26  */
27 class FormMathsDelim : public FormMathsSub {
28 public:
29         ///
30         FormMathsDelim(LyXView *, Dialogs *, FormMathsPanel const &);
31
32 private:
33         /// Build the dialog
34         virtual void build();
35         /// input handler
36         virtual bool input(FL_OBJECT *, long);
37         /// Apply from dialog (modify or create inset)
38         virtual void apply();
39
40         /// Pointer to the actual instantiation of the xforms form
41         virtual FL_FORM * form() const;
42
43         // build the form
44         FD_form_maths_delim * build_maths_delim();
45         
46         // Real GUI implementation
47         boost::scoped_ptr<FD_form_maths_delim> dialog_;
48 };
49
50 #endif //  FORM_MATHSDELIM_H