]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macroarg.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_macroarg.h
index 25755677d0d05c4cccd451a33e28c277cdabced8..b2bcbade9718ab6001f68391bf470dfb19c9ca45 100644 (file)
 class MathMacroArgument : public MathNestInset {
 public:
        ///
-       explicit MathMacroArgument(int);
+       explicit MathMacroArgument(int, MathTextCodes = LM_TC_MIN);
        ///
        MathInset * clone() const;
        ///
+       bool isActive() const { return false; }
+       ///
        void metrics(MathMetricsInfo const & st) const;
        ///
        void draw(Painter &, int x, int y) const;
        ///
-       void write(MathWriteInfo & os) const;
-       ///
-       void writeNormal(std::ostream &) const;
-       ///
        void substitute(MathMacro const & macro);
+
        ///
-       bool isActive() const { return false; }
+       void normalize(NormalStream &) const;
+       ///
+       void write(WriteStream & os) const;
 
 private:
        /// A number between 1 and 9
@@ -39,6 +40,8 @@ private:
        bool expanded_;
        ///
        mutable MathMetricsInfo mi_;
+       ///
+       MathTextCodes code_;
 };
 
 #endif