LibreOffice
LibreOffice 7.4 SDK API Reference
Public Member Functions | List of all members
XUnitConversion Interface Reference

allows converting between different measurement units More...

import"XUnitConversion.idl";

Inheritance diagram for XUnitConversion:
XInterface

Public Member Functions

com::sun::star::awt::Point convertPointToLogic ([in] com::sun::star::awt::Point Point, [in] short TargetUnit) raises ( com::sun::star::lang::IllegalArgumentException )
 converts the given Point, which is specified in pixels, into the given logical unit More...
 
com::sun::star::awt::Point convertPointToPixel ([in] com::sun::star::awt::Point Point, [in] short SourceUnit) raises ( com::sun::star::lang::IllegalArgumentException )
 converts the given Point, which is specified in the given logical unit, into pixels More...
 
com::sun::star::awt::Size convertSizeToLogic ([in] com::sun::star::awt::Size Size, [in] short TargetUnit) raises ( com::sun::star::lang::IllegalArgumentException )
 converts the given Size, which is specified in pixels, into the given logical unit More...
 
com::sun::star::awt::Size convertSizeToPixel ([in] com::sun::star::awt::Size Size, [in] short SourceUnit) raises ( com::sun::star::lang::IllegalArgumentException )
 converts the given Size, which is specified in the given logical unit, into pixels More...
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

allows converting between different measurement units

Since
OOo 3.0

Member Function Documentation

◆ convertPointToLogic()

com::sun::star::awt::Point convertPointToLogic ( [in] com::sun::star::awt::Point  Point,
[in] short  TargetUnit 
)
raises (com::sun::star::lang::IllegalArgumentException
)

converts the given Point, which is specified in pixels, into the given logical unit

Parameters
PointA given Point in a well known type
TargetUnitA type from com::sun::star::util::MeasureUnit in which the Point will convert to.
Returns
Returns a new Point in the TargetUnit type format.

◆ convertPointToPixel()

com::sun::star::awt::Point convertPointToPixel ( [in] com::sun::star::awt::Point  Point,
[in] short  SourceUnit 
)
raises (com::sun::star::lang::IllegalArgumentException
)

converts the given Point, which is specified in the given logical unit, into pixels

Parameters
PointA given Point in the SourceUnit type
SourceUnitThe type from com::sun::star::util::MeasureUnit of the Point.
Returns
Return a new Point in Pixel type format.

◆ convertSizeToLogic()

com::sun::star::awt::Size convertSizeToLogic ( [in] com::sun::star::awt::Size  Size,
[in] short  TargetUnit 
)
raises (com::sun::star::lang::IllegalArgumentException
)

converts the given Size, which is specified in pixels, into the given logical unit

Parameters
SizeA given Size in a well known type
TargetUnitA type from com::sun::star::util::MeasureUnit in which the Size will convert to.
Returns
Returns a new Size in the TargetUnit type format.

◆ convertSizeToPixel()

com::sun::star::awt::Size convertSizeToPixel ( [in] com::sun::star::awt::Size  Size,
[in] short  SourceUnit 
)
raises (com::sun::star::lang::IllegalArgumentException
)

converts the given Size, which is specified in the given logical unit, into pixels

Parameters
SizeA given Size in a well known type
SourceUnitThe type from com::sun::star::util::MeasureUnit of the Size.
Returns
Returns a new Size in the TargetUnit type format.

The documentation for this interface was generated from the following file: