#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 &);
///
void updateCommand();
+ ///
+ void write(std::ostream &) const;
/// \name Public functions inherited from Inset class
//@{
DisplayType display() const;
///
InsetCode lyxCode() const { return INCLUDE_CODE; }
+ ///
+ docstring layoutName() const;
/** Fills \c key
* \param keys the list of bibkeys in the child buffer.
* \param it not used here
///
bool hasSettings() const { return true; }
///
- int latex(odocstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const;
///
- int plaintext(odocstream &, OutputParams const &) const;
+ int plaintext(odocstringstream & ods, OutputParams const & op,
+ size_t max_length = INT_MAX) const;
///
int docbook(odocstream &, OutputParams const &) const;
///
///
void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
///
- void addToToc(DocIterator const &) const;
+ void addToToc(DocIterator const & di, bool output_active,
+ UpdateType utype) const;
///
void updateBuffer(ParIterator const &, UpdateType);
///
- docstring contextMenuName() const;
+ std::string contextMenuName() const;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
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_;