]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_spaceinset.h
index b6c0f525c173f9e2401d008d0f731c1f44f6434d..fddaed61301a878f467044814133039182d4ac1b 100644 (file)
@@ -17,15 +17,17 @@ public:
        ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void draw(Painter &, int x, int y) 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;
        ///
-       bool isSpaceInset() const { return true; }
+       MathSpaceInset const * asSpaceInset() const { return this; }
+       ///
+       MathSpaceInset * asSpaceInset() { return this; }
        ///
        void incSpace();
 private: