]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotemplate.h
fix "make dist" target
[lyx.git] / src / mathed / math_macrotemplate.h
1 // -*- C++ -*-
2 #ifndef MATHMACROTEMPLATE
3 #define MATHMACROTEMPLATE
4
5 #include <set>
6
7 #include "math_parinset.h"
8
9 #ifdef __GNUG__
10 #pragma interface
11 #endif
12
13 class MathMacro;
14
15 /** This class contains the macro definition
16     \author Alejandro Aguilar Sierra
17  */
18 //class MathMacroTemplate : public MathParInset, boost::noncopyable 
19
20 class MathMacroTemplate : public MathParInset {
21 public:
22         ///
23         MathMacroTemplate();
24         ///
25         MathMacroTemplate(string const & name, int nargs);
26         ///
27         void WriteDef(std::ostream &, bool fragile) const;
28         /// Number of arguments
29         int nargs() const;
30         ///
31         void draw(Painter &, int, int);
32         ///
33         void Metrics();
34 private:
35         ///
36         int na_;
37         ///
38         std::set<MathMacro *> users_;
39
40         /// unimplemented
41         void operator=(MathMacroTemplate const &);
42         /// unimplemented
43         MathMacroTemplate(MathMacroTemplate const &);
44 };
45
46 #endif