X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloat.h;h=7800d55c96d3c2b8351537483f226fccb36d2322;hb=06254d11dfdf670fab3548dc2a2674e7a261262c;hp=21abf3be595e5fb734c58ff77116e9136f81491a;hpb=d3e30f8d9b68d51141290c7f4888040e9cfbaffa;p=lyx.git diff --git a/src/insets/InsetFloat.h b/src/insets/InsetFloat.h index 21abf3be59..7800d55c96 100644 --- a/src/insets/InsetFloat.h +++ b/src/insets/InsetFloat.h @@ -57,9 +57,9 @@ public: /// void validate(LaTeXFeatures & features) const; /// - Inset::Code lyxCode() const { return Inset::FLOAT_CODE; } + InsetCode lyxCode() const { return FLOAT_CODE; } /// - virtual bool wide() const { return false; } + bool isMacroScope(Buffer const &) const { return true; } /// int latex(Buffer const &, odocstream &, OutputParams const &) const; @@ -72,7 +72,7 @@ public: /// virtual docstring const editMessage() const; /// - bool insetAllowed(Inset::Code) const; + bool insetAllowed(InsetCode) const; /** returns true if, when outputing LaTeX, font changes should be closed before generating this inset. This is needed for insets that may contain several paragraphs */ @@ -87,11 +87,13 @@ public: InsetFloatParams const & params() const { return params_; } /// bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; + // Update the counters of this inset and of its contents + virtual void updateLabels(Buffer const &, ParIterator const &); protected: virtual void doDispatch(Cursor & cur, FuncRequest & cmd); private: /// - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// InsetFloatParams params_; ///