]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.h
Matrix and delimiter.
[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 QMath
22 {
23 public:
24         friend class QMathDialog;
25
26         QMath();
27
28         /// temporary
29         void do_show();
30  
31         /// build the dialog (should be private)
32         virtual void build_dialog();
33
34         /// insert a math symbol into the doc
35         void insert(string const & name);
36  
37         /// insert a cube root
38         void insertCubeRoot();
39  
40         /// insert a matrix
41         void insertMatrix();
42  
43         /// insert delim
44         void insertDelim(string const & str);
45  
46         /// add a subscript
47         void subscript();
48
49         /// add a superscript
50         void superscript();
51  
52         /// switch between display and inline
53         void toggleDisplay();
54  
55 private:
56         /// Apply changes
57         virtual void apply() {};
58         /// update
59         virtual void update_contents() {};
60
61         // FIXME: temp 
62         QMathDialog * dialog_; 
63 };
64
65 #endif // QMATH_H