]> git.lyx.org Git - lyx.git/blob - src/mathed/math_unknowninset.h
small up/down tweaking
[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 & mi) const;
23         ///
24         void draw(MathPainterInfo & pi, int x, int y) const;
25         ///
26         void setName(string const & name);
27         ///
28         string name() const;
29         /// identifies UnknownInsets
30         MathUnknownInset const * asUnknownInset() const { return this; }
31         /// identifies UnknownInsets
32         MathUnknownInset * asUnknownInset() { return this; }
33         ///
34         bool match(MathAtom const & at) 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 finalize();
48         ///
49         bool final() const;
50 private:
51         ///
52         string name_;
53         /// are we finished creating the name?
54         bool final_;
55         ///
56         bool black_;
57 };
58 #endif