LibreOffice Module toolkit (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
VCLXDevice Class Reference

A UNO wrapper for the VCL OutputDevice. More...

#include <vclxdevice.hxx>

Inheritance diagram for VCLXDevice:
[legend]
Collaboration diagram for VCLXDevice:
[legend]

Public Member Functions

 VCLXDevice ()
 
virtual ~VCLXDevice () override
 
void SetOutputDevice (const VclPtr< OutputDevice > &pOutDev)
 
const VclPtr< OutputDevice > & GetOutputDevice () const
 
css::uno::Reference< css::awt::XGraphics > SAL_CALL createGraphics () override
 
css::uno::Reference< css::awt::XDevice > SAL_CALL createDevice (sal_Int32 nWidth, sal_Int32 nHeight) override
 
css::awt::DeviceInfo SAL_CALL getInfo () override
 
css::uno::Sequence< css::awt::FontDescriptor > SAL_CALL getFontDescriptors () override
 
css::uno::Reference< css::awt::XFont > SAL_CALL getFont (const css::awt::FontDescriptor &aDescriptor) override
 
css::uno::Reference< css::awt::XBitmap > SAL_CALL createBitmap (sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight) override
 
css::uno::Reference< css::awt::XDisplayBitmap > SAL_CALL createDisplayBitmap (const css::uno::Reference< css::awt::XBitmap > &Bitmap) override
 
css::awt::Point SAL_CALL convertPointToLogic (const css::awt::Point &aPoint, ::sal_Int16 TargetUnit) override
 
css::awt::Point SAL_CALL convertPointToPixel (const css::awt::Point &aPoint, ::sal_Int16 SourceUnit) override
 
css::awt::Size SAL_CALL convertSizeToLogic (const css::awt::Size &aSize, ::sal_Int16 TargetUnit) override
 
css::awt::Size SAL_CALL convertSizeToPixel (const css::awt::Size &aSize, ::sal_Int16 SourceUnit) override
 

Private Attributes

VclPtr< OutputDevicempOutputDevice
 

Friends

class VCLXGraphics
 
class VCLXVirtualDevice
 

Detailed Description

A UNO wrapper for the VCL OutputDevice.

Definition at line 33 of file vclxdevice.hxx.

Constructor & Destructor Documentation

◆ VCLXDevice()

VCLXDevice::VCLXDevice ( )

Definition at line 37 of file vclxdevice.cxx.

◆ ~VCLXDevice()

VCLXDevice::~VCLXDevice ( )
overridevirtual

Definition at line 41 of file vclxdevice.cxx.

References mpOutputDevice, and VclPtr< class reference_type >::reset().

Member Function Documentation

◆ convertPointToLogic()

css::awt::Point SAL_CALL VCLXDevice::convertPointToLogic ( const css::awt::Point &  aPoint,
::sal_Int16  TargetUnit 
)
override

◆ convertPointToPixel()

css::awt::Point SAL_CALL VCLXDevice::convertPointToPixel ( const css::awt::Point &  aPoint,
::sal_Int16  SourceUnit 
)
override

◆ convertSizeToLogic()

css::awt::Size SAL_CALL VCLXDevice::convertSizeToLogic ( const css::awt::Size &  aSize,
::sal_Int16  TargetUnit 
)
override

◆ convertSizeToPixel()

css::awt::Size SAL_CALL VCLXDevice::convertSizeToPixel ( const css::awt::Size &  aSize,
::sal_Int16  SourceUnit 
)
override

◆ createBitmap()

css::uno::Reference< css::awt::XBitmap > VCLXDevice::createBitmap ( sal_Int32  nX,
sal_Int32  nY,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
override

Definition at line 122 of file vclxdevice.cxx.

References mpOutputDevice.

◆ createDevice()

css::uno::Reference< css::awt::XDevice > VCLXDevice::createDevice ( sal_Int32  nWidth,
sal_Int32  nHeight 
)
override

Definition at line 61 of file vclxdevice.cxx.

References GetOutputDevice(), and VCLXVirtualDevice.

◆ createDisplayBitmap()

css::uno::Reference< css::awt::XDisplayBitmap > VCLXDevice::createDisplayBitmap ( const css::uno::Reference< css::awt::XBitmap > &  Bitmap)
override

Definition at line 138 of file vclxdevice.cxx.

References VCLUnoHelper::GetBitmap().

◆ createGraphics()

css::uno::Reference< css::awt::XGraphics > VCLXDevice::createGraphics ( )
override

Definition at line 49 of file vclxdevice.cxx.

References mpOutputDevice.

◆ getFont()

css::uno::Reference< css::awt::XFont > VCLXDevice::getFont ( const css::awt::FontDescriptor &  aDescriptor)
override

Definition at line 108 of file vclxdevice.cxx.

References VCLUnoHelper::CreateFont(), and mpOutputDevice.

◆ getFontDescriptors()

css::uno::Sequence< css::awt::FontDescriptor > VCLXDevice::getFontDescriptors ( )
override

Definition at line 89 of file vclxdevice.cxx.

References VCLUnoHelper::CreateFontDescriptor(), mpOutputDevice, and n.

◆ getInfo()

css::awt::DeviceInfo VCLXDevice::getInfo ( )
override

Definition at line 77 of file vclxdevice.cxx.

References mpOutputDevice.

Referenced by VCLXDialog::getInfo().

◆ GetOutputDevice()

const VclPtr< OutputDevice > & VCLXDevice::GetOutputDevice ( ) const
inline

Definition at line 49 of file vclxdevice.hxx.

References mpOutputDevice.

Referenced by VCLXGraphics::copy(), createDevice(), and VCLUnoHelper::GetOutputDevice().

◆ SetOutputDevice()

void VCLXDevice::SetOutputDevice ( const VclPtr< OutputDevice > &  pOutDev)
inline

Definition at line 48 of file vclxdevice.hxx.

References mpOutputDevice.

Referenced by VCLXVirtualDevice::SetVirtualDevice().

Friends And Related Function Documentation

◆ VCLXGraphics

friend class VCLXGraphics
friend

Definition at line 38 of file vclxdevice.hxx.

◆ VCLXVirtualDevice

friend class VCLXVirtualDevice
friend

Definition at line 39 of file vclxdevice.hxx.

Referenced by createDevice().

Member Data Documentation

◆ mpOutputDevice

VclPtr<OutputDevice> VCLXDevice::mpOutputDevice
private

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