]> git.lyx.org Git - features.git/blob - src/mathed/math_kerninset.h
Replace LString.h with support/std_string.h,
[features.git] / src / mathed / math_kerninset.h
1 // -*- C++ -*-
2 /**
3  * \file math_kerninset.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_CHEATINSET_H
13 #define MATH_CHEATINSET_H
14
15 #include "math_inset.h"
16 #include "vspace.h"
17 #include "support/std_string.h"
18 #include "math_nestinset.h"
19
20
21 /// The \kern primitive
22 /// Some hack for visual effects
23
24 class MathKernInset : public MathInset {
25 public:
26         ///
27         MathKernInset();
28         ///
29         explicit MathKernInset(LyXLength const & wid);
30         ///
31         explicit MathKernInset(string const & wid);
32         ///
33         virtual std::auto_ptr<InsetBase> clone() const;
34         ///
35         void metrics(MetricsInfo & mi, Dimension & dim) const;
36         ///
37         void draw(PainterInfo & pi, int x, int y) const;
38         ///
39         void write(WriteStream & os) const;
40         ///
41         void normalize(NormalStream & ns) const;
42 private:
43         /// width in em
44         LyXLength wid_;
45 };
46 #endif