3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
17 #include "funcrequest.h"
19 #include "BufferView.h"
21 #include "QMathDialog.h"
24 #include "iconpalette.h"
26 // needless to say, this can't last for long
27 #warning FIXME Current_view used here!
28 extern BufferView * current_view;
31 // FIXME temporary HACK !
32 void createMathPanel()
34 static QMath * dialog = 0;
37 dialog->build_dialog();
54 void QMath::build_dialog()
56 dialog_ = new QMathDialog(this);
60 void QMath::subscript()
62 #warning FIXME Current_view used here!
63 current_view->owner()->dispatch(FuncRequest(LFUN_SUBSCRIPT));
67 void QMath::superscript()
69 #warning FIXME Current_view used here!
70 current_view->owner()->dispatch(FuncRequest(LFUN_SUPERSCRIPT));
74 void QMath::insert(string const & name)
76 #warning FIXME Current_view used here!
77 current_view->owner()->dispatch(FuncRequest(LFUN_INSERT_MATH, '\\' + name));
81 void QMath::insertCubeRoot()
83 #warning FIXME Current_view used here!
84 current_view->owner()->dispatch(FuncRequest(LFUN_INSERT_MATH, "\\root"));
85 current_view->owner()->dispatch(FuncRequest(LFUN_SELFINSERT, "3"));
86 current_view->owner()->dispatch(FuncRequest(LFUN_RIGHT));
90 void QMath::insertMatrix(string const & str)
92 #warning FIXME Current_view used here!
93 current_view->owner()->dispatch(FuncRequest(LFUN_INSERT_MATRIX, str));
97 void QMath::insertDelim(string const & str)
99 #warning FIXME Current_view used here!
100 current_view->owner()->dispatch(FuncRequest(LFUN_MATH_DELIM, str));
104 void QMath::toggleDisplay()
106 #warning FIXME Current_view used here!
107 current_view->owner()->dispatch(FuncRequest(LFUN_MATH_DISPLAY));