]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.h
implement font and display style
[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_symbol(string const & name);
36  
37         /// insert a cube root
38         void insertCubeRoot();
39  
40         /// add a subscript
41         void subscript();
42
43         /// add a superscript
44         void superscript();
45  
46         /// switch between display and inline
47         void toggleDisplay();
48  
49 private:
50         /// Apply changes
51         virtual void apply() {};
52         /// update
53         virtual void update_contents() {};
54
55         // FIXME: temp 
56         QMathDialog * dialog_; 
57 };
58
59 #endif // QMATH_H