LibreOffice Module toolkit (master) 1
Static Public Member Functions | List of all members
VCLUnoHelper Class Reference

#include <vclunohelper.hxx>

Static Public Member Functions

static css::uno::Reference< css::awt::XToolkit > CreateToolkit ()
 
static BitmapEx GetBitmap (const css::uno::Reference< css::awt::XBitmap > &rxBitmap)
 
static css::uno::Reference< css::awt::XBitmap > CreateBitmap (const BitmapEx &rBitmap)
 
static vcl::WindowGetWindow (const css::uno::Reference< css::awt::XWindow > &rxWindow)
 
static vcl::WindowGetWindow (const css::uno::Reference< css::awt::XWindow2 > &rxWindow2)
 
static vcl::WindowGetWindow (const css::uno::Reference< css::awt::XWindowPeer > &rxWindowPeer)
 
static css::uno::Reference< css::awt::XWindow > GetInterface (vcl::Window *pWindow)
 
static OutputDeviceGetOutputDevice (const css::uno::Reference< css::awt::XDevice > &rxDevice)
 
static OutputDeviceGetOutputDevice (const css::uno::Reference< css::awt::XGraphics > &rxGraphics)
 
static vcl::Region GetRegion (const css::uno::Reference< css::awt::XRegion > &rxRegion)
 
static tools::Polygon CreatePolygon (const css::uno::Sequence< sal_Int32 > &DataX, const css::uno::Sequence< sal_Int32 > &DataY)
 
static css::awt::FontDescriptor CreateFontDescriptor (const vcl::Font &rFont)
 convert Font to css::awt::FontDescriptor More...
 
static vcl::Font CreateFont (const css::awt::FontDescriptor &rDescr, const vcl::Font &rInitFont)
 
static vcl::Font CreateFont (const css::uno::Reference< css::awt::XFont > &rxFont)
 
static css::awt::SimpleFontMetric CreateFontMetric (const FontMetric &rFontMetric)
 
static bool IsZero (const css::awt::Rectangle &rRect)
 
static css::uno::Reference< css::awt::XControlContainer > CreateControlContainer (vcl::Window *pWindow)
 
static MapUnit UnoEmbed2VCLMapUnit (sal_Int32 nUnoEmbedMapUnit)
 
static sal_Int32 VCL2UnoEmbedMapUnit (MapUnit nVCLMapUnit)
 
static sal_Int16 ConvertToMeasurementUnit (FieldUnit _nFieldUnit, sal_Int16 _rFieldToUNOValueFactor)
 small helper to convert between MeasurementUnit and FieldUnit More...
 
static FieldUnit ConvertToFieldUnit (sal_Int16 _nMeasurementUnit, sal_Int16 &_rFieldToUNOValueFactor)
 
static MapUnit ConvertToMapModeUnit (sal_Int16 _nMeasureUnit)
 
::Size ConvertToVCLSize (css::awt::Size const &_aSize)
 
static css::awt::Size ConvertToAWTSize (::Size const &_aSize)
 
::Point ConvertToVCLPoint (css::awt::Point const &_aPoint)
 
static css::awt::Point ConvertToAWTPoint (::Point const &_aPoint)
 
::tools::Rectangle ConvertToVCLRect (css::awt::Rectangle const &_rRect)
 
static css::awt::Rectangle ConvertToAWTRect (::tools::Rectangle const &_rRect)
 
static css::awt::MouseEvent createMouseEvent (const ::MouseEvent &_rVclEvent, const css::uno::Reference< css::uno::XInterface > &_rxContext)
 
::MouseEvent createVCLMouseEvent (const css::awt::MouseEvent &_rAwtEvent)
 
static css::awt::KeyEvent createKeyEvent (const ::KeyEvent &_rVclEvent, const css::uno::Reference< css::uno::XInterface > &_rxContext)
 
::KeyEvent createVCLKeyEvent (const css::awt::KeyEvent &_rAwtEvent)
 
::PointerStyle getMousePointer (const css::uno::Reference< css::awt::XWindowPeer > &rWindowPeer)
 
static void setMousePointer (const css::uno::Reference< css::awt::XWindowPeer > &rWindowPeer, ::PointerStyle mousepointer)
 

Detailed Description

