]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.h
Fixes to input method handling
[lyx.git] / src / mathed / MathFactory.h
index ab89328707cb0c7b8d15e69817f60335c4e8e1d3..9837ca75e2e2284be9aab3e09911cd08cb82f3aa 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #ifndef MATH_FACTORY_H
 #define MATH_FACTORY_H
 
-#include <map>
-
 #include "MathParser.h"
 
 #include "support/strfwd.h"
 
-using std::map;
+#include <map>
 
 namespace lyx {
 
@@ -26,8 +24,8 @@ class MathAtom;
 class MathData;
 
 
-MathAtom createInsetMath(docstring const &);
-MathAtom createInsetMath(char const * const);
+MathAtom createInsetMath(docstring const &, Buffer * buf);
+MathAtom createInsetMath(char const * const, Buffer * buf);
 
 /** Fills ar with the contents of str.
  *  str is created by the frontend dialog's and returned to the LyX core.
@@ -35,8 +33,13 @@ MathAtom createInsetMath(char const * const);
  */
 bool createInsetMath_fromDialogStr(docstring const &, MathData &);
 
-typedef map<docstring, latexkeys> WordList;
-WordList const & mathedWordList();
+/** Tells whether the argument is an ascii character or is marked as
+  * mathalpha in the unicodesymbols file.
+  */
+bool isAsciiOrMathAlpha(char_type);
+
+typedef std::map<docstring, latexkeys> MathWordList;
+MathWordList const & mathedWordList();
 
 } // namespace lyx