]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.h
forward search in math insets. ugly. seems to work. don't ask why.
[lyx.git] / src / mathed / math_charinset.h
index 9925d0e350689cc6cfae48a7098512795154729c..faf298033de712af5c650e3e17ae2c686b9404e6 100644 (file)
@@ -23,11 +23,11 @@ public:
        ///
        MathTextCodes nativeCode(char c) const;
        ///
-       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