mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 07:57:22 +00:00
6b95441288
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1950 a592a061-630c-0410-9148-cb99ea01b6c8
47 lines
836 B
C++
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
|