]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathFrameBox.h
Account for kerning when positioning scripts in the MathFontOld and
[lyx.git] / src / mathed / InsetMathFrameBox.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathFrameBox.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_FRAMEBOXINSET_H
13 #define MATH_FRAMEBOXINSET_H
14
15 #include "InsetMathNest.h"
16
17
18 namespace lyx {
19
20
21 /// Extra nesting
22 class InsetMathFrameBox : public InsetMathNest {
23 public:
24         ///
25         InsetMathFrameBox();
26         ///
27         bool metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const;
30         ///
31         void write(WriteStream & os) const;
32         /// write normalized content
33         void normalize(NormalStream & ns) const;
34         ///
35         mode_type currentMode() const { return TEXT_MODE; }
36 private:
37         virtual std::auto_ptr<InsetBase> doClone() const;
38         /// width of '[' in current font
39         mutable int w_;
40 };
41
42
43
44 } // namespace lyx
45 #endif