X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloat.h;h=8a39303310834a0be85789308c4da2dbd5ffbbf2;hb=db8c16d554ebb1dcb319e44d318572de6eff024b;hp=7ab9ed336a3a0272e43097a9b6ab6c39a4fcb2b6;hpb=39e79d8602920eefe36e898c9f415afb979521b2;p=lyx.git diff --git a/src/insets/InsetFloat.h b/src/insets/InsetFloat.h index 7ab9ed336a..8a39303310 100644 --- a/src/insets/InsetFloat.h +++ b/src/insets/InsetFloat.h @@ -49,28 +49,27 @@ public: /// ~InsetFloat(); /// - void write(Buffer const & buf, std::ostream & os) const; + docstring name() const { return name_; } /// - void read(Buffer const & buf, Lexer & lex); + void write(std::ostream & os) const; + /// + void read(Lexer & lex); /// void validate(LaTeXFeatures & features) const; /// - InsetBase::Code lyxCode() const { return InsetBase::FLOAT_CODE; } + InsetCode lyxCode() const { return FLOAT_CODE; } /// - virtual bool wide() const { return false; } + bool isMacroScope() const { return true; } /// - int latex(Buffer const &, odocstream &, - OutputParams const &) const; + int latex(odocstream &, OutputParams const &) const; /// - int plaintext(Buffer const &, odocstream &, - OutputParams const &) const; + int plaintext(odocstream &, OutputParams const &) const; /// - int docbook(Buffer const &, odocstream &, - OutputParams const &) const; + int docbook(odocstream &, OutputParams const &) const; /// - virtual docstring const editMessage() const; + docstring editMessage() const; /// - bool insetAllowed(InsetBase::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 */ @@ -80,20 +79,22 @@ public: /// void sideways(bool s, BufferParams const &); /// - void addToToc(TocList &, Buffer const &) const; - /// bool showInsetDialog(BufferView *) const; /// InsetFloatParams const & params() const { return params_; } /// - bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const; + bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; + // Update the counters of this inset and of its contents + void updateLabels(ParIterator const &); protected: - virtual void doDispatch(LCursor & cur, FuncRequest & cmd); + virtual void doDispatch(Cursor & cur, FuncRequest & cmd); private: - virtual std::auto_ptr doClone() const; - + /// + virtual Inset * clone() const; /// InsetFloatParams params_; + /// + docstring name_; }; @@ -102,7 +103,7 @@ public: /// InsetFloatMailer(InsetFloat & inset); /// - virtual InsetBase & inset() const { return inset_; } + virtual Inset & inset() const { return inset_; } /// virtual std::string const & name() const { return name_; } ///