]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.h
Check character encodability with pass-thru in command insets
[lyx.git] / src / insets / InsetFloat.h
index e05f5678e2f2311dcc189248c47d9902d2ba4d8d..62b5873b9024520e4eb570dad802bf1cce77a3bc 100644 (file)
@@ -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;
        ///
@@ -71,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);
@@ -113,6 +118,8 @@ private:
        bool isPartOfTextSequence() const { return false; }
        ///
        TexString getCaption(OutputParams const &) const;
+       ///
+       std::string getAlignment() const;
 
        InsetFloatParams params_;
 };