RenderGraphic::RenderGraphic(InsetBase const * inset)
- : checksum_(0)
{
loader_.connect(boost::bind(&LyX::updateInset,
boost::cref(LyX::cref()), inset));
InsetBase const * inset)
: RenderBase(other),
loader_(other.loader_),
- params_(other.params_),
- checksum_(0)
+ params_(other.params_)
{
loader_.connect(boost::bind(&LyX::updateInset,
boost::cref(LyX::cref()), inset));
}
-bool RenderGraphic::hasFileChanged() const
-{
- unsigned long const new_checksum = loader_.checksum();
- bool const file_has_changed = checksum_ != new_checksum;
- if (file_has_changed)
- checksum_ = new_checksum;
- return file_has_changed;
-}
-
-
namespace {
bool displayGraphic(graphics::Params const & params)
return params.display != graphics::NoDisplay &&
lyxrc.display_graphics != graphics::NoDisplay;
}
-
+
string const statusMessage(graphics::Params const & params,
graphics::ImageStatus status)