]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.h
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathTabular.h
index db96bc89397cc0e157e934f4d8e17b9e3a7ca50d..26676754a949c5bb5efe4bf2b6923492b34530e5 100644 (file)
@@ -22,32 +22,38 @@ namespace lyx {
 class InsetMathTabular : public InsetMathGrid {
 public:
        ///
-       InsetMathTabular(docstring const &, int m, int n);
+       InsetMathTabular(Buffer * buf, docstring const &, int m, int n);
        ///
-       InsetMathTabular(docstring const &, int m, int n,
+       InsetMathTabular(Buffer * buf, docstring const &, int m, int n,
                char valign, docstring const & halign);
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       Dimension const dimension(BufferView const &) const;
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
        InsetMathTabular * asTabularInset() { return this; }
        ///
        InsetMathTabular const * asTabularInset() const { return this; }
 
        ///
-       void write(WriteStream & os) const;
+       void write(WriteStream & os) const override;
+       ///
+       void infoize(odocstream & os) const override;
+       ///
+       void normalize(NormalStream &) const override;
+       ///
+       void maple(MapleStream &) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_TABULAR_CODE; }
        ///
-       void infoize(odocstream & os) const;
+       int leftMargin() const override { return 4; }
        ///
-       void normalize(NormalStream &) const;
+       int rightMargin() const override { return 2; }
        ///
-       void maple(MapleStream &) const;
+       bool handlesMulticolumn() const override { return true; }
 
 private:
-       Inset * clone() const;
+       Inset * clone() const override;
        ///
        docstring name_;
 };