Definition at line 69 of file vclunohelper.hxx.

Member Function Documentation

◆ ConvertToAWTPoint()

css::awt::Point VCLUnoHelper::ConvertToAWTPoint ( ::Point const &  _aPoint)
static

Definition at line 500 of file vclunohelper.cxx.

References Point::X(), and Point::Y().

Referenced by VCLXDevice::convertPointToLogic(), and VCLXDevice::convertPointToPixel().

◆ ConvertToAWTRect()

css::awt::Rectangle VCLUnoHelper::ConvertToAWTRect ( ::tools::Rectangle const &  _rRect)
static

◆ ConvertToAWTSize()

css::awt::Size VCLUnoHelper::ConvertToAWTSize ( ::Size const &  _aSize)
static

◆ ConvertToFieldUnit()

FieldUnit VCLUnoHelper::ConvertToFieldUnit ( sal_Int16  _nMeasurementUnit,
sal_Int16 &  _rFieldToUNOValueFactor 
)
static

Definition at line 412 of file vclunohelper.cxx.

◆ ConvertToMapModeUnit()

MapUnit VCLUnoHelper::ConvertToMapModeUnit ( sal_Int16  _nMeasureUnit)
static
Exceptions
css::lang::IllegalArgumentException

Definition at line 418 of file vclunohelper.cxx.

References eMode.

Referenced by VCLXDevice::convertPointToLogic(), VCLXDevice::convertPointToPixel(), VCLXDevice::convertSizeToLogic(), and VCLXDevice::convertSizeToPixel().

◆ ConvertToMeasurementUnit()

sal_Int16 VCLUnoHelper::ConvertToMeasurementUnit ( FieldUnit  _nFieldUnit,
sal_Int16  _rFieldToUNOValueFactor 
)
static

small helper to convert between MeasurementUnit and FieldUnit

Definition at line 406 of file vclunohelper.cxx.

◆ ConvertToVCLPoint()

Point VCLUnoHelper::ConvertToVCLPoint ( css::awt::Point const &  _aPoint)
static

◆ ConvertToVCLRect()

tools::Rectangle VCLUnoHelper::ConvertToVCLRect ( css::awt::Rectangle const &  _rRect)
static

Definition at line 506 of file vclunohelper.cxx.

Referenced by VCLXGraphics::clear().

◆ ConvertToVCLSize()

Size VCLUnoHelper::ConvertToVCLSize ( css::awt::Size const &  _aSize)
static

◆ CreateBitmap()

css::uno::Reference< css::awt::XBitmap > VCLUnoHelper::CreateBitmap ( const BitmapEx rBitmap)
static

Definition at line 99 of file vclunohelper.cxx.

References Graphic::GetXGraphic().

◆ CreateControlContainer()

css::uno::Reference< css::awt::XControlContainer > VCLUnoHelper::CreateControlContainer ( vcl::Window pWindow)
static

Definition at line 185 of file vclunohelper.cxx.

References vcl::Window::GetComponentInterface().

◆ CreateFont() [1/2]

vcl::Font VCLUnoHelper::CreateFont ( const css::awt::FontDescriptor &  rDescr,
const vcl::Font rInitFont 
)
static

◆ CreateFont() [2/2]

vcl::Font VCLUnoHelper::CreateFont ( const css::uno::Reference< css::awt::XFont > &  rxFont)
static

Definition at line 251 of file vclunohelper.cxx.

References VCLXFont::GetFont().

◆ CreateFontDescriptor()

css::awt::FontDescriptor VCLUnoHelper::CreateFontDescriptor ( const vcl::Font rFont)
static

◆ CreateFontMetric()

css::awt::SimpleFontMetric VCLUnoHelper::CreateFontMetric ( const FontMetric rFontMetric)
static

◆ createKeyEvent()

awt::KeyEvent VCLUnoHelper::createKeyEvent ( const ::KeyEvent _rVclEvent,
const css::uno::Reference< css::uno::XInterface > &  _rxContext 
)
static

Definition at line 553 of file vclunohelper.cxx.

Referenced by VCLXWindow::ProcessWindowEvent().

◆ createMouseEvent()

awt::MouseEvent VCLUnoHelper::createMouseEvent ( const ::MouseEvent _rVclEvent,
const css::uno::Reference< css::uno::XInterface > &  _rxContext 
)
static

