62 const sal_Int32 nWidth);
80 const Size aPreviewPixelSize,
81 const bool bObeyHighContrastMode,
82 const bool bDisplayPresentationObjects =
true);
90 const Size& rPreviewPixelSize,
91 const OUString& sSubstitutionText);
115 const Size& rPixelSize,
116 const bool bObeyHighContrastMode);
119 const bool bDisplayPresentationObjects);
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
static const int snSubstitutionTextSize
void ProvideView(DrawDocShell *pDocShell)
When mpView is empty then create a new view and initialize it.
Image RenderSubstitution(const Size &rPreviewPixelSize, const OUString &sSubstitutionText)
Render an image that contains the given substitution text instead of a slide preview.
virtual ~PreviewRenderer() override
::std::unique_ptr< DrawView > mpView
Image ScaleBitmap(const BitmapEx &rBitmap, int nWidth)
Scale the given bitmap by keeping its aspect ratio to the desired width.
ScopedVclPtr< VirtualDevice > mpPreviewDevice
Image RenderPage(const SdPage *pPage, const sal_Int32 nWidth)
Render a page with the given pixel size.
static const int snFrameWidth
void SetupOutputSize(const SdPage &rPage, const Size &rPixelSize)
Set up the map mode so that the given page is renderer into a bitmap with the specified width.
DrawDocShell * mpDocShellOfView
void PaintPage(const SdPage *pPage, const bool bDisplayPresentationObjects)
bool Initialize(const SdPage *pPage, const Size &rPixelSize, const bool bObeyHighContrastMode)
void PaintSubstitutionText(const OUString &rSubstitutionText)
PreviewRenderer(const bool bPaintFrame=true)
Create a new preview renderer that takes some of its initial values from the given output device.