X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetInclude.h;h=c844075489f7034c65ae87ab42f912cf93920674;hb=e4c46abeb7385960c9dd42494e3c7c1f3e699b56;hp=357003a151c916fea070ecc15a2849ca31378b2d;hpb=1ef605f6254ef3f3b8cec5440a2e67e6f23a707b;p=lyx.git diff --git a/src/insets/InsetInclude.h b/src/insets/InsetInclude.h index 357003a151..c844075489 100644 --- a/src/insets/InsetInclude.h +++ b/src/insets/InsetInclude.h @@ -17,7 +17,8 @@ #include "RenderButton.h" -#include +#include "support/unique_ptr.h" + namespace lyx { @@ -35,6 +36,10 @@ namespace support { /// 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 &); @@ -64,6 +69,8 @@ public: /// void updateCommand(); + /// + void write(std::ostream &) const; /// \name Public functions inherited from Inset class //@{ @@ -79,6 +86,8 @@ public: 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 @@ -87,9 +96,10 @@ public: /// bool hasSettings() const { return true; } /// - int latex(otexstream &, 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; /// @@ -99,11 +109,12 @@ public: /// 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 @@ -154,7 +165,7 @@ private: docstring const include_label; /// The pointer never changes although *preview_'s contents may. - boost::scoped_ptr const preview_; + unique_ptr const preview_; /// mutable bool failedtoload_;