namespace lyx {
+struct TexString;
+
+
class InsetFloatParams
{
public:
///
- InsetFloatParams() : type("senseless"), wide(false), sideways(false), subfloat(false) {}
+ InsetFloatParams() : type("senseless"), placement("document"), alignment("document"),
+ wide(false), sideways(false), subfloat(false) {}
///
void write(std::ostream & os) const;
///
std::string type;
///
std::string placement;
+ ///
+ std::string alignment;
/// span columns
bool wide;
///
InsetFloatParams const & params() const { return params_; }
///
bool allowsCaptionVariation(std::string const &) const;
+ ///
+ LyXAlignment contentAlignment() const;
private:
///
void setCaptionType(std::string const & type);
void doDispatch(Cursor & cur, FuncRequest & cmd);
///
Inset * clone() const { return new InsetFloat(*this); }
+ /// Is the content of this inset part of the immediate (visible) text sequence?
+ bool isPartOfTextSequence() const { return false; }
///
- docstring getCaption(OutputParams const &) const;
+ TexString getCaption(OutputParams const &) const;
///
+ std::string getAlignment() const;
+
InsetFloatParams params_;
};