/**
* \file PreviewImage.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include "PreviewImage.h"
#include "PreviewLoader.h"
#include "GraphicsImage.h"
///
~Impl();
///
- Image const * image(Inset const &, BufferView const &);
+ Image const * image();
///
void statusChanged();
}
-Image const * PreviewImage::image(Inset const & inset,
- BufferView const & bv) const
+Image const * PreviewImage::image() const
{
- return pimpl_->image(inset, bv);
+ return pimpl_->image();
}
: parent_(p), ploader_(l), iloader_(bf),
snippet_(s), ascent_frac_(af)
{
- iloader_.statusChanged.connect(
- boost::bind(&Impl::statusChanged, this));
+ iloader_.connect(boost::bind(&Impl::statusChanged, this));
}
}
-Image const * PreviewImage::Impl::image(Inset const & inset,
- BufferView const & bv)
+Image const * PreviewImage::Impl::image()
{
if (iloader_.status() == WaitingToLoad)
- iloader_.startLoading(inset, bv);
+ iloader_.startLoading();
return iloader_.image();
}
case Ready:
lyx::unlink(iloader_.filename());
- ploader_.imageReady(parent_);
+ ploader_.emitSignal(parent_);
break;
}
}