* 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.
*/
std::string type;
///
std::string placement;
- ///
+ /// span columns
bool wide;
///
bool sideways;
{
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 &);
+ void setWide(bool w, bool update_label = true);
+ ///
+ void setSideways(bool s, bool update_label = true);
///
- void setSideways(bool s, BufferParams const &);
+ void setSubfloat(bool s, bool update_label = true);
///
- void setSubfloat(bool s, BufferParams const &);
+ void setNewLabel();
///
InsetFloatParams const & params() const { return params_; }
private:
///
- docstring name() const { return name_; }
+ docstring layoutName() const;
+ ///
+ docstring toolTip(BufferView const & bv, int x, int y) const;
///
void write(std::ostream & os) const;
///
///
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 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);
///
docstring getCaption(OutputParams const &) const;
///
InsetFloatParams params_;
- ///
- docstring name_;
};