Definition at line 516 of file vclunohelper.cxx.

Referenced by VCLXWindow::ProcessWindowEvent().

◆ CreatePolygon()

tools::Polygon VCLUnoHelper::CreatePolygon ( const css::uno::Sequence< sal_Int32 > &  DataX,
const css::uno::Sequence< sal_Int32 > &  DataY 
)
static

◆ CreateToolkit()

uno::Reference< css::awt::XToolkit > VCLUnoHelper::CreateToolkit ( )
static

Definition at line 57 of file vclunohelper.cxx.

Referenced by UnoControl::createPeer(), and UnoWrapper::GetVCLToolkit().

◆ createVCLKeyEvent()

KeyEvent VCLUnoHelper::createVCLKeyEvent ( const css::awt::KeyEvent &  _rAwtEvent)
static

Definition at line 575 of file vclunohelper.cxx.

◆ createVCLMouseEvent()

MouseEvent VCLUnoHelper::createVCLMouseEvent ( const css::awt::MouseEvent &  _rAwtEvent)
static

Definition at line 545 of file vclunohelper.cxx.

◆ GetBitmap()

BitmapEx VCLUnoHelper::GetBitmap ( const css::uno::Reference< css::awt::XBitmap > &  rxBitmap)
static

◆ GetInterface()

css::uno::Reference< css::awt::XWindow > VCLUnoHelper::GetInterface ( vcl::Window pWindow)
static

Definition at line 139 of file vclunohelper.cxx.

References vcl::Window::GetComponentInterface().

◆ getMousePointer()

PointerStyle VCLUnoHelper::getMousePointer ( const css::uno::Reference< css::awt::XWindowPeer > &  rWindowPeer)
static

Definition at line 587 of file vclunohelper.cxx.

References eType, and GetWindow().

◆ GetOutputDevice() [1/2]

OutputDevice * VCLUnoHelper::GetOutputDevice ( const css::uno::Reference< css::awt::XDevice > &  rxDevice)
static

◆ GetOutputDevice() [2/2]

OutputDevice * VCLUnoHelper::GetOutputDevice ( const css::uno::Reference< css::awt::XGraphics > &  rxGraphics)
static

Definition at line 159 of file vclunohelper.cxx.

References VCLXGraphics::GetOutputDevice().

◆ GetRegion()

vcl::Region VCLUnoHelper::GetRegion ( const css::uno::Reference< css::awt::XRegion > &  rxRegion)
static

◆ GetWindow() [1/3]

vcl::Window * VCLUnoHelper::GetWindow ( const css::uno::Reference< css::awt::XWindow > &  rxWindow)
static

◆ GetWindow() [2/3]

vcl::Window * VCLUnoHelper::GetWindow ( const css::uno::Reference< css::awt::XWindow2 > &  rxWindow2)
static

Definition at line 112 of file vclunohelper.cxx.

References VCLXWindow::GetWindow().

◆ GetWindow() [3/3]

vcl::Window * VCLUnoHelper::GetWindow ( const css::uno::Reference< css::awt::XWindowPeer > &  rxWindowPeer)
static

Definition at line 118 of file vclunohelper.cxx.

References VCLXWindow::GetWindow().

◆ IsZero()

bool VCLUnoHelper::IsZero ( const css::awt::Rectangle &  rRect)
static

Definition at line 273 of file vclunohelper.cxx.

◆ setMousePointer()

void VCLUnoHelper::setMousePointer ( const css::uno::Reference< css::awt::XWindowPeer > &  rWindowPeer,
::PointerStyle  mousepointer 
)
static

Definition at line 596 of file vclunohelper.cxx.

References GetWindow().

◆ UnoEmbed2VCLMapUnit()

MapUnit VCLUnoHelper::UnoEmbed2VCLMapUnit ( sal_Int32  nUnoEmbedMapUnit)
static

Definition at line 278 of file vclunohelper.cxx.

◆ VCL2UnoEmbedMapUnit()

sal_Int32 VCLUnoHelper::VCL2UnoEmbedMapUnit ( MapUnit  nVCLMapUnit)
static

Definition at line 310 of file vclunohelper.cxx.


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