- Params const & params(void) const;
- /// set the parameters
- void set(Params const & params);
-
- ///
- virtual Inset * clone() const;
- ///
- Inset::Code lyxCode() const { return Inset::INCLUDE_CODE; }
- /// This returns the list of labels on the child buffer
- std::vector<string> const getLabelList() const;
- /// This returns the list of bibkeys on the child buffer
- void fillWithBibKeys(std::vector<std::pair<string,string> > & keys) const;
+ InsetCommandParams const & params() const;
+
+ ///
+ InsetBase::Code lyxCode() const { return InsetBase::INCLUDE_CODE; }
+ /** Fills \c list
+ * \param buffer the Buffer containing this inset.
+ * \param list the list of labels in the child buffer.
+ */
+ void getLabelList(Buffer const & buffer,
+ std::vector<docstring> & list) const;
+ /** Fills \c keys
+ * \param buffer the Buffer containing this inset.
+ * \param keys the list of bibkeys in the child buffer.
+ */
+ void fillWithBibKeys(Buffer const & buffer,
+ std::vector<std::pair<std::string, docstring> > & keys) const;
+ /** Update the cache with all bibfiles in use of the child buffer
+ * (including bibfiles of grandchild documents).
+ * Does nothing if the child document is not loaded to prevent
+ * automatic loading of all child documents upon loading the master.
+ * \param buffer the Buffer containing this inset.
+ */
+ void updateBibfilesCache(Buffer const & buffer);
+ /** 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.
+ */
+ std::vector<support::FileName> const &
+ getBibfilesCache(Buffer const & buffer) const;
+ ///
+ EDITABLE editable() const { return IS_EDITABLE; }
+ ///
+ void write(Buffer const &, std::ostream &) const;
+ ///
+ void read(Buffer const &, LyXLex &);
+ ///
+ int latex(Buffer const &, odocstream &,
+ OutputParams const &) const;
+ ///
+ int plaintext(Buffer const &, odocstream &,
+ OutputParams const &) const;
+ ///
+ int docbook(Buffer const &, odocstream &,
+ OutputParams const &) const;