]> git.lyx.org Git - lyx.git/blobdiff - src/EmbeddedFiles.h
Continue working on the embedding feature. An additional parameter updateFile is...
[lyx.git] / src / EmbeddedFiles.h
index b0d719ba858ce0bddb3cfe6424571819797abead..42b02f39c7142da43709ac3e949d7a79d8853783 100644 (file)
@@ -141,14 +141,13 @@ public:
 
        /// embedding status of this file
        bool embedded() const { return embedded_; }
-       /// set embedding status. updateFromExternal() should be called before this
-       /// to copy or sync the embedded file with external one.
+       /// set embedding status. 
        void setEmbed(bool embed);
 
        /// whether or not embedding is enabled in the current buffer
        bool enabled() const { return temp_path_ != ""; }
        /// enable embedding of this file
-       void enable(bool flag, Buffer const * buf);
+       void enable(bool flag, Buffer const * buf, bool updateFile);
 
        /// extract file, does not change embedding status
        bool extract() const;
@@ -160,7 +159,7 @@ public:
        /// embedded file instead of external file. To make sure inset pointers 
        /// are up to date, please make sure there is no modification to the
        /// document between EmbeddedFiles::update() and this function.
-       void updateInsets(Buffer const * buf) const;
+       void updateInsets() const;
 
        /// Check readability of availableFile
        bool isReadableFile() const;
@@ -198,7 +197,7 @@ class EmbeddedFileList : public std::vector<EmbeddedFile> {
 public:
        /// set buffer params embedded flag. Files will be updated or extracted
        /// if such an operation fails, enable will fail.
-       void enable(bool flag, Buffer & buffer);
+       void enable(bool flag, Buffer & buffer, bool updateFile);
 
        /// add a file item.
        /* \param file Embedded file to add