3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <moz@compsoc.man.ac.uk>
12 #pragma implementation
17 #include "commandtags.h"
18 #include "funcrequest.h"
20 #include "BufferView.h"
22 #include "QMathDialog.h"
25 #include "iconpalette.h"
27 // FIXME temporary HACK !
28 void createMathPanel()
30 static QMath * dialog = 0;
33 dialog->build_dialog();
50 void QMath::build_dialog()
52 dialog_ = new QMathDialog(this);
56 void QMath::insert_symbol(string const & name)
58 // needless to say, this can't last for long
59 extern BufferView * current_view;
61 current_view->owner()->dispatch(FuncRequest(LFUN_INSERT_MATH, '\\' + name));