]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCases.h
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathCases.h
index a34976358471c7045f0a14c4ae607e883ec4ecea..a2a39fc6e62414cd09eefaea50d5ebe4f885e26b 100644 (file)
@@ -15,6 +15,9 @@
 #include "InsetMathGrid.h"
 
 
+namespace lyx {
+
+
 class LaTeXFeatures;
 
 class InsetMathCases : public InsetMathGrid {
@@ -24,15 +27,17 @@ public:
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
+       Dimension const dimension(BufferView const &) const;
+       ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       bool getStatus(LCursor & cur, FuncRequest const & cmd,
+       bool getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const;
 
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
        ///
        void normalize(NormalStream &) const;
        ///
@@ -42,7 +47,10 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };
 
+
+} // namespace lyx
+
 #endif