]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_funcliminset.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_funcliminset.h
index dce77a090ab2589dc0052c58e95f49d5181c15a8..e36f4172389096cdc75a54b2fdc35b03d2e21e2d 100644 (file)
@@ -4,23 +4,21 @@
 
 #include "math_diminset.h"
 
-struct latexkeys;
-
 // "normal" symbols that don't take limits and don't grow in displayed
 // formulae
 
 class MathFuncLimInset : public MathDimInset {
 public:
        ///
-       explicit MathFuncLimInset(latexkeys const *);
+       explicit MathFuncLimInset(string const & name);
        ///
        MathInset * clone() const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(WriteStream & os) const;
        ///
-       void writeNormal(std::ostream &) const;
+       void normalize(NormalStream &) const;
        ///
-       void metrics(MathStyles st) const;
+       void metrics(MathMetricsInfo const & st) const;
        ///
        void draw(Painter &, int x, int y) const;
        ///
@@ -28,6 +26,8 @@ public:
 
 private:
        ///
-       latexkeys const * sym_;
+       string const name_;
+       ///
+       mutable MathMetricsInfo mi_;
 };
 #endif