]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_unknowninset.h
index 1b65a80d53ed4746905b8a4fd0330332f4f096dc..d93cc83ea874bee804ce2594fd073dcd6e3dad61 100644 (file)
@@ -4,10 +4,6 @@
 
 #include "math_diminset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 /**
  Unknowntions or LaTeX names for objects that we really don't know
  */
@@ -17,13 +13,13 @@ public:
        explicit MathUnknownInset(string const & name,
                bool final = true, bool black = false);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void metrics(MathMetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void draw(MathPainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void setName(string const & name) const;
+       void setName(string const & name);
        ///
        string name() const;
        /// identifies UnknownInsets
@@ -31,27 +27,27 @@ public:
        /// identifies UnknownInsets
        MathUnknownInset * asUnknownInset() { return this; }
        ///
-       bool match(MathInset const * p) const;
+       bool match(MathAtom const & at) const;
 
        ///
        void normalize(NormalStream &) const;
        ///
-       void maplize(MapleStream &) const;
+       void maple(MapleStream &) const;
        ///
-       void mathematicize(MathematicaStream &) const;
+       void mathematica(MathematicaStream &) const;
        ///
        void mathmlize(MathMLStream &) const;
        ///
-       void octavize(OctaveStream &) const;
+       void octave(OctaveStream &) const;
        ///
-       void finalize() const;
+       void finalize();
        ///
        bool final() const;
 private:
        ///
-       mutable string name_;
+       string name_;
        /// are we finished creating the name?
-       mutable bool final_;
+       bool final_;
        ///
        bool black_;
 };