X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloat.h;h=53c584c40abe974ad74e0c4bc3cb5046dd272053;hb=9176e60b7bcab3e355521a86ddb4c2778cd9b29e;hp=e05f5678e2f2311dcc189248c47d9902d2ba4d8d;hpb=c0000cc405063044fb4eca3f04ab35f69fe3dd74;p=lyx.git diff --git a/src/insets/InsetFloat.h b/src/insets/InsetFloat.h index e05f5678e2..53c584c40a 100644 --- a/src/insets/InsetFloat.h +++ b/src/insets/InsetFloat.h @@ -25,7 +25,8 @@ 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; /// @@ -34,6 +35,8 @@ public: std::string type; /// std::string placement; + /// + std::string alignment; /// span columns bool wide; /// @@ -54,7 +57,7 @@ public: 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 &); /// @@ -71,6 +74,10 @@ public: 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); @@ -113,6 +120,10 @@ private: 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_; };