]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotemplate.C
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_macrotemplate.C
index 822d0e92114ee8e15c4f7d116168975f69ac644f..c217cd1b57c8bbc49056521b9d840bca2b91c24a 100644 (file)
@@ -47,20 +47,16 @@ string const & MathMacroTemplate::name() const
 }
 
 
-void MathMacroTemplate::write(std::ostream & os, bool fragile) const
+void MathMacroTemplate::write(MathWriteInfo & os) const
 {
-       os << "\n\\newcommand{\\" << name_ << "}";
-
+       os << "\n\\newcommand{\\" << name_ << '}';
        if (numargs_ > 0)
-               os << "[" << numargs_ << "]";
-
-       os << "{";
-       cell(0).write(os, fragile);
-       os << "}\n";
+               os << '[' << numargs_ << ']';
+       os << '{' << cell(0) << "}\n";
 }
 
 
-void MathMacroTemplate::metrics(MathStyles st) const
+void MathMacroTemplate::metrics(MathMetricsInfo const & st) const
 {
        xcell(0).metrics(st);
        size_    = st;