]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsConverter.h
Rename WriteStream to TeXMathStream.
[lyx.git] / src / graphics / GraphicsConverter.h
index d3d0b8155daf26fcc56329ec50fdb1480f574f9e..582c3f08d474a3d0f1ca1d7319e49bcbf623781d 100644 (file)
@@ -17,7 +17,9 @@
 #ifndef GRAPHICSCONVERTER_H
 #define GRAPHICSCONVERTER_H
 
-#include <boost/signals2.hpp>
+#include "support/signals.h"
+
+#include <memory>
 
 namespace lyx {
 
@@ -38,20 +40,18 @@ public:
                  support::FileName const & from_file, std::string const & to_file_base,
                  std::string const & from_format, std::string const & to_format);
 
-       /// Needed for the pimpl
-       ~Converter();
-
        /// We are explicit about when we begin the conversion process.
        void startConversion() const;
 
        /** Connect and you'll be informed when the conversion process has
         *  finished.
         *  If the conversion is successful, then the listener is passed \c true.
+        *  The connection is closed when this is destroyed.
         */
-       typedef boost::signals2::signal<void(bool)> sig_type;
+       typedef signal<void(bool)> sig_type;
        typedef sig_type::slot_type slot_type;
        ///
-       boost::signals2::connection connect(slot_type const &) const;
+       connection connect(slot_type const &) const;
 
        /** If the conversion is successful, this returns the name of the
         *  resulting file.
@@ -68,7 +68,7 @@ private:
        /// Use the Pimpl idiom to hide the internals.
        class Impl;
        /// The pointer never changes although *pimpl_'s contents may.
-       Impl * const pimpl_;
+       std::shared_ptr<Impl> const pimpl_;
 };
 
 } // namespace graphics