]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_charinset.h
index 37f6029e079a91ace6131b4587e2496d597ade1e..eaeb117caec6eca87021beed4ad6aec25c8d8dd7 100644 (file)
@@ -4,12 +4,11 @@
 
 #include "math_inset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /** The base character inset.
-    \author André Pönitz
+ *  \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 class MathCharInset : public MathInset {
@@ -17,46 +16,32 @@ public:
        ///
        explicit MathCharInset(char c);
        ///
-       MathCharInset(char c, MathTextCodes t);
-       ///
-       MathInset * clone() const;
-       ///
-       MathTextCodes nativeCode(char c) const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void metrics(MathStyles st) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void draw(Painter &, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        ///
-       void writeHeader(std::ostream &) const;
+       void drawT(TextPainter &, int x, int y) const;
        ///
-       void writeTrailer(std::ostream &) const;
+       void write(WriteStream & os) const;
        ///
-       void writeRaw(std::ostream &) const;
+       void normalize(NormalStream & ns) const;
        ///
-       void writeNormal(std::ostream &) const;
-       /// 
-       int ascent() const;
-       ///
-       int descent() const;
-       ///
-       int width() const;
+       void octave(OctaveStream & os) const;
        /// identifies Charinsets
        MathCharInset const * asCharInset() const { return this; }
        ///
        char getChar() const { return char_; }
        ///
-       MathTextCodes code() const { return code_; }
-       ///
        bool isRelOp() const;
        ///
-       void handleFont(MathTextCodes t);
+       bool match(MathInset const *) const;
 
 private:
        /// the character
        char char_;
-       /// the font to be used on screen
-       MathTextCodes code_;
 };
 #endif