]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSpace.h
Fix comment according to Enricos explanation
[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         int ascent() const;
36         ///
37         int descent() const;
38         ///
39         int width() const;
40         ///
41         void metrics(MetricsInfo & mi, Dimension & dim) const;
42         ///
43         void draw(PainterInfo & pi, int x, int y) const;
44
45         ///
46         void normalize(NormalStream &) const;
47         ///
48         void validate(LaTeXFeatures & features) const;
49         ///
50         void maple(MapleStream &) const;
51         ///
52         void mathematica(MathematicaStream &) const;
53         ///
54         void octave(OctaveStream &) const;
55         ///
56         void write(WriteStream & os) const;
57 private:
58         virtual std::auto_ptr<InsetBase> doClone() const;
59         ///
60         int space_;
61 };
62
63
64 } // namespace lyx
65 #endif