]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.h
When inserting math inset over selection, place cursor better
[lyx.git] / src / mathed / InsetMathSymbol.h
index d9b26edcfe759627744696f89a37949719bb0d56..67b33fd85a96dc19b03994afc47fc7963bcd520a 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.
  */
@@ -35,10 +35,12 @@ public:
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       int kerning(BufferView const * bv) const { return kerning_; }
+       int kerning(BufferView const *) const { return kerning_; }
 
        ///
-       bool isRelOp() const;
+       mode_type currentMode() const;
+       ///
+       MathClass mathClass() const;
        ///
        bool isOrdAlpha() const;
        /// do we take scripts?
@@ -63,11 +65,18 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       /// \param spacing controls whether we print spaces around
+       /// "operator"-type symbols or just print them raw
+       void htmlize(HtmlStream &, bool spacing) const;
+       ///
        void octave(OctaveStream &) const;
        ///
        void write(WriteStream & os) const;
        ///
        void infoize2(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_SYMBOL_CODE; }
 
 private:
        virtual Inset * clone() const;