]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.h
* InsetCollapsable:
[lyx.git] / src / insets / InsetCaption.h
index 23d0102a6add7c2aeb2d3c1e8072cea423cc9e2c..0ad098399eefe5d64e196b7d9a07fef43003a49e 100644 (file)
@@ -36,7 +36,7 @@ public:
        ///
        virtual bool neverIndent(Buffer const &) const { return true; }
        ///
-       virtual Inset::Code lyxCode() const;
+       virtual InsetCode lyxCode() const;
        ///
        virtual docstring const editMessage() const;
        ///
@@ -45,17 +45,15 @@ public:
        ///
        bool descendable() const { return true; }
        ///
-       virtual bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       virtual void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        virtual void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void drawSelection(PainterInfo & pi, int x, int y) const;
-       ///
        virtual void edit(Cursor & cur, bool left);
        ///
        virtual Inset * editXY(Cursor & cur, int x, int y);
        ///
-       bool insetAllowed(Inset::Code code) const;
+       bool insetAllowed(InsetCode code) const;
        ///
        virtual bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
        // Update the counters of this inset and of its contents
@@ -110,7 +108,7 @@ Inset::DisplayType InsetCaption::display() const
 
 
 inline
-Inset::Code InsetCaption::lyxCode() const
+InsetCode InsetCaption::lyxCode() const
 {
        return CAPTION_CODE;
 }