]> 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 3125f490b5c3fbc033a1f7358ee2da42280da13b..0de6781ed307709d5d4c8a8af5e1312ae32b2aae 100644 (file)
@@ -14,28 +14,39 @@ public:
        ///
        explicit MathSymbolInset(latexkeys const *);
        ///
-       MathInset * clone() const;
+       explicit MathSymbolInset(char const *);
        ///
-       void write(MathWriteInfo & os) const;
+       explicit MathSymbolInset(string const &);
        ///
-       void writeNormal(std::ostream &) const;
+       MathInset * clone() 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;
-       /// identifies things that can get \limits or \nolimits
+       /// 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;
 
        ///
-       string octavize() const;
+       void normalize(NormalStream &) const;
        ///
-       string maplize() const;
+       void maplize(MapleStream &) const;
        ///
-       string mathmlize() const;
+       void mathmlize(MathMLStream &) const;
+       ///
+       void octavize(OctaveStream &) const;
+       ///
+       void write(WriteStream & os) const;
+
 private:
        ///
        MathTextCodes code() const;