#ifndef PREVIEWLOADER_H
#define PREVIEWLOADER_H
-#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
+#include "ColorCode.h"
namespace lyx {
/** We have accumulated several latex snippets with status "InQueue".
* Initiate their transformation into bitmap images.
*/
- void startLoading() const;
+ void startLoading(bool wait = false) const;
/** Connect and you'll be informed when the bitmap image file
* has been created and is ready for loading through
/// Which buffer owns this loader.
Buffer const & buffer() const;
+ /// The background color used
+ static ColorCode backgroundColor() { return Color_background; }
+ /// The foreground color used
+ static ColorCode foregroundColor() { return Color_preview; }
+
+ double displayPixelRatio() const ;
private:
/// noncopyable
/// 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