class InsetFloat : public InsetCaptionable
{
public:
- InsetFloat(Buffer * buffer, std::string params_str);
+ InsetFloat(Buffer * buffer, std::string const & params_str);
///
static void string2params(std::string const &, InsetFloatParams &);
///
InsetFloatParams const & params() const { return params_; }
///
bool allowsCaptionVariation(std::string const &) const;
+ ///
+ LyXAlignment contentAlignment() const;
+ ///
+ bool forceParDirectionSwitch() const { return true; }
private:
///
void setCaptionType(std::string const & type);
int plaintext(odocstringstream & ods, OutputParams const & op,
size_t max_length = INT_MAX) const;
///
- int docbook(odocstream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const;
///
bool insetAllowed(InsetCode) const;
- /** returns false if, when outputing LaTeX, font changes should
+ /** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
bool inheritFont() const { return false; }
bool isPartOfTextSequence() const { return false; }
///
TexString getCaption(OutputParams const &) const;
+ ///
+ std::string getAlignment() const;
+ ///
+ OutputParams::CtObject CtObject(OutputParams const &) const { return OutputParams::CT_OMITOBJECT; }
InsetFloatParams params_;
};