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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Stephan Bergmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Lars.Langhans@... wrote:

>
>           Type: info
>          Title: New UNO API for conversion helpers like pixel to 1/100mm and more
>      Posted by: Lars.Langhans@...
>       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: interface-discuss-unsubscribe@...
For additional commands, e-mail: interface-discuss-help@...


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

by Lars.Langhans :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stephan Bergmann schrieb:

> Lars.Langhans@... wrote:
>>
>>           Type: info
>>          Title: New UNO API for conversion helpers like pixel to
>> 1/100mm and more
>>      Posted by: Lars.Langhans@...
>>       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: interface-discuss-unsubscribe@...
> For additional commands, e-mail: interface-discuss-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interface-discuss-unsubscribe@...
For additional commands, e-mail: interface-discuss-help@...