lyx_mirror/src/mathed/math_macrotemplate.h
Lars Gullik Bjønnes 6b95441288 mathed64.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1950 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-24 16:13:38 +00:00

47 lines
836 B
C++

// -*- C++ -*-
#ifndef MATHMACROTEMPLATE
#define MATHMACROTEMPLATE
#include <set>
#include "math_parinset.h"
#ifdef __GNUG__
#pragma interface
#endif
class MathMacro;
/** This class contains the macro definition
\author Alejandro Aguilar Sierra
*/
//class MathMacroTemplate : public MathParInset, boost::noncopyable
class MathMacroTemplate : public MathParInset {
public:
///
MathMacroTemplate();
///
MathMacroTemplate(std::string const & name, int nargs);
///
void WriteDef(std::ostream &, bool fragile) const;
/// Number of arguments
int nargs() const;
///
void draw(Painter &, int, int);
///
void Metrics();
private:
///
int na_;
///
std::set<MathMacro *> users_;
/// unimplemented
void operator=(MathMacroTemplate const &);
/// unimplemented
MathMacroTemplate(MathMacroTemplate const &);
};
#endif