4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
11 * ControlMath2 is a controller class for the Math Panel dialog.
19 #include "lfuns.h" // for kb_action
22 class ControlMath : public Dialog::Controller {
24 ControlMath(Dialog &);
26 virtual bool initialiseParams(string const &) { return true; }
27 virtual void clearParams() {}
28 virtual void dispatchParams() {}
29 virtual bool isBufferDependent() const { return true; }
32 void dispatchFunc(kb_action action, string const & arg = string()) const;
33 /// Insert a math symbol into the doc.
34 void dispatchInsert(string const & name) const;
35 /// Insert a subscript.
36 void dispatchSubscript() const;
37 /// Insert a superscript.
38 void dispatchSuperscript() const;
39 /// Insert a cube root
40 void dispatchCubeRoot() const;
42 void dispatchMatrix(string const & str) const;
43 /// Insert a delimiter
44 void dispatchDelim(string const & str) const;
45 /// switch between display and inline
46 void dispatchToggleDisplay() const;
47 /// a request to launch dialog \param name.
48 void showDialog(string const & name) const;
52 extern char const * function_names[];
53 extern int const nr_function_names;
54 extern char const * latex_arrow[];
55 extern int const nr_latex_arrow;
56 extern char const * latex_bop[];
57 extern int const nr_latex_bop;
58 extern char const * latex_brel[];
59 extern int const nr_latex_brel;
60 extern char const * latex_dots[];
61 extern int const nr_latex_dots;
62 extern char const * latex_greek[];
63 extern int const nr_latex_greek;
64 extern char const * latex_deco[];
65 extern int const nr_latex_deco;
66 extern char const * latex_misc[];
67 extern int const nr_latex_misc;
68 extern char const * latex_varsz[];
69 extern int const nr_latex_varsz;
70 extern char const * latex_ams_misc[];
71 extern int const nr_latex_ams_misc;
72 extern char const * latex_ams_arrows[];
73 extern int const nr_latex_ams_arrows;
74 extern char const * latex_ams_rel[];
75 extern int const nr_latex_ams_rel;
76 extern char const * latex_ams_nrel[];
77 extern int const nr_latex_ams_nrel;
78 extern char const * latex_ams_ops[];
79 extern int const nr_latex_ams_ops;
82 * Return the mangled XPM filename of the given
85 string const find_xpm(string const & name);
87 #endif // NOT CONTROLMATH