LibreOffice Module sdext (master)  1
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
sdext::presenter::PresenterCanvasHelper Class Reference

Collection of functions to ease the life of a canvas user. More...

#include <PresenterCanvasHelper.hxx>

Public Member Functions

 PresenterCanvasHelper ()
 
 ~PresenterCanvasHelper ()
 
 PresenterCanvasHelper (const PresenterCanvasHelper &)=delete
 
PresenterCanvasHelperoperator= (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
 

Detailed Description

Collection of functions to ease the life of a canvas user.

Definition at line 35 of file PresenterCanvasHelper.hxx.

Constructor & Destructor Documentation

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.

sdext::presenter::PresenterCanvasHelper::PresenterCanvasHelper ( const PresenterCanvasHelper )
delete

Member Function Documentation

css::geometry::RealRectangle2D sdext::presenter::PresenterCanvasHelper::GetTextBoundingBox ( const css::uno::Reference< css::rendering::XCanvasFont > &  rxFont,
const OUString &  rsText,
const sal_Int8  nTextDirection = css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT 
)
static
css::geometry::RealSize2D sdext::presenter::PresenterCanvasHelper::GetTextSize ( const css::uno::Reference< css::rendering::XCanvasFont > &  rxFont,
const OUString &  rsText 
)
static
PresenterCanvasHelper& sdext::presenter::PresenterCanvasHelper::operator= ( const PresenterCanvasHelper )
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
void sdext::presenter::PresenterCanvasHelper::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 
)
staticprivate
void sdext::presenter::PresenterCanvasHelper::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 
)
staticprivate
void sdext::presenter::PresenterCanvasHelper::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 sdext::presenter::PresenterCanvasHelper::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 
)
staticprivate
void sdext::presenter::PresenterCanvasHelper::SetDeviceColor ( css::rendering::RenderState &  rRenderState,
const css::util::Color  aColor 
)
static

Member Data Documentation

const css::rendering::RenderState sdext::presenter::PresenterCanvasHelper::maDefaultRenderState
private

Definition at line 74 of file PresenterCanvasHelper.hxx.

Referenced by Paint().

const css::rendering::ViewState sdext::presenter::PresenterCanvasHelper::maDefaultViewState
private

Definition at line 73 of file PresenterCanvasHelper.hxx.

Referenced by Paint().


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