X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloat.h;h=62b5873b9024520e4eb570dad802bf1cce77a3bc;hb=ebc2b1295a0464dde6c20a09ddc249c463a21c79;hp=c58be580b1249b9efd81fd7f03ab71e66fc1a1d0;hpb=9b7ccbfc8016398705583d6973395dfb46dceb8f;p=lyx.git diff --git a/src/insets/InsetFloat.h b/src/insets/InsetFloat.h index c58be580b1..62b5873b90 100644 --- a/src/insets/InsetFloat.h +++ b/src/insets/InsetFloat.h @@ -18,11 +18,15 @@ 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; /// @@ -31,6 +35,8 @@ public: std::string type; /// std::string placement; + /// + std::string alignment; /// span columns bool wide; /// @@ -68,6 +74,8 @@ public: InsetFloatParams const & params() const { return params_; } /// bool allowsCaptionVariation(std::string const &) const; + /// + LyXAlignment contentAlignment() const; private: /// void setCaptionType(std::string const & type); @@ -106,9 +114,13 @@ private: 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_; };