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

Little wrapper encapsulating an XBitmap. More...

#include <slidebitmap.hxx>

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

Public Member Functions

 SlideBitmap (const ::cppcanvas::BitmapSharedPtr &rBitmap)
 
 SlideBitmap (const SlideBitmap &)=delete
 
SlideBitmapoperator= (const SlideBitmap &)=delete
 
bool draw (const ::cppcanvas::CanvasSharedPtr &rCanvas) const
 
::basegfx::B2ISize getSize () const
 
void move (const ::basegfx::B2DPoint &rNewPos)
 
void clip (const ::basegfx::B2DPolyPolygon &rClipPoly)
 
const css::uno::Reference< css::rendering::XBitmap > & getXBitmap () const
 

Private Attributes

::basegfx::B2DPoint maOutputPos
 
::basegfx::B2DPolyPolygon maClipPoly
 
css::uno::Reference< css::rendering::XBitmap > mxBitmap
 

Detailed Description

Little wrapper encapsulating an XBitmap.

This is to insulate us from changes to the preferred transport format for bitmaps (using a sole XBitmap here is a hack, since it is not guaranteed to work, or to work without data loss, across different canvases). And since we don't want to revert to a VCL Bitmap here, have to wait until basegfx bitmap tooling is ready.

TODO(F2): Add support for Canvas-independent bitmaps here. Then, Slide::getInitialSlideBitmap and Slide::getFinalSlideBitmap must also be adapted (they no longer need a Canvas ptr, which is actually a hack now).

Definition at line 54 of file slidebitmap.hxx.

Constructor & Destructor Documentation

◆ SlideBitmap() [1/2]

slideshow::internal::SlideBitmap::SlideBitmap ( const ::cppcanvas::BitmapSharedPtr rBitmap)
explicit

Definition at line 39 of file slidebitmap.cxx.

References ENSURE_OR_THROW, mxBitmap, and mxBitmap.

◆ SlideBitmap() [2/2]

slideshow::internal::SlideBitmap::SlideBitmap ( const SlideBitmap )
delete

Member Function Documentation

◆ clip()

void slideshow::internal::SlideBitmap::clip ( const ::basegfx::B2DPolyPolygon rClipPoly)

Definition at line 100 of file slidebitmap.cxx.

References maClipPoly.

◆ draw()

bool slideshow::internal::SlideBitmap::draw ( const ::cppcanvas::CanvasSharedPtr rCanvas) const

◆ getSize()

basegfx::B2ISize slideshow::internal::SlideBitmap::getSize ( ) const

Definition at line 90 of file slidebitmap.cxx.

References mxBitmap.

◆ getXBitmap()

const css::uno::Reference< css::rendering::XBitmap > & slideshow::internal::SlideBitmap::getXBitmap ( ) const

Definition at line 105 of file slidebitmap.cxx.

References mxBitmap.

◆ move()

void slideshow::internal::SlideBitmap::move ( const ::basegfx::B2DPoint rNewPos)

Definition at line 95 of file slidebitmap.cxx.

References maOutputPos.

◆ operator=()

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

Member Data Documentation

◆ maClipPoly

::basegfx::B2DPolyPolygon slideshow::internal::SlideBitmap::maClipPoly
private

Definition at line 70 of file slidebitmap.hxx.

Referenced by clip(), and draw().

◆ maOutputPos

::basegfx::B2DPoint slideshow::internal::SlideBitmap::maOutputPos
private

Definition at line 69 of file slidebitmap.hxx.

Referenced by draw(), and move().

◆ mxBitmap

css::uno::Reference< css::rendering::XBitmap > slideshow::internal::SlideBitmap::mxBitmap
private

Definition at line 73 of file slidebitmap.hxx.

Referenced by draw(), getSize(), getXBitmap(), and SlideBitmap().


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