]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.h
Embedding: display a pin at the top left corner of embedded figures
[lyx.git] / src / insets / InsetWrap.h
index 05da26566e7d6ab06fd57eb5d52e7bee70687f7c..4a0c306a6be5470cd1180aee8109111437d9a178 100644 (file)
@@ -30,8 +30,12 @@ public:
        ///
        std::string type;
        ///
+       int lines;
+       ///
        std::string placement;
        ///
+       Length overhang;
+       ///
        Length width;
 };
 
@@ -51,7 +55,9 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       Inset::Code lyxCode() const { return Inset::WRAP_CODE; }
+       InsetCode lyxCode() const { return WRAP_CODE; }
+       ///
+       bool isMacroScope(Buffer const &) const { return true; }
        ///
        int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
@@ -64,7 +70,7 @@ public:
        ///
        virtual docstring const editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) const;
+       bool insetAllowed(InsetCode) const;
        ///
        bool showInsetDialog(BufferView *) const;
        ///
@@ -79,7 +85,7 @@ protected:
        ///
        virtual docstring name() const { return name_; }
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
        ///
        InsetWrapParams params_;