]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.h
More headers.
[lyx.git] / src / insets / InsetInclude.h
index f495d1d9ed8eb612c07754a253e3fae9c58c54e4..6675a4bf2550b59f99fe8945476f72575fd27a66 100644 (file)
@@ -30,10 +30,6 @@ class Dimension;
 class LaTeXFeatures;
 class RenderMonitoredPreview;
 
-namespace support {
-class FileNameList;
-}
-
 /// for including tex/lyx files
 class InsetInclude : public InsetCommand {
 public:
@@ -74,7 +70,7 @@ public:
         *  Return an empty vector if the child doc is not loaded.
         *  \param buffer the Buffer containing this inset.
         */
-       support::FileNameList const &
+       EmbeddedFileList const &
                getBibfilesCache(Buffer const & buffer) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
@@ -92,11 +88,13 @@ public:
        ///
        void addPreview(graphics::PreviewLoader &) const;
        ///
-       void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
+       void addToToc(Buffer const &, ParConstIterator const &) const;
        ///
        void updateLabels(Buffer const & buffer, ParIterator const &);
        /// child document can be embedded
-       void registerEmbeddedFiles(Buffer const &, EmbeddedFiles &) const;
+       void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
+       ///
+       void updateEmbeddedFile(Buffer const & buf, EmbeddedFile const & file);
        ///
        static CommandInfo const * findInfo(std::string const &);
        ///
@@ -131,7 +129,9 @@ private:
        mutable docstring listings_label_;
 };
 
-
+/// return the child buffer if the file is a LyX doc and is loaded
+Buffer * getChildBuffer(Buffer const & buffer, InsetCommandParams const & params);
+       
 /// return loaded Buffer or zero if the file loading did not proceed.
 Buffer * loadIfNeeded(Buffer const & parent, InsetCommandParams const & params);