#include "RenderButton.h"
-#include <boost/scoped_ptr.hpp>
+#include "support/unique_ptr.h"
+
namespace lyx {
/// for including tex/lyx files
class InsetInclude : public InsetCommand {
+ // Disable assignment operator, since it is not used, and cannot be
+ // implemented consistently with the copy constructor, because
+ // include_label is const.
+ InsetInclude & operator=(InsetInclude const &);
public:
///
InsetInclude(Buffer * buf, InsetCommandParams const &);
* \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; }
///
void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype) const;
+ UpdateType utype, TocBackend & backend) const;
///
void updateBuffer(ParIterator const &, UpdateType);
///
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.
- boost::scoped_ptr<RenderMonitoredPreview> const preview_;
+ unique_ptr<RenderMonitoredPreview> const preview_;
- ///
+ ///
mutable bool failedtoload_;
/// cache
mutable bool set_label_;