X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloat.h;h=6cff1089754a15401dff14d5a33d2b169cc815db;hb=e15d3d35cba7266d8a1a22c7e4cd92d12599e103;hp=e5e9b63b1722702e6ea0a55bd9453f5abe3912a8;hpb=0e2ded8161399bf46ed4737e091bc62a38e1d564;p=lyx.git diff --git a/src/insets/InsetFloat.h b/src/insets/InsetFloat.h index e5e9b63b17..6cff108975 100644 --- a/src/insets/InsetFloat.h +++ b/src/insets/InsetFloat.h @@ -4,8 +4,8 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Jürgen Vigna - * \author Lars Gullik Bjønnes + * \author Jürgen Vigna + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. */ @@ -51,27 +51,27 @@ class InsetFloat : public InsetCollapsable { public: /// - InsetFloat(Buffer const &, std::string const &); - /// - ~InsetFloat(); + InsetFloat(Buffer * buffer, std::string params_str); /// static void string2params(std::string const &, InsetFloatParams &); /// static std::string params2string(InsetFloatParams const &); /// - void setWide(bool w, BufferParams const &, bool update_label = true); + void setWide(bool w, bool update_label = true); /// - void setSideways(bool s, BufferParams const &, bool update_label = true); + void setSideways(bool s, bool update_label = true); /// - void setSubfloat(bool s, BufferParams const &, bool update_label = true); + void setSubfloat(bool s, bool update_label = true); /// - void setNewLabel(BufferParams const &); + void setNewLabel(); /// InsetFloatParams const & params() const { return params_; } + /// + bool allowsCaptionVariation(std::string const &) const; private: /// - docstring name() const; + docstring layoutName() const; /// docstring toolTip(BufferView const & bv, int x, int y) const; /// @@ -83,25 +83,24 @@ private: /// InsetCode lyxCode() const { return FLOAT_CODE; } /// - int latex(odocstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const; /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// int docbook(odocstream &, OutputParams const &) const; /// - docstring editMessage() const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// bool insetAllowed(InsetCode) const; - /** returns true if, when outputing LaTeX, font changes should + /** returns false if, when outputing LaTeX, font changes should be closed before generating this inset. This is needed for insets that may contain several paragraphs */ - bool noFontChange() const { return true; } - /// - bool showInsetDialog(BufferView *) const; + bool inheritFont() const { return false; } /// bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; // Update the counters of this inset and of its contents - void updateLabels(ParIterator const &); + void updateBuffer(ParIterator const &, UpdateType); /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// @@ -109,11 +108,7 @@ private: /// docstring getCaption(OutputParams const &) const; /// - docstring getCaptionText(OutputParams const &) const; - /// InsetFloatParams params_; - /// - docstring name_; };