]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_symbolinset.h
index 68054886a4abac389067eb42979141d40b265c28..0de6781ed307709d5d4c8a8af5e1312ae32b2aae 100644 (file)
@@ -14,19 +14,38 @@ public:
        ///
        explicit MathSymbolInset(latexkeys const *);
        ///
-       MathInset * clone() const;
+       explicit MathSymbolInset(char const *);
        ///
-       void write(std::ostream &, bool fragile) const;
+       explicit MathSymbolInset(string const &);
        ///
-       void writeNormal(std::ostream &) const;
+       MathInset * clone() const;
        ///
-       void metrics(MathStyles st) const;
+       void metrics(MathMetricsInfo const & st) const;
        ///
        void draw(Painter &, int x, int y) const;
        ///
        bool isRelOp() const;
-       ///
+       /// do we take scripts?
        bool isScriptable() const;
+       /// do we take \limits or \nolimits?
+       bool takesLimits() const;
+       /// identifies SymbolInset as such
+       MathSymbolInset const * asSymbolInset() const { return this; }
+       /// the LaTeX name of the symbol (without the backslash)
+       string name() const;
+       ///
+       bool match(MathInset *) const;
+
+       ///
+       void normalize(NormalStream &) const;
+       ///
+       void maplize(MapleStream &) const;
+       ///
+       void mathmlize(MathMLStream &) const;
+       ///
+       void octavize(OctaveStream &) const;
+       ///
+       void write(WriteStream & os) const;
 
 private:
        ///
@@ -38,5 +57,7 @@ private:
        latexkeys const * sym_;
        ///
        mutable int h_;
+       ///
+       mutable MathMetricsInfo mi_;
 };
 #endif