Whats te alternative for com.sun.star.awt.DisplayAccess ?

Fernand Vanrie sos at pmgroup.be
Wed Jul 10 08:55:12 PDT 2013


Stephan,
> On 07/04/2013 03:13 PM, Fernand Vanrie wrote:
>> sinds 4.1
>> com.sun.star.awt.DisplayAccess
>>
>> is no longer working
>>      oDisplayAccess = createUnoService("com.sun.star.awt.DisplayAccess")
>>      oDisplayAccess is empty ????
>>      oDisplayInfo = oDisplayAccess.getByIndex(0)
>>      aScreenArea = oDisplayInfo.ScreenArea
>>      iScreenW =    aScreenArea.Width
>>      iScreenH =    aScreenArea.Height
>>
>> This was always "undocumented" i hope there is a documented 
>> alternative ?
>
> FWIW, it got removed with 
> <http://cgit.freedesktop.org/libreoffice/core/commit/?id=dde234b6955a421d51d2b37e4fc3972c660146f0> 
> "fdo#46808, remove awt::DisplayAccess service."
>
i know, filled a issue <https://bugs.freedesktop.org/show_bug.cgi?id=66762>

but who knows the alternative, its now impossible to find the screen 
size for machine who runs LO ! when using big dialogs its a absolute 
must have !

using the toolkit

otoolkit = createUnoService("com.sun.star.awt.Toolkit")
  aWorkRect = otoolkit.getWorkArea()

is also a deadlock because the workarea is empty (4 x0)

greetz

Fernand


> Stephan
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130710/2fff548b/attachment.html>


More information about the LibreOffice mailing list