]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.h
Embedding: display a pin at the top left corner of embedded figures
[lyx.git] / src / insets / InsetFloat.h
index ca18156b77c914c435d130e62f194f1c0cc821cc..7800d55c96d3c2b8351537483f226fccb36d2322 100644 (file)
@@ -57,7 +57,9 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
+       InsetCode lyxCode() const { return FLOAT_CODE; }
+       ///
+       bool isMacroScope(Buffer const &) const { return true; }
        ///
        int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
@@ -70,7 +72,7 @@ public:
        ///
        virtual docstring const editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) const;
+       bool insetAllowed(InsetCode) const;
        /** returns true if, when outputing LaTeX, font changes should
            be closed before generating this inset. This is needed for
            insets that may contain several paragraphs */
@@ -91,7 +93,7 @@ protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
        ///
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        InsetFloatParams params_;
        ///