2001-02-13 17:08:51 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATHMACROARGUMENT_H
|
|
|
|
#define MATHMACROARGUMENT_H
|
|
|
|
|
|
|
|
#include "math_parinset.h"
|
|
|
|
|
2001-02-26 12:53:35 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-02-16 09:25:43 +00:00
|
|
|
/** A macro argument
|
|
|
|
\author Alejandro Aguilar Sierra
|
|
|
|
*/
|
2001-02-13 17:08:51 +00:00
|
|
|
class MathMacroArgument: public MathParInset {
|
|
|
|
public:
|
2001-02-26 12:53:35 +00:00
|
|
|
///
|
|
|
|
MathMacroArgument();
|
|
|
|
///
|
|
|
|
explicit
|
|
|
|
MathMacroArgument(int);
|
|
|
|
///
|
|
|
|
MathedInset * Clone();
|
|
|
|
///
|
|
|
|
void Metrics();
|
|
|
|
///
|
|
|
|
void draw(Painter &, int x, int baseline);
|
|
|
|
///
|
|
|
|
void Write(std::ostream &, bool fragile);
|
|
|
|
///
|
|
|
|
void setNumber(int n);
|
|
|
|
/// Is expanded or not
|
|
|
|
void setExpand(bool e);
|
|
|
|
/// Is expanded or not
|
|
|
|
bool getExpand() const;
|
2001-02-13 17:08:51 +00:00
|
|
|
private:
|
2001-02-26 12:53:35 +00:00
|
|
|
///
|
|
|
|
bool expnd_mode_;
|
|
|
|
///
|
|
|
|
int number_;
|
2001-02-13 17:08:51 +00:00
|
|
|
};
|
|
|
|
#endif
|