]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.h
small up/down tweaking
[lyx.git] / src / mathed / math_charinset.h
index 645c56a2cc01b73ada3aa9341ed1e7493c9d5986..383c325ff83fd3a45500fb1bb57886bab6d8309c 100644 (file)
@@ -9,7 +9,9 @@
 #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 MathDimInset {
@@ -17,15 +19,11 @@ public:
        ///
        explicit MathCharInset(char c);
        ///
-       MathCharInset(char c, MathTextCodes t);
-       ///
        MathInset * clone() const;
        ///
-       static MathTextCodes nativeCode(char c);
-       ///
-       void metrics(MathMetricsInfo const & st) const;
+       void metrics(MathMetricsInfo & st) const;
        ///
-       void draw(Painter &, int x, int y) const;
+       void draw(MathPainterInfo &, int x, int y) const;
        ///
        void metricsT(TextMetricsInfo const & st) const;
        ///
@@ -33,36 +31,20 @@ public:
        ///
        void write(WriteStream & os) const;
        ///
-       void writeHeader(std::ostream &) const;
-       ///
-       void writeTrailer(std::ostream &) const;
-       ///
-       void writeRaw(std::ostream &) const;
+       void normalize(NormalStream & ns) const;
        ///
-       void normalize(NormalStream &) const;
+       void octavize(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 validate(LaTeXFeatures & features) const;
-       ///
-       void handleFont(MathTextCodes t);
-       ///
-       bool match(MathInset *) const;
-       /// identifies complicated things that need braces if used as arg
-       bool needsBraces() const { return false; }
+       bool match(MathInset const *) const;
 
 private:
        /// the character
        char char_;
-       /// the font to be used on screen
-       MathTextCodes code_;
-       ///
-       mutable LyXFont font_;
 };
 #endif