]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.h
cursor is no more damaging the background. L-shaped cursor is broken right now....
[lyx.git] / src / mathed / InsetMath.h
index 40d54df7b0b69c2a07c41608ac563204a75715e5..3cfc107e580166c51b3dc4f695cfe9c1f3cf57eb 100644 (file)
@@ -17,6 +17,9 @@
 
 #include "insets/insetbase.h"
 
+
+namespace lyx {
+
 enum HullType {
        hullNone,
        hullSimple,
@@ -31,8 +34,8 @@ enum HullType {
        hullGather
 };
 
-HullType hullType(std::string const & name);
-std::string hullName(HullType type);
+HullType hullType(docstring const & name);
+docstring hullName(HullType type);
 
 /**
 
@@ -74,7 +77,7 @@ class OctaveStream;
 class MapleStream;
 class MaximaStream;
 class MathematicaStream;
-class MathMLStream;
+class MathStream;
 class WriteStream;
 class InfoStream;
 
@@ -150,12 +153,12 @@ public:
        virtual bool extraBraces() const { return false; }
 
        /// return the content as char if the inset is able to do so
-       virtual char getChar() const { return 0; }
+       virtual char_type getChar() const { return 0; }
        /// identifies things that can get \limits or \nolimits
        virtual bool takesLimits() const { return false; }
 
        /// char char code if possible
-       virtual void handleFont(std::string const &) {}
+       virtual void handleFont(docstring const &) {}
        /// replace things by other things
        virtual void replace(ReplaceData &) {}
        /// do we contain a given subsequence?
@@ -176,7 +179,7 @@ public:
        /// write content as something readable by Mathematica
        virtual void mathematica(MathematicaStream &) const;
        /// write content as something resembling MathML
-       virtual void mathmlize(MathMLStream &) const;
+       virtual void mathmlize(MathStream &) const;
        /// write content as something readable by Octave
        virtual void octave(OctaveStream &) const;
 
@@ -190,7 +193,7 @@ public:
        /// change type
        virtual void mutate(HullType /*newtype*/) {}
        /// usually the latex name
-       virtual std::string name() const;
+       virtual docstring name() const;
 
        /// math stuff usually isn't allowed in text mode
        virtual bool allowedIn(mode_type mode) const { return mode == MATH_MODE; }
@@ -199,9 +202,12 @@ public:
 ///
 std::ostream & operator<<(std::ostream &, MathAtom const &);
 ///
-lyx::odocstream & operator<<(lyx::odocstream &, MathAtom const &);
+odocstream & operator<<(odocstream &, MathAtom const &);
 
 // initialize math
 void initMath();
 
+
+} // namespace lyx
+
 #endif