]> git.lyx.org Git - lyx.git/blob - src/mathed/math_unknowninset.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_unknowninset.h
1 // -*- C++ -*-
2 #ifndef MATH_UNKNOWNINSET_H
3 #define MATH_UNKNOWNINSET_H
4
5 #include "math_diminset.h"
6 #include "math_defs.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /**
13  Unknowntions or LaTeX names for objects that we really don't know
14  */
15 class MathUnknownInset : public MathDimInset {
16 public:
17         ///
18         explicit MathUnknownInset(string const & nm);
19         ///
20         MathInset * clone() const;
21         ///
22         void metrics(MathMetricsInfo const & st) const;
23         ///
24         void draw(Painter &, int x, int y) const;
25         ///
26         string const & name() const;
27         /// identifies UnknownInsets
28         MathUnknownInset const * asUnknownInset() const { return this; }
29         ///
30         void setName(string const &);
31
32         ///
33         void normalize(NormalStream &) const;
34         ///
35         void maplize(MapleStream &) const;
36         ///
37         void mathmlize(MathMLStream &) const;
38         ///
39         void octavize(OctaveStream &) const;
40         ///
41         void write(WriteStream &) const;
42 private:
43         ///
44         string name_;
45         ///
46         mutable MathMetricsInfo mi_;
47 };
48 #endif