]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_unknowninset.h
index 2e9dd5b82b586570622285ec8396bc6840559648..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,32 +13,32 @@ 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 & st) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void draw(MathPainterInfo &, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       string & name();
+       void setName(string const & name);
        ///
-       string const & name() const;
+       string name() const;
        /// identifies UnknownInsets
        MathUnknownInset const * asUnknownInset() const { return this; }
        /// identifies UnknownInsets
        MathUnknownInset * asUnknownInset() { return this; }
        ///
-       bool match(MathInset * p) const;
+       bool match(MathAtom const & at) const;
 
        ///
        void normalize(NormalStream &) const;
        ///
-       void maplize(MapleStream &) const;
+       void maple(MapleStream &) const;
        ///
-       void mathmlize(MathMLStream &) const;
+       void mathematica(MathematicaStream &) const;
        ///
-       void octavize(OctaveStream &) const;
+       void mathmlize(MathMLStream &) const;
        ///
-       void write(WriteStream &) const;
+       void octave(OctaveStream &) const;
        ///
        void finalize();
        ///