]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.h
Compilation fixes.
[lyx.git] / src / frontends / qt2 / QMath.h
1 // -*- C++ -*-
2 /**
3  * \file QMath.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  */
9
10 #ifndef QMATH_H
11 #define QMATH_H
12
13 #include <config.h>
14
15 #include "LString.h"
16  
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 class QMathDialog;
22
23 class QMath
24 {
25 public:
26         friend class QMathDialog;
27
28         QMath();
29
30         /// temporary
31         void do_show();
32  
33         /// build the dialog (should be private)
34         virtual void build_dialog();
35
36         /// insert a math symbol into the doc
37         void insert(string const & name);
38  
39         /// insert a cube root
40         void insertCubeRoot();
41  
42         /// insert a matrix
43         void insertMatrix();
44  
45         /// insert delim
46         void insertDelim(string const & str);
47  
48         /// add a subscript
49         void subscript();
50
51         /// add a superscript
52         void superscript();
53  
54         /// switch between display and inline
55         void toggleDisplay();
56  
57 private:
58         /// Apply changes
59         virtual void apply() {}
60         /// update
61         virtual void update_contents() {}
62
63         // FIXME: temp 
64         QMathDialog * dialog_; 
65 };
66
67 #endif // QMATH_H