]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.h
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_symbolinset.h
index 88a3414bac0f2188cd6675adc7ee9236ff927768..a42f01ba59d21f933c9a7b8c2074d427eef8fe41 100644 (file)
@@ -6,7 +6,9 @@
 
 struct latexkeys;
 
-/// big operators
+// "normal" symbols that don't take limits and don't grow in displayed
+// formulae
+
 class MathSymbolInset : public MathDimInset {
 public:
        ///
@@ -14,22 +16,29 @@ public:
        ///
        MathInset * clone() const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(MathWriteInfo & os) const;
        ///
        void writeNormal(std::ostream &) const;
        ///
-       void metrics(MathStyles st);
+       void metrics(MathMetricsInfo const & st) const;
+       ///
+       void draw(Painter &, int x, int y) const;
        ///
-       void draw(Painter &, int, int);
+       bool isRelOp() const;
        ///
-       bool isScriptable() const { return true; }
+       bool isScriptable() const;
+       /// identifies things that can get \limits or \nolimits
+       bool takesLimits() const;
 
 private:
        ///
-       latexkeys const * sym_;
+       MathTextCodes code() const;
        ///
-       string ssym_;
+       MathTextCodes code2() const;
+
+       ///
+       latexkeys const * sym_;
        ///
-       MathTextCodes code_;
+       mutable int h_;
 };
 #endif