*/
void updateBibfilesCache();
- /** Return the cache with all bibfiles in use of the child buffer
- * (including bibfiles of grandchild documents).
- * Return an empty vector if the child doc is not loaded.
- * \param buffer the Buffer containing this inset.
- */
- support::FileNameList const &
- getBibfilesCache() const;
-
///
void updateCommand();
///
* \param keys the list of bibkeys in the child buffer.
* \param it not used here
*/
- void collectBibKeys(InsetIterator const &) const;
+ void collectBibKeys(InsetIterator const &, support::FileNameList &) const;
///
bool hasSettings() const { return true; }
///
static std::string defaultCommand() { return "include"; }
///
static bool isCompatibleCommand(std::string const & s);
+ ///
+ bool needsCProtection(bool const maintext = false,
+ bool const fragile = false) const;
//@}
protected:
void editIncluded(std::string const & file);
///
bool isChildIncluded() const;
+ /// check whether the included file exist
+ bool includedFileExist() const;
/// \name Private functions inherited from Inset class
//@{
void setParams(InsetCommandParams const & params);
/// get the text displayed on the button
docstring screenLabel() const;
- //@}
-
+ //@}
+
/// holds the entity name that defines the file location (SGML)
docstring const include_label;
/// The pointer never changes although *preview_'s contents may.
unique_ptr<RenderMonitoredPreview> const preview_;
- ///
+ ///
mutable bool failedtoload_;
/// cache
mutable bool set_label_;
mutable docstring listings_label_;
InsetLabel * label_;
mutable Buffer * child_buffer_;
+ mutable bool file_exist_;
};