X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetInclude.h;h=0e14405a8a6305abb774125c33f1cb757fe65c8e;hb=67e70c6c022fa445cd654937faeb87955e3bca7a;hp=5dc660e8d47c5d66c0a9b3e606518bfe4ce38454;hpb=aeb997e3f0e9f0fb3f3449876e55b1ecbd970e41;p=lyx.git diff --git a/src/insets/InsetInclude.h b/src/insets/InsetInclude.h index 5dc660e8d4..0e14405a8a 100644 --- a/src/insets/InsetInclude.h +++ b/src/insets/InsetInclude.h @@ -70,9 +70,9 @@ public: * \param buffer the Buffer containing this inset. */ support::FileNameList const & - getBibfilesCache(Buffer const & buffer) const; + getBibfilesCache() const; /// - EDITABLE editable() const { return IS_EDITABLE; } + bool hasSettings() const { return true; } /// int latex(odocstream &, OutputParams const &) const; /// @@ -86,6 +86,8 @@ public: /// void addToToc(DocIterator const &); /// + void updateCommand(); + /// void updateLabels(ParIterator const &); /// static ParamInfo const & findInfo(std::string const &); @@ -95,10 +97,8 @@ public: static bool isCompatibleCommand(std::string const & s); /// docstring contextMenu(BufferView const & bv, int x, int y) const; - /// \return the child buffer if the file is a LyX doc and is loaded - Buffer * getChildBuffer(Buffer const & buffer) const; - /// \return loaded Buffer or zero if the file loading did not proceed. - Buffer * loadIfNeeded(Buffer const & parent) const; + /// \return the child buffer if the file is a LyX doc and could be loaded + Buffer * getChildBuffer() const; protected: InsetInclude(InsetInclude const &); /// @@ -113,6 +113,8 @@ private: */ void fileChanged() const; + /// \return loaded Buffer or zero if the file loading did not proceed. + Buffer * loadIfNeeded() const; /// launch external application void editIncluded(std::string const & file); /// set the parameters @@ -125,11 +127,14 @@ private: /// The pointer never changes although *preview_'s contents may. boost::scoped_ptr const preview_; + /// + mutable bool failedtoload_; /// cache mutable bool set_label_; mutable RenderButton button_; mutable docstring listings_label_; InsetLabel * label_; + mutable Buffer * child_buffer_; };