]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macro.h
Hopefully fix the problem with stateText() in lyxfont.C
[lyx.git] / src / mathed / math_macro.h
index f58d78041ffa8597da24d8e50b842eae044415dc..b0f062f7b0b7cbec9dc5b54ce81a12615de2e5ae 100644 (file)
@@ -37,8 +37,10 @@ class MathMacro : public MathParInset
 {
 public:
     /// A macro can only be builded from an existing template
+       explicit
     MathMacro(MathMacroTemplate *);
     /// or from another macro.
+       explicit
     MathMacro(MathMacro *);
        ///
     ~MathMacro();
@@ -49,7 +51,7 @@ public:
        ///
     MathedInset * Clone();
        ///
-    void Write(std::ostream &);
+    void Write(std::ostream &, bool fragile);
        ///
     bool setArgumentIdx(int);
        ///
@@ -105,6 +107,7 @@ public:
     ///
     MathMacroArgument() { expnd_mode = false; number = 1;  SetType(LM_OT_MACRO_ARG); }
     ///
+       explicit
     MathMacroArgument(int);
     ///
        ~MathMacroArgument() { lyxerr << "help, destroyme!" << std::endl; }
@@ -115,7 +118,7 @@ public:
        ///
     void draw(Painter &, int x, int baseline);
        ///
-    void Write(std::ostream &);
+    void Write(std::ostream &, bool fragile);
     ///
     void setNumber(int n) { number = n; }
     /// Is expanded or not
@@ -134,6 +137,7 @@ private:
 class MathMacroTemplate: public MathParInset {
 public:
     /// A template constructor needs all the data
+       explicit
     MathMacroTemplate(char const *, int na = 0, int f = 0);
        ///
     ~MathMacroTemplate();
@@ -142,7 +146,7 @@ public:
        ///
     void Metrics();
        ///
-    void WriteDef(std::ostream &);
+    void WriteDef(std::ostream &, bool fragile);
     /// useful for special insets
     void  setTCode(MathedTextCodes t) { tcode = t; }
     ///
@@ -186,6 +190,7 @@ typedef MathMacroTemplate * MathMacroTemplateP;
 class MathMacroTable {
 public:
        ///
+       explicit
     MathMacroTable(int);
        ///
     ~MathMacroTable();