Cache::~Cache()
-{}
+{
+ delete pimpl_;
+}
std::vector<string> Cache::loadableFormats() const
#ifndef GRAPHICSCACHE_H
#define GRAPHICSCACHE_H
-#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <vector>
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
- boost::scoped_ptr<Impl> const pimpl_;
+ Impl * const pimpl_;
};
} // namespace graphics
CacheItem::~CacheItem()
-{}
+{
+ delete pimpl_;
+}
FileName const & CacheItem::filename() const
#include "GraphicsTypes.h"
-#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
public:
///
CacheItem(support::FileName const & file);
-
- /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
+ /// Needed for the pimpl
~CacheItem();
///
/// Use the Pimpl idiom to hide the internals.
class Impl;
-
/// The pointer never changes although *pimpl_'s contents may.
- boost::scoped_ptr<Impl> const pimpl_;
+ Impl * const pimpl_;
};
} // namespace graphics
{}
-// Empty d-tor out-of-line to keep boost::scoped_ptr happy.
Converter::~Converter()
-{}
+{
+ delete pimpl_;
+}
void Converter::startConversion() const
#ifndef GRAPHICSCONVERTER_H
#define GRAPHICSCONVERTER_H
-#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
namespace lyx {
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.
/// Use the Pimpl idiom to hide the internals.
class Impl;
-
/// The pointer never changes although *pimpl_'s contents may.
- boost::scoped_ptr<Impl> const pimpl_;
+ Impl * const pimpl_;
};
} // namespace graphics
Loader::~Loader()
-{}
+{
+ delete pimpl_;
+}
Loader & Loader::operator=(Loader const & other)
#include "GraphicsTypes.h"
-#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
namespace lyx {
Loader(support::FileName const & file_with_path, Params const &);
///
Loader(Loader const &);
-
- /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
+ /// Needed for the pimpl
~Loader();
Loader & operator=(Loader const &);
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
- boost::scoped_ptr<Impl> const pimpl_;
+ Impl * const pimpl_;
};
} // namespace graphics
PreviewImage::~PreviewImage()
-{}
+{
+ delete pimpl_;
+}
string const & PreviewImage::snippet() const
#ifndef PREVIEWIMAGE_H
#define PREVIEWIMAGE_H
-#include <boost/scoped_ptr.hpp>
-#include <string>
+#include "support/strfwd.h"
namespace lyx {
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
- boost::scoped_ptr<Impl> const pimpl_;
+ Impl * const pimpl_;
};
} // namespace graphics
namespace lyx {
-
namespace graphics {
class PreviewLoader::Impl : public boost::signals::trackable {
PreviewLoader::~PreviewLoader()
-{}
+{
+ delete pimpl_;
+}
PreviewImage const * PreviewLoader::preview(string const & latex_snippet) const
#ifndef PREVIEWLOADER_H
#define PREVIEWLOADER_H
-#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
- boost::scoped_ptr<Impl> const pimpl_;
+ Impl * const pimpl_;
};
} // namespace graphics
Previews::~Previews()
-{}
+{
+ delete pimpl_;
+}
PreviewLoader & Previews::loader(Buffer const & buffer) const
#ifndef PREVIEWS_H
#define PREVIEWS_H
-#include <boost/scoped_ptr.hpp>
-
namespace lyx {
class Buffer;
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
- boost::scoped_ptr<Impl> const pimpl_;
+ Impl * const pimpl_;
};
} // namespace graphics