Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.