LibreOffice Module slideshow (master) 1
|
This class is the viewable representation of a draw document's background, associated to a specific View. More...
#include <viewbackgroundshape.hxx>
Public Member Functions | |
ViewBackgroundShape (ViewLayerSharedPtr xViewLayer, const ::basegfx::B2DRectangle &rShapeBounds) | |
Create a ViewBackgroundShape for the given View. More... | |
ViewBackgroundShape (const ViewBackgroundShape &)=delete | |
Forbid copy construction. More... | |
ViewBackgroundShape & | operator= (const ViewBackgroundShape &)=delete |
Forbid copy assignment. More... | |
const ViewLayerSharedPtr & | getViewLayer () const |
Query the associated view layer of this shape. More... | |
bool | render (const GDIMetaFileSharedPtr &rMtf) const |
Private Member Functions | |
bool | prefetch (const ::cppcanvas::CanvasSharedPtr &rDestinationCanvas, const GDIMetaFileSharedPtr &rMtf) const |
Prefetch bitmap for given canvas. More... | |
Private Attributes | |
ViewLayerSharedPtr | mpViewLayer |
The view layer this object is part of. More... | |
css::uno::Reference< css::rendering::XBitmap > | mxBitmap |
Generated content bitmap, already with correct output size. More... | |
GDIMetaFileSharedPtr | mpLastMtf |
The last metafile a render object was generated for. More... | |
mutable::basegfx::B2DHomMatrix | maLastTransformation |
The canvas, mpRenderer is associated with. More... | |
const ::basegfx::B2DRectangle | maBounds |
This class is the viewable representation of a draw document's background, associated to a specific View.
The class is able to render the associated background on View implementations.
Definition at line 43 of file viewbackgroundshape.hxx.
slideshow::internal::ViewBackgroundShape::ViewBackgroundShape | ( | ViewLayerSharedPtr | xViewLayer, |
const ::basegfx::B2DRectangle & | rShapeBounds | ||
) |
Create a ViewBackgroundShape for the given View.
rView | The associated View object. |
rShapeBounds | Bounds of the background shape, in document coordinate system. |
Definition at line 126 of file viewbackgroundshape.cxx.
References ENSURE_OR_THROW, maLastTransformation, mpViewLayer, and mxBitmap.
|
delete |
Forbid copy construction.
const ViewLayerSharedPtr & slideshow::internal::ViewBackgroundShape::getViewLayer | ( | ) | const |
Query the associated view layer of this shape.
Definition at line 138 of file viewbackgroundshape.cxx.
References mpViewLayer.
|
delete |
Forbid copy assignment.
|
private |
Prefetch bitmap for given canvas.
Definition at line 47 of file viewbackgroundshape.cxx.
References cppcanvas::BaseGfxFactory::createBitmap(), cppcanvas::VCLFactory::createRenderer(), basegfx::utils::createScaleTranslateB2DHomMatrix(), ENSURE_OR_RETURN_FALSE, ENSURE_OR_THROW, basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), basegfx::B2DRange::getRange(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), slideshow::internal::initSlideBackground(), maBounds, maLastTransformation, mpLastMtf, mpViewLayer, mxBitmap, SAL_INFO, and basegfx::B2DHomMatrix::set().
Referenced by render().
bool slideshow::internal::ViewBackgroundShape::render | ( | const GDIMetaFileSharedPtr & | rMtf | ) | const |
Definition at line 143 of file viewbackgroundshape.cxx.
References ENSURE_OR_RETURN_FALSE, basegfx::B2DHomMatrix::invert(), mpViewLayer, mxBitmap, prefetch(), SAL_INFO, basegfx::B2DHomMatrix::set(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 87 of file viewbackgroundshape.hxx.
Referenced by prefetch().
|
private |
The canvas, mpRenderer is associated with.
Definition at line 85 of file viewbackgroundshape.hxx.
Referenced by prefetch().
|
mutableprivate |
The last metafile a render object was generated for.
Definition at line 82 of file viewbackgroundshape.hxx.
Referenced by prefetch().
|
private |
The view layer this object is part of.
Definition at line 76 of file viewbackgroundshape.hxx.
Referenced by getViewLayer(), prefetch(), render(), and ViewBackgroundShape().
|
mutableprivate |
Generated content bitmap, already with correct output size.
Definition at line 79 of file viewbackgroundshape.hxx.
Referenced by prefetch(), and render().