#include "math_defs.h"
#include "debug.h"
-using std::ostream;
-using std::endl;
-
///
typedef MathParInset * MathParInsetP;
///
{
public:
/// A macro can only be builded from an existing template
+ explicit
MathMacro(MathMacroTemplate *);
/// or from another macro.
+ explicit
MathMacro(MathMacro *);
///
~MathMacro();
///
MathedInset * Clone();
///
- void Write(ostream &);
+ void Write(std::ostream &, bool fragile);
///
bool setArgumentIdx(int);
///
///
MathMacroArgument() { expnd_mode = false; number = 1; SetType(LM_OT_MACRO_ARG); }
///
+ explicit
MathMacroArgument(int);
///
- ~MathMacroArgument() { lyxerr << "help, destroyme!" << endl; }
+ ~MathMacroArgument() { lyxerr << "help, destroyme!" << std::endl; }
///
MathedInset * Clone() { return this; }
///
///
void draw(Painter &, int x, int baseline);
///
- void Write(ostream &);
+ void Write(std::ostream &, bool fragile);
///
void setNumber(int n) { number = n; }
/// Is expanded or not
class MathMacroTemplate: public MathParInset {
public:
/// A template constructor needs all the data
+ explicit
MathMacroTemplate(char const *, int na = 0, int f = 0);
///
~MathMacroTemplate();
///
void Metrics();
///
- void WriteDef(ostream &);
+ void WriteDef(std::ostream &, bool fragile);
/// useful for special insets
void setTCode(MathedTextCodes t) { tcode = t; }
///
class MathMacroTable {
public:
///
+ explicit
MathMacroTable(int);
///
~MathMacroTable();