X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloat.h;h=62b5873b9024520e4eb570dad802bf1cce77a3bc;hb=88e5e5fd345c280b0927ad84785657cbc9e55f77;hp=9c202678fc5557a8a16fc56ba25f0b7e1e09e779;hpb=f4f68a57649d4362039a7779b49b65fc557e5bff;p=lyx.git diff --git a/src/insets/InsetFloat.h b/src/insets/InsetFloat.h index 9c202678fc..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,10 +114,12 @@ 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; /// - void getCaption(otexstream & os, OutputParams const & runparams) const; + std::string getAlignment() const; InsetFloatParams params_; };