]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSpace.h
* Inset and derivatives: insetName() -> name()
[lyx.git] / src / mathed / InsetMathSpace.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathSpace.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_SPACEINSET_H
13 #define MATH_SPACEINSET_H
14
15 #include "InsetMath.h"
16
17
18 namespace lyx {
19
20
21 /// Smart spaces
22 class InsetMathSpace : public InsetMath {
23 public:
24         ///
25         explicit InsetMathSpace(int sp);
26         ///
27         explicit InsetMathSpace(docstring const & name);
28         ///
29         InsetMathSpace const * asSpaceInset() const { return this; }
30         ///
31         InsetMathSpace * asSpaceInset() { return this; }
32         ///
33         void incSpace();
34         ///
35         bool metrics(MetricsInfo & mi, Dimension & dim) const;
36         ///
37         void draw(PainterInfo & pi, int x, int y) const;
38
39         ///
40         void normalize(NormalStream &) const;
41         ///
42         void validate(LaTeXFeatures & features) const;
43         ///
44         void maple(MapleStream &) const;
45         ///
46         void mathematica(MathematicaStream &) const;
47         ///
48         void octave(OctaveStream &) const;
49         ///
50         void write(WriteStream & os) const;
51 private:
52         virtual std::auto_ptr<Inset> doClone() const;
53         ///
54         int space_;
55 };
56
57
58 } // namespace lyx
59 #endif