]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_charinset.h
index 0760c2166fe43d7525a722f3b4f41fc5461c2215..eaeb117caec6eca87021beed4ad6aec25c8d8dd7 100644 (file)
@@ -4,49 +4,44 @@
 
 #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 {
 public:
        ///
-       MathCharInset(char c, MathTextCodes t);
+       explicit MathCharInset(char c);
+       ///
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       MathInset * clone() const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void metrics(MathStyles st) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void draw(Painter &, int x, int y) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void drawT(TextPainter &, int x, int y) const;
        ///
-       void writeNormal(std::ostream &) const;
-       /// 
-       int ascent() const;
+       void write(WriteStream & os) const;
        ///
-       int descent() const;
+       void normalize(NormalStream & ns) const;
        ///
-       int width() const;
+       void octave(OctaveStream & os) const;
        /// identifies Charinsets
-       bool isCharInset() const { return true; }
+       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_;
-       /// 
-       MathTextCodes code_;
 };
 #endif