LibreOffice Module sd (master) 1
|
Collection of functions to ease the life of a canvas user. More...
#include <PresenterCanvasHelper.hxx>
Public Member Functions | |
PresenterCanvasHelper () | |
~PresenterCanvasHelper () | |
PresenterCanvasHelper (const PresenterCanvasHelper &)=delete | |
PresenterCanvasHelper & | operator= (const PresenterCanvasHelper &)=delete |
void | Paint (const SharedBitmapDescriptor &rpBitmap, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rRepaintBox, const css::awt::Rectangle &rBackgroundBoundingBox, const css::awt::Rectangle &rContentBoundingBox) const |
Static Public Member Functions | |
static void | PaintRectangle (const SharedBitmapDescriptor &rpBitmap, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rRepaintBox, const css::awt::Rectangle &rBackgroundBoundingBox, const css::awt::Rectangle &rContentBoundingBox, const css::rendering::ViewState &rDefaultViewState, const css::rendering::RenderState &rDefaultRenderState) |
static void | SetDeviceColor (css::rendering::RenderState &rRenderState, const css::util::Color aColor) |
static css::geometry::RealRectangle2D | GetTextBoundingBox (const css::uno::Reference< css::rendering::XCanvasFont > &rxFont, const OUString &rsText, const sal_Int8=css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT) |
static css::geometry::RealSize2D | GetTextSize (const css::uno::Reference< css::rendering::XCanvasFont > &rxFont, const OUString &rsText) |
Static Private Member Functions | |
static void | PaintTiledBitmap (const css::uno::Reference< css::rendering::XBitmap > &rxTexture, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rRepaintBox, const css::uno::Reference< css::rendering::XPolyPolygon2D > &rxPolygon, const css::awt::Rectangle &rHole, const css::rendering::ViewState &rDefaultViewState, const css::rendering::RenderState &rDefaultRenderState) |
static void | PaintBitmap (const css::uno::Reference< css::rendering::XBitmap > &rxBitmap, const css::awt::Point &rLocation, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rRepaintBox, const css::uno::Reference< css::rendering::XPolyPolygon2D > &rxPolygon, const css::rendering::ViewState &rDefaultViewState, const css::rendering::RenderState &rDefaultRenderState) |
static void | PaintColor (const css::util::Color nColor, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rRepaintBox, const css::uno::Reference< css::rendering::XPolyPolygon2D > &rxPolygon, const css::rendering::ViewState &rDefaultViewState, const css::rendering::RenderState &rDefaultRenderState) |
Private Attributes | |
const css::rendering::ViewState | maDefaultViewState |
const css::rendering::RenderState | maDefaultRenderState |
Collection of functions to ease the life of a canvas user.
Definition at line 35 of file PresenterCanvasHelper.hxx.
sdext::presenter::PresenterCanvasHelper::PresenterCanvasHelper | ( | ) |
Definition at line 31 of file PresenterCanvasHelper.cxx.
References Sequence.
sdext::presenter::PresenterCanvasHelper::~PresenterCanvasHelper | ( | ) |
Definition at line 43 of file PresenterCanvasHelper.cxx.
|
delete |
|
static |
Definition at line 261 of file PresenterCanvasHelper.cxx.
Referenced by sdext::presenter::PresenterTextParagraph::AddWord(), sdext::presenter::PresenterTheme::FontDescriptor::GetCellSizeForDesignSize(), and GetTextSize().
|
static |
Definition at line 279 of file PresenterCanvasHelper.cxx.
References GetTextBoundingBox().
Referenced by sdext::presenter::PresenterButton::CalculateButtonSize(), sdext::presenter::PresenterSlideSorter::MouseOverManager::CalculateLabelSize(), and sdext::presenter::PresenterSlideSorter::MouseOverManager::GetFittingText().
|
delete |
void sdext::presenter::PresenterCanvasHelper::Paint | ( | const SharedBitmapDescriptor & | rpBitmap, |
const css::uno::Reference< css::rendering::XCanvas > & | rxCanvas, | ||
const css::awt::Rectangle & | rRepaintBox, | ||
const css::awt::Rectangle & | rBackgroundBoundingBox, | ||
const css::awt::Rectangle & | rContentBoundingBox | ||
) | const |
Definition at line 47 of file PresenterCanvasHelper.cxx.
References maDefaultRenderState, maDefaultViewState, and PaintRectangle().
|
staticprivate |
Definition at line 182 of file PresenterCanvasHelper.cxx.
References sdext::presenter::PresenterGeometryHelper::CreatePolygon().
Referenced by PaintRectangle().
|
staticprivate |
Definition at line 216 of file PresenterCanvasHelper.cxx.
References sdext::presenter::PresenterGeometryHelper::CreatePolygon(), and SetDeviceColor().
Referenced by PaintRectangle().
|
static |
Definition at line 58 of file PresenterCanvasHelper.cxx.
References sdext::presenter::PresenterGeometryHelper::CreatePolygon(), sdext::presenter::PresenterGeometryHelper::Intersection(), PaintBitmap(), PaintColor(), PaintTiledBitmap(), and sdext::presenter::PresenterBitmapContainer::BitmapDescriptor::Repeat.
Referenced by Paint().
|
staticprivate |
Definition at line 127 of file PresenterCanvasHelper.cxx.
References sdext::presenter::PresenterGeometryHelper::IsInside().
Referenced by PaintRectangle().
|
static |
Definition at line 244 of file PresenterCanvasHelper.cxx.
Referenced by sdext::presenter::PresenterSlideSorter::MouseOverManager::CreateBitmap(), sdext::presenter::PresenterHelpView::Paint(), sdext::presenter::PresenterSlideSorter::Paint(), sdext::presenter::PresenterTextView::Paint(), PaintColor(), sdext::presenter::PresenterSlideShowView::PaintEndSlide(), sdext::presenter::PresenterSlideShowView::PaintOuterWindow(), sdext::presenter::PresenterSlideSorter::PaintPreview(), sdext::presenter::PresenterPaneBorderPainter::Renderer::PaintTitle(), sdext::presenter::PresenterNotesView::PaintToolBar(), and sdext::presenter::PresenterButton::RenderButton().
|
private |
Definition at line 74 of file PresenterCanvasHelper.hxx.
Referenced by Paint().
|
private |
Definition at line 73 of file PresenterCanvasHelper.hxx.
Referenced by Paint().