]> git.lyx.org Git - lyx.git/blob - src/mathed/math_unknowninset.h
Geof Piroux's patch for Mathematica support
[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
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /**
12  Unknowntions or LaTeX names for objects that we really don't know
13  */
14 class MathUnknownInset : public MathDimInset {
15 public:
16         ///
17         explicit MathUnknownInset(string const & name,
18                 bool final = true, bool black = false);
19         ///
20         MathInset * clone() const;
21         ///
22         void metrics(MathMetricsInfo & st) const;
23         ///
24         void draw(MathPainterInfo &, int x, int y) const;
25         ///
26         string & name();
27         ///
28         string const & name() const;
29         /// identifies UnknownInsets
30         MathUnknownInset const * asUnknownInset() const { return this; }
31         /// identifies UnknownInsets
32         MathUnknownInset * asUnknownInset() { return this; }
33         ///
34         bool match(MathInset * p) const;
35
36         ///
37         void normalize(NormalStream &) const;
38         ///
39         void maplize(MapleStream &) const;
40         ///
41         void mathematicize(MathematicaStream &) const;
42         ///
43         void mathmlize(MathMLStream &) const;
44         ///
45         void octavize(OctaveStream &) const;
46         ///
47         void write(WriteStream &) const;
48         ///
49         void finalize();
50         ///
51         bool final() const;
52 private:
53         ///
54         string name_;
55         /// are we finished creating the name?
56         bool final_;
57         ///
58         bool black_;
59 };
60 #endif