X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetInclude.h;h=69c778e2723d84db5281a1c74644886a8a08867a;hb=ebc2b1295a0464dde6c20a09ddc249c463a21c79;hp=e616f55626de309499834341d357577d30ff2874;hpb=3391fed36a574fb729f243888258d1b6d45b0251;p=lyx.git diff --git a/src/insets/InsetInclude.h b/src/insets/InsetInclude.h old mode 100644 new mode 100755 index e616f55626..69c778e272 --- a/src/insets/InsetInclude.h +++ b/src/insets/InsetInclude.h @@ -59,14 +59,6 @@ public: */ 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(); /// @@ -92,7 +84,7 @@ public: * \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; } /// @@ -125,6 +117,9 @@ public: 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: @@ -142,6 +137,8 @@ private: 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 //@{ @@ -159,15 +156,15 @@ private: 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 const preview_; - /// + /// mutable bool failedtoload_; /// cache mutable bool set_label_; @@ -175,6 +172,7 @@ private: mutable docstring listings_label_; InsetLabel * label_; mutable Buffer * child_buffer_; + mutable bool file_exist_; };