]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.h
dont use pragma impementation and interface anymore
[lyx.git] / src / frontends / qt2 / QMath.h
1 // -*- C++ -*-
2 /**
3  * \file QMath.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QMATH_H
13 #define QMATH_H
14
15
16 #include "LString.h"
17
18 class QMathDialog;
19
20 class QMath {
21 public:
22         friend class QMathDialog;
23
24         QMath();
25
26         /// temporary
27         void do_show();
28
29         /// build the dialog (should be private)
30         virtual void build_dialog();
31
32         /// insert a math symbol into the doc
33         void insert(string const & name);
34
35         /// insert a cube root
36         void insertCubeRoot();
37
38         /// insert a matrix
39         void insertMatrix(string const & str);
40
41         /// insert delim
42         void insertDelim(string const & str);
43
44         /// add a subscript
45         void subscript();
46
47         /// add a superscript
48         void superscript();
49
50         /// switch between display and inline
51         void toggleDisplay();
52 private:
53         /// Apply changes
54         virtual void apply() {}
55         /// update
56         virtual void update_contents() {}
57
58         // FIXME: temp
59         QMathDialog * dialog_;
60 };
61
62 #endif // QMATH_H