mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Add copy constructor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7090 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fb5ff81c81
commit
5b4e90488c
@ -1,3 +1,7 @@
|
||||
2003-06-03 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* GraphicsLoader.[Ch] (Loader): add copy constructor.
|
||||
|
||||
2003-05-23 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
|
||||
|
@ -38,9 +38,10 @@ struct Loader::Impl : boost::signals::trackable {
|
||||
void resetParams(Params const &);
|
||||
///
|
||||
void createPixmap();
|
||||
|
||||
///
|
||||
void startLoading();
|
||||
///
|
||||
Params const & params() const { return params_; }
|
||||
|
||||
/// The loading status of the image.
|
||||
ImageStatus status_;
|
||||
@ -84,6 +85,11 @@ Loader::Loader(string const & file, Params const & params)
|
||||
}
|
||||
|
||||
|
||||
Loader::Loader(Loader const & other)
|
||||
: pimpl_(new Impl(other.pimpl_->params()))
|
||||
{}
|
||||
|
||||
|
||||
Loader::~Loader()
|
||||
{}
|
||||
|
||||
|
@ -46,6 +46,8 @@ public:
|
||||
Loader(string const & file_with_path, DisplayType = ColorDisplay);
|
||||
/// The image is transformed before display.
|
||||
Loader(string const & file_with_path, Params const &);
|
||||
///
|
||||
Loader(Loader const &);
|
||||
|
||||
/// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
|
||||
~Loader();
|
||||
|
Loading…
Reference in New Issue
Block a user