class InsetFloatParams {
public:
///
- InsetFloatParams() : wide(false), sideways(false) {}
+ InsetFloatParams() : wide(false), sideways(false), subfloat(false) {}
///
void write(std::ostream & os) const;
///
bool wide;
///
bool sideways;
+ ///
+ bool subfloat;
};
class InsetFloat : public InsetCollapsable {
public:
///
- InsetFloat(BufferParams const &, std::string const &);
+ InsetFloat(Buffer const &, std::string const &);
///
~InsetFloat();
///
docstring name() const { return name_; }
///
- void write(Buffer const & buf, std::ostream & os) const;
+ void write(std::ostream & os) const;
///
- void read(Buffer const & buf, Lexer & lex);
+ void read(Lexer & lex);
///
void validate(LaTeXFeatures & features) const;
///
- Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
+ InsetCode lyxCode() const { return FLOAT_CODE; }
///
- 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(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 */
///
void sideways(bool s, BufferParams const &);
///
- bool showInsetDialog(BufferView *) const;
+ void subfloat(bool s, BufferParams const &);
+ ///
+ bool showInsetDialog(BufferView *) const;
///
InsetFloatParams const & params() const { return params_; }
+private:
///
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:
+ void updateLabels(ParIterator const &);
+ ///
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ Inset * clone() const { return new InsetFloat(*this); }
///
- virtual std::auto_ptr<Inset> doClone() const;
+ docstring getCaption(OutputParams const &) const;
///
InsetFloatParams params_;
///