mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
38 lines
678 B
C
38 lines
678 B
C
|
// -*- C++ -*-
|
||
|
#ifndef MATHMACROARGUMENT_H
|
||
|
#define MATHMACROARGUMENT_H
|
||
|
|
||
|
#include "math_parinset.h"
|
||
|
|
||
|
/// An argument
|
||
|
class MathMacroArgument: public MathParInset {
|
||
|
public:
|
||
|
///
|
||
|
MathMacroArgument();
|
||
|
///
|
||
|
explicit
|
||
|
MathMacroArgument(int);
|
||
|
///
|
||
|
~MathMacroArgument();
|
||
|
///
|
||
|
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;
|
||
|
private:
|
||
|
///
|
||
|
bool expnd_mode_;
|
||
|
///
|
||
|
int number_;
|
||
|
};
|
||
|
#endif
|