3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
13 #include "ControlMath2.h"
15 #include "funcrequest.h"
18 ControlMath2::ControlMath2(Dialog & dialog)
19 : Dialog::Controller(dialog)
23 void ControlMath2::dispatchInsert(string const & name) const
25 kernel().dispatch(FuncRequest(LFUN_INSERT_MATH, '\\' + name));
29 void ControlMath2::dispatchSubscript() const
31 kernel().dispatch(FuncRequest(LFUN_SUBSCRIPT));
35 void ControlMath2::dispatchSuperscript() const
37 kernel().dispatch(FuncRequest(LFUN_SUPERSCRIPT));
41 void ControlMath2::dispatchCubeRoot() const
43 kernel().dispatch(FuncRequest(LFUN_INSERT_MATH, "\\root"));
44 kernel().dispatch(FuncRequest(LFUN_SELFINSERT, "3"));
45 kernel().dispatch(FuncRequest(LFUN_RIGHT));
49 void ControlMath2::dispatchMatrix(string const & str) const
51 kernel().dispatch(FuncRequest(LFUN_INSERT_MATRIX, str));
55 void ControlMath2::dispatchDelim(string const & str) const
57 kernel().dispatch(FuncRequest(LFUN_MATH_DELIM, str));
61 void ControlMath2::dispatchToggleDisplay() const
63 kernel().dispatch(FuncRequest(LFUN_MATH_DISPLAY));