X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCaption.h;h=804a40a6d72b27f581a5df643ebd6df3845a8899;hb=06254d11dfdf670fab3548dc2a2674e7a261262c;hp=6a9d57e9b513715d280212046a538681fe4f4c94;hpb=601a8e0192b60274ab316c0bfa31811d236c972e;p=lyx.git diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index 6a9d57e9b5..804a40a6d7 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -13,11 +13,11 @@ #define INSETCAPTION_H #include "InsetText.h" -#include "TextClass.h" - namespace lyx { +class TextClass; + /** A caption inset */ class InsetCaption : public InsetText { @@ -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,24 +45,20 @@ 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 virtual void updateLabels(Buffer const &, ParIterator const &); /// - virtual bool wide() const { return false; } - /// int latex(Buffer const & buf, odocstream & os, OutputParams const &) const; /// @@ -90,7 +86,7 @@ public: private: /// - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// mutable docstring full_label_; /// @@ -112,7 +108,7 @@ Inset::DisplayType InsetCaption::display() const inline -Inset::Code InsetCaption::lyxCode() const +InsetCode InsetCaption::lyxCode() const { return CAPTION_CODE; }