]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetcaption.h
index d5d84fd95c8ce6fef9461f714e786fdd6f0c2339..a8b5321c9bfd6cf751e6176fa4494035b8b0d0f5 100644 (file)
@@ -30,15 +30,14 @@ public:
        ///
        virtual bool needFullRow() const;
        ///
-       virtual Inset::Code lyxCode() const;
+       virtual InsetOld::Code lyxCode() const;
        ///
        virtual string const editMessage() const;
        ///
-       virtual void draw(BufferView * bv, LyXFont const & f,
-                         int baseline, float & x) const;
+       virtual void draw(PainterInfo & pi, int x, int y) const;
        ///
        virtual int latex(Buffer const * buf, std::ostream & os,
-                         bool fragile, bool free_spc) const;
+                         LatexRunParams const &) const;
        ///
        int ascii(Buffer const * buf, std::ostream & os, int linelen) const;
        ///
@@ -61,7 +60,7 @@ bool InsetCaption::needFullRow() const
 
 
 inline
-Inset::Code InsetCaption::lyxCode() const
+InsetOld::Code InsetCaption::lyxCode() const
 {
        return CAPTION_CODE;
 }