#include "Dimension.h"
-#include <boost/scoped_ptr.hpp>
+#include "support/unique_ptr.h"
+
namespace lyx {
~InsetPreview();
///
InsetPreview(InsetPreview const & other);
+ ///
+ InsetPreview & operator=(InsetPreview const & other);
/// \name Methods inherited from Inset class
//@{
InsetCode lyxCode() const { return PREVIEW_CODE; }
- docstring name() const { return from_ascii("Preview"); }
+ docstring layoutName() const { return from_ascii("Preview"); }
bool descendable(BufferView const & /*bv*/) const { return true; }
- docstring contextMenu(BufferView const &, int, int) const
- { return from_ascii("context-preview"); }
+ std::string contextMenuName() const
+ { return "context-preview"; }
void metrics(MetricsInfo & mi, Dimension & dim) const;
void preparePreview(DocIterator const & pos) const;
///
- boost::scoped_ptr<RenderPreview> preview_;
- ///
- mutable bool use_preview_;
+ unique_ptr<RenderPreview> preview_;
-private:
- ///
- mutable Dimension dim_;
};