]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotemplate.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_macrotemplate.h
1 // -*- C++ -*-
2 #ifndef MATH_MACROTEMPLATE_H
3 #define MATH_MACROTEMPLATE_H
4
5 #include "math_inset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 class MathMacro;
12
13 /** This class contains the macro definition
14     \author Alejandro Aguilar Sierra
15  */
16 //class MathMacroTemplate : public MathInset, boost::noncopyable 
17
18 class MathMacroTemplate : public MathInset {
19 public:
20         ///
21         MathMacroTemplate();
22         ///
23         MathMacroTemplate(string const & name, int nargs);
24         ///
25         MathInset * clone() const;
26         ///
27         void Write(std::ostream &, bool fragile) const;
28         /// Number of arguments
29         int numargs() const;
30         ///
31         void numargs(int);
32         ///
33         void draw(Painter &, int, int);
34         ///
35         void Metrics(MathStyles st, int asc = 0, int des = 0);
36 private:
37         ///
38         int numargs_;
39         /// unimplemented
40         void operator=(MathMacroTemplate const &);
41 };
42
43 #endif