LibreOffice Module slideshow (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
slideshow::internal::ViewBackgroundShape Class Reference

This class is the viewable representation of a draw document's background, associated to a specific View. More...

#include <viewbackgroundshape.hxx>

Collaboration diagram for slideshow::internal::ViewBackgroundShape:
[legend]

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...
 
ViewBackgroundShapeoperator= (const ViewBackgroundShape &)=delete
 Forbid copy assignment. More...
 
const ViewLayerSharedPtrgetViewLayer () 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ViewBackgroundShape() [1/2]

slideshow::internal::ViewBackgroundShape::ViewBackgroundShape ( ViewLayerSharedPtr  xViewLayer,
const ::basegfx::B2DRectangle rShapeBounds 
)

Create a ViewBackgroundShape for the given View.

Parameters
rViewThe associated View object.
rShapeBoundsBounds of the background shape, in document coordinate system.

Definition at line 126 of file viewbackgroundshape.cxx.

References ENSURE_OR_THROW, maLastTransformation, mpViewLayer, and mxBitmap.

◆ ViewBackgroundShape() [2/2]

slideshow::internal::ViewBackgroundShape::ViewBackgroundShape ( const ViewBackgroundShape )
delete

Forbid copy construction.

Member Function Documentation

◆ getViewLayer()

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.

◆ operator=()

ViewBackgroundShape & slideshow::internal::ViewBackgroundShape::operator= ( const ViewBackgroundShape )
delete

Forbid copy assignment.

◆ prefetch()

bool slideshow::internal::ViewBackgroundShape::prefetch ( const ::cppcanvas::CanvasSharedPtr rDestinationCanvas,
const GDIMetaFileSharedPtr rMtf 
) const
private

◆ render()

bool slideshow::internal::ViewBackgroundShape::render ( const GDIMetaFileSharedPtr rMtf) const

Member Data Documentation

◆ maBounds

const ::basegfx::B2DRectangle slideshow::internal::ViewBackgroundShape::maBounds
private

Definition at line 87 of file viewbackgroundshape.hxx.

Referenced by prefetch().

◆ maLastTransformation

mutable::basegfx::B2DHomMatrix slideshow::internal::ViewBackgroundShape::maLastTransformation
private

The canvas, mpRenderer is associated with.

Definition at line 85 of file viewbackgroundshape.hxx.

Referenced by prefetch().

◆ mpLastMtf

GDIMetaFileSharedPtr slideshow::internal::ViewBackgroundShape::mpLastMtf
mutableprivate

The last metafile a render object was generated for.

Definition at line 82 of file viewbackgroundshape.hxx.

Referenced by prefetch().

◆ mpViewLayer

ViewLayerSharedPtr slideshow::internal::ViewBackgroundShape::mpViewLayer
private

The view layer this object is part of.

Definition at line 76 of file viewbackgroundshape.hxx.

Referenced by getViewLayer(), prefetch(), render(), and ViewBackgroundShape().

◆ mxBitmap

css::uno::Reference< css::rendering::XBitmap > slideshow::internal::ViewBackgroundShape::mxBitmap
mutableprivate

Generated content bitmap, already with correct output size.

Definition at line 79 of file viewbackgroundshape.hxx.

Referenced by prefetch(), and render().


The documentation for this class was generated from the following files: