]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.h
Change string
[lyx.git] / src / insets / InsetExternal.h
index 94d48e597b68083b1c5ce41c10a5c4fc3415fda2..97c4b7a44088c42bfb0d30c5df3b65a6e0e7d466 100644 (file)
@@ -112,6 +112,8 @@ public:
        ///
        ~InsetExternal();
        ///
+       void setBuffer(Buffer & buffer);
+       ///
        InsetCode lyxCode() const { return EXTERNAL_CODE; }
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
@@ -146,16 +148,17 @@ public:
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        /// external file can be embedded
-       void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
+       void registerEmbeddedFiles(EmbeddedFileList &) const;
        ///
-       void updateEmbeddedFile(Buffer const &, EmbeddedFile const &);
+       void updateEmbeddedFile(EmbeddedFile const &);
 
 protected:
        InsetExternal(InsetExternal const &);
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       Inset * clone() const;
+       ///
+       Inset * clone() const { return new InsetExternal(*this); }
 
        /** This method is connected to the graphics loader, so we are
         *  informed when the image has been loaded.