Re: [interface-announce] info/DEV300_m22 : New UNO API for conversion helpers like pixel to 1/100mm and more

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [interface-announce] info/DEV300_m22 : New UNO API for conversion helpers like pixel to 1/100mm and more

stephan.bergmann
[hidden email] wrote:

>
>           Type: info
>          Title: New UNO API for conversion helpers like pixel to 1/100mm and more
>      Posted by: [hidden email]
>       Affected: toolkit
>          TaskId: i86925
> <http://www.openoffice.org/issues/show_bug.cgi?id=86925>
> Effective from: DEV300_m22
>
>
> *Summary*
> --------
> + interface com.sun.star.awt.XUnitConversion
>
>
> *Description*
> -------------
> The XUnitConversion contains some helpers and can be used to convert a
> css.awt.Point|css.awt.Size value from it's internal representation to
> a well known css.util.MeasureUnit value, without the knowledge of the
> internal used unit.

The documentation in offapi/com/sun/star/awt/XUnitConversion.idl:1.1.2.2
is rather, ehm, thin.  "gives access to the value and formatting of a
metric field" is obviously a copy/past error (XMetricField).  What does
"logic" (compared to "pixel") mean (but maybe I am too detached from
awt, and this would be immediately obvious to the average user of this
interface)?  And what are expected values for the Source/TargetUnit
parameters?

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Re: [interface-announce] info/DEV300_m22 : New UNO API for conversion helpers like pixel to 1/100mm and more

Lars.Langhans
Stephan Bergmann schrieb:

> [hidden email] wrote:
>>
>>           Type: info
>>          Title: New UNO API for conversion helpers like pixel to
>> 1/100mm and more
>>      Posted by: [hidden email]
>>       Affected: toolkit
>>          TaskId: i86925
>> <http://www.openoffice.org/issues/show_bug.cgi?id=86925>
>> Effective from: DEV300_m22
>>
>>
>> *Summary*
>> --------
>> + interface com.sun.star.awt.XUnitConversion
>>
>>
>> *Description*
>> -------------
>> The XUnitConversion contains some helpers and can be used to convert a
>> css.awt.Point|css.awt.Size value from it's internal representation to
>> a well known css.util.MeasureUnit value, without the knowledge of the
>> internal used unit.
>
> The documentation in
> offapi/com/sun/star/awt/XUnitConversion.idl:1.1.2.2 is rather, ehm,
> thin.  "gives access to the value and formatting of a metric field" is
> obviously a copy/past error (XMetricField).  What does "logic"
> (compared to "pixel") mean (but maybe I am too detached from awt, and
> this would be immediately obvious to the average user of this
> interface)?  And what are expected values for the Source/TargetUnit
> parameters?
>
Hi Stephan,
you are right, the documentation is more than unusable, #i91041#
But never the less, there exists a complex test of the usage of this
interface in toolkit/qa/complex/xunitconversion. Maybe this could help you.

Regards
Lars

> -Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]