]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.h
Generalize the protection of brackets in citation arguments
[lyx.git] / src / insets / InsetInclude.h
index 2583f41406fb0cdf22e1db6e1290a5986652ef39..e616f55626de309499834341d357577d30ff2874 100644 (file)
@@ -17,7 +17,8 @@
 
 #include "RenderButton.h"
 
-#include <boost/scoped_ptr.hpp>
+#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
        //@{
@@ -91,7 +98,8 @@ public:
        ///
        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;
        ///
@@ -101,7 +109,8 @@ public:
        ///
        void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
        ///
-       void addToToc(DocIterator const &) const;
+       void addToToc(DocIterator const & di, bool output_active,
+                                 UpdateType utype, TocBackend & backend) const;
        ///
        void updateBuffer(ParIterator const &, UpdateType);
        ///
@@ -156,7 +165,7 @@ private:
        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_;