LibreOffice Module slideshow (master) 1
|
Little wrapper encapsulating an XBitmap. More...
#include <slidebitmap.hxx>
Public Member Functions | |
SlideBitmap (const ::cppcanvas::BitmapSharedPtr &rBitmap) | |
SlideBitmap (const SlideBitmap &)=delete | |
SlideBitmap & | operator= (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 |
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.
|
explicit |
Definition at line 39 of file slidebitmap.cxx.
References ENSURE_OR_THROW, mxBitmap, and mxBitmap.
|
delete |
void slideshow::internal::SlideBitmap::clip | ( | const ::basegfx::B2DPolyPolygon & | rClipPoly | ) |
Definition at line 100 of file slidebitmap.cxx.
References maClipPoly.
bool slideshow::internal::SlideBitmap::draw | ( | const ::cppcanvas::CanvasSharedPtr & | rCanvas | ) | const |
Definition at line 50 of file slidebitmap.cxx.
References basegfx::B2DPolyPolygon::count(), basegfx::utils::createTranslateB2DHomMatrix(), ENSURE_OR_RETURN_FALSE, maClipPoly, maOutputPos, mxBitmap, and TOOLS_WARN_EXCEPTION.
basegfx::B2ISize slideshow::internal::SlideBitmap::getSize | ( | ) | const |
Definition at line 90 of file slidebitmap.cxx.
References mxBitmap.
const css::uno::Reference< css::rendering::XBitmap > & slideshow::internal::SlideBitmap::getXBitmap | ( | ) | const |
Definition at line 105 of file slidebitmap.cxx.
References mxBitmap.
void slideshow::internal::SlideBitmap::move | ( | const ::basegfx::B2DPoint & | rNewPos | ) |
Definition at line 95 of file slidebitmap.cxx.
References maOutputPos.
|
delete |
|
private |
Definition at line 70 of file slidebitmap.hxx.
|
private |
Definition at line 69 of file slidebitmap.hxx.
|
private |
Definition at line 73 of file slidebitmap.hxx.
Referenced by draw(), getSize(), getXBitmap(), and SlideBitmap().