]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.h
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_charinset.h
index 37f6029e079a91ace6131b4587e2496d597ade1e..20d5e472f1f3fc6a95653fd4af2b31082e7d2138 100644 (file)
@@ -21,13 +21,13 @@ public:
        ///
        MathInset * clone() const;
        ///
-       MathTextCodes nativeCode(char c) const;
+       static MathTextCodes nativeCode(char c);
        ///
-       void metrics(MathStyles st) const;
+       void metrics(MathMetricsInfo const & st) const;
        ///
        void draw(Painter &, int x, int y) const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(WriteStream & os) const;
        ///
        void writeHeader(std::ostream &) const;
        ///
@@ -35,7 +35,7 @@ public:
        ///
        void writeRaw(std::ostream &) const;
        ///
-       void writeNormal(std::ostream &) const;
+       void normalize(NormalStream &) const;
        /// 
        int ascent() const;
        ///
@@ -52,11 +52,15 @@ public:
        bool isRelOp() const;
        ///
        void handleFont(MathTextCodes t);
+       ///
+       bool match(MathInset *) const;
 
 private:
        /// the character
        char char_;
        /// the font to be used on screen
        MathTextCodes code_;
+       ///
+       mutable MathMetricsInfo mi_;
 };
 #endif