]> git.lyx.org Git - lyx.git/blob - src/mathed/math_tfracinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_tfracinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_tfracinset.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_TFRACINSET_H
13 #define MATH_TFRACINSET_H
14
15 #include "math_fracinset.h"
16
17
18 /// \dfrac support
19 class MathTfracInset : public MathFracInset {
20 public:
21         ///
22         MathTfracInset();
23         ///
24         void metrics(MetricsInfo & mi, Dimension & dim) const;
25         ///
26         void draw(PainterInfo &, int x, int y) const;
27         ///
28         std::string name() const;
29         ///
30         void mathmlize(MathMLStream &) const;
31         ///
32         void validate(LaTeXFeatures & features) const;
33 private:
34         virtual std::auto_ptr<InsetBase> doClone() const;
35 };
36
37 #endif