]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetExternal.h
index 67d1fb8aa2a51506c4442808398cc05fd54f2565..d281a0651941be49caf2248adcf383f4d9882c2f 100644 (file)
@@ -80,7 +80,7 @@ public:
        std::string const & templatename() const { return templatename_; }
 
        /// The external file.
-       support::DocFileName filename;
+       EmbeddedFile filename;
        /// How the inset is to be displayed by LyX.
        external::DisplayType display;
        /// The scale of the displayed graphic (if shown).
@@ -112,7 +112,7 @@ public:
        ///
        virtual ~InsetExternal();
        ///
-       virtual Inset::Code lyxCode() const { return EXTERNAL_CODE; }
+       virtual InsetCode lyxCode() const { return EXTERNAL_CODE; }
        ///
        virtual EDITABLE editable() const { return IS_EDITABLE; }
 
@@ -145,11 +145,13 @@ public:
        ///
        void addPreview(graphics::PreviewLoader &) const;
        ///
-       void edit(Cursor & cur, bool left);
+       void edit(Cursor & cur, bool front, EntryDirection entry_from);
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        /// external file can be embedded
-       void registerEmbeddedFiles(Buffer const &, EmbeddedFiles &) const;
+       void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
+       ///
+       void updateEmbeddedFile(Buffer const &, EmbeddedFile const &);
 
 protected:
        InsetExternal(InsetExternal const &);