]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.h
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetExternal.h
index 31af0458a18b0e7f40d9b5504126b2bbcea7b82f..67d1fb8aa2a51506c4442808398cc05fd54f2565 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "Inset.h"
 #include "ExternalTransforms.h"
+#include "EmbeddedFiles.h"
 
 #include "support/FileName.h"
 #include "support/Translator.h"
@@ -116,7 +117,7 @@ public:
        virtual EDITABLE editable() const { return IS_EDITABLE; }
 
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -147,13 +148,15 @@ public:
        void edit(Cursor & cur, bool left);
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       /// external file can be embedded
+       void registerEmbeddedFiles(Buffer const &, EmbeddedFiles &) const;
 
 protected:
        InsetExternal(InsetExternal const &);
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
        /** This method is connected to the graphics loader, so we are
         *  informed when the image has been loaded.