X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsConverter.h;h=f84b9e9b11b5e7cdcaffabff9a205948d8b8358f;hb=9b4a26a252b2da164fcd6aa84feed0a738b16c10;hp=f1b69c90a0fa331dd05adb36cc95a59fa1715da0;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/graphics/GraphicsConverter.h b/src/graphics/GraphicsConverter.h index f1b69c90a0..f84b9e9b11 100644 --- a/src/graphics/GraphicsConverter.h +++ b/src/graphics/GraphicsConverter.h @@ -17,14 +17,15 @@ #ifndef GRAPHICSCONVERTER_H #define GRAPHICSCONVERTER_H -#include -#include -#include +#include namespace lyx { + +namespace support { class FileName; } + namespace graphics { -class Converter : boost::noncopyable { +class Converter { public: /// Can the conversion be performed? static bool isReachable(std::string const & from_format_name, @@ -33,10 +34,10 @@ public: /** One Converter per conversion ensures that the (hidden) signal * is always connected to the expected slot. */ - Converter(std::string const & from_file, std::string const & to_file_base, + Converter(support::FileName const & from_file, std::string const & to_file_base, std::string const & from_format, std::string const & to_format); - /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy. + /// Needed for the pimpl ~Converter(); /// We are explicit about when we begin the conversion process. @@ -46,7 +47,8 @@ public: * finished. * If the conversion is succesful, then the listener is passed \c true. */ - typedef boost::signal1::slot_type slot_type; + typedef boost::signal sig_type; + typedef sig_type::slot_type slot_type; /// boost::signals::connection connect(slot_type const &) const; @@ -55,14 +57,17 @@ public: * If conversion fails or has not been completed, however, it * returns an empty string. */ - std::string const & convertedFile() const; + support::FileName const & convertedFile() const; private: + /// noncopyable + Converter(Converter const &); + void operator=(Converter const &); + /// Use the Pimpl idiom to hide the internals. class Impl; - /// The pointer never changes although *pimpl_'s contents may. - boost::scoped_ptr const pimpl_; + Impl * const pimpl_; }; } // namespace graphics