]> git.lyx.org Git - lyx.git/blob - src/mathed/math_unknowninset.h
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_unknowninset.h
1 // -*- C++ -*-
2 /**
3  * \file math_unknowninset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_UNKNOWNINSET_H
13 #define MATH_UNKNOWNINSET_H
14
15 #include "math_diminset.h"
16
17
18 /// LaTeX names for objects that we really don't know
19 class MathUnknownInset : public MathDimInset {
20 public:
21         ///
22         explicit MathUnknownInset(std::string const & name,
23                 bool final = true, bool black = false);
24         ///
25         std::auto_ptr<InsetBase> clone() const;
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const;
30         ///
31         void setName(std::string const & name);
32         ///
33         std::string name() const;
34         /// identifies UnknownInsets
35         MathUnknownInset const * asUnknownInset() const { return this; }
36         /// identifies UnknownInsets
37         MathUnknownInset * asUnknownInset() { return this; }
38
39         ///
40         void normalize(NormalStream &) const;
41         ///
42         void maple(MapleStream &) const;
43         ///
44         void mathematica(MathematicaStream &) const;
45         ///
46         void mathmlize(MathMLStream &) const;
47         ///
48         void octave(OctaveStream &) const;
49         ///
50         void finalize();
51         ///
52         bool final() const;
53 private:
54         ///
55         std::string name_;
56         /// are we finished creating the name?
57         bool final_;
58         ///
59         bool black_;
60 };
61 #endif