]> git.lyx.org Git - lyx.git/blob - src/mathed/math_unknowninset.h
some (yet unfinished) up/down work
[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         void metrics(MetricsInfo & mi, Dimension & dim) const;
26         ///
27         void draw(PainterInfo & pi, int x, int y) const;
28         ///
29         void setName(std::string const & name);
30         ///
31         std::string name() const;
32         /// identifies UnknownInsets
33         MathUnknownInset const * asUnknownInset() const { return this; }
34         /// identifies UnknownInsets
35         MathUnknownInset * asUnknownInset() { return this; }
36
37         ///
38         void normalize(NormalStream &) const;
39         ///
40         void maple(MapleStream &) const;
41         ///
42         void mathematica(MathematicaStream &) const;
43         ///
44         void mathmlize(MathMLStream &) const;
45         ///
46         void octave(OctaveStream &) const;
47         ///
48         void finalize();
49         ///
50         bool final() const;
51 private:
52         virtual std::auto_ptr<InsetBase> doClone() const;
53         ///
54         std::string name_;
55         /// are we finished creating the name?
56         bool final_;
57         ///
58         bool black_;
59 };
60 #endif