Apache OpenOffice (AOO) Bugzilla – Issue 117765
css.awt.PrinterServer implementation quite unusable in Basic
Last modified: 2017-05-20 09:32:09 UTC
The implementation of the css.awt.PrinterServer service is effectively unusable in Basic (except for the initiated, knowing dirty tricks involving CoreReflection), since it does not report its supported interfaces via XTypeProvider::getTypes. Consequently, the Basic runtime does not know which interfaces and methods the object exposes. To see this, execute the following macro: Dim printerServer as Object printerServer = CreateUnoService("com.sun.star.awt.PrinterServer") MsgBox printerServer.dbg_SupportedInterfaces MsgBox printerServer.dbg_Methods The message box in the last line reports that the Basic runtime finds neither interfaces nor methods (except queryInterface).
fixed in CWS fs35a
getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used.
18 months after it was fixed, this bug is not yet available in Apache OpenOffice 3.4.1. And of course, Bug 117769 (request to document the service PrinterServer) is not yet handled.
(In reply to comment #3) > 18 months after it was fixed, this bug is not yet available in Apache > OpenOffice 3.4.1. > > And of course, Bug 117769 (request to document the service PrinterServer) is > not yet handled. It's because the "Child Work Space" where this was fixed never got integrated, it is still in the old Mercurial repository (all source code there is owned by Oracle Corporation): http://hg.services.openoffice.org/cws/fs35a/ The fix can be isolated: http://hg.services.openoffice.org/cws/fs35a/rev/c63ac12dbf07 http://hg.services.openoffice.org/cws/fs35a/raw-diff/c63ac12dbf07/toolkit/inc/toolkit/awt/vclxprinter.hxx http://hg.services.openoffice.org/cws/fs35a/raw-diff/c63ac12dbf07/toolkit/source/awt/vclxprinter.cxx so we have to create a patch, and ask the Oracle representative if he can commit the patch in trunk (the code of this CWSs is not included in Oracle software grant to the ASF, so we have to follow this procedure to ensure the code is committed in the repo with Oracle's authorization).
Created attachment 79738 [details] patch from CWS fs35a http://hg.services.openoffice.org/cws/fs35a/rev/c63ac12dbf07 fs35a: #i117765# author Frank Schoenheit [fs] <frank.schoenheit@oracle.com> Fri Apr 08 09:27:08 2011 +0200 (18 months ago) changeset 276445 c63ac12dbf07 parent 276444 3cd8bfa73b31 child 276758 0e223efd83ee fs35a: #i117765#
Reopening until it gets committed in trunk, and built.
checked in.
Verified in revision 1394780 Note that the css.awt.XPrinter API does nothing, but this is another bug.
(In reply to comment #8) > Verified in revision 1394780 > > Note that the css.awt.XPrinter API does nothing, but this is another bug. See bug 121170