Issue 117765 - css.awt.PrinterServer implementation quite unusable in Basic
Summary: css.awt.PrinterServer implementation quite unusable in Basic
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Normal
Target Milestone: ---
Assignee: Frank Schönheit
QA Contact: kay.ramme
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 07:25 UTC by Frank Schönheit
Modified: 2017-05-20 09:32 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch from CWS fs35a (12.71 KB, patch)
2012-10-05 19:47 UTC, Ariel Constenla-Haile
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2011-04-08 07:25:05 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).
Comment 1 Frank Schönheit 2011-04-08 07:27:48 UTC
fixed in CWS fs35a
Comment 2 Oliver-Rainer Wittmann 2012-06-13 12:30:05 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 3 bmarcelly 2012-10-05 19:04:45 UTC
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.
Comment 4 Ariel Constenla-Haile 2012-10-05 19:33:57 UTC
(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).
Comment 5 Ariel Constenla-Haile 2012-10-05 19:47:22 UTC
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#
Comment 6 Ariel Constenla-Haile 2012-10-05 19:48:34 UTC
Reopening until it gets committed in trunk, and built.
Comment 7 arist 2012-10-05 20:22:51 UTC
checked in.
Comment 8 Ariel Constenla-Haile 2012-10-06 02:11:43 UTC
Verified in revision 1394780

Note that the css.awt.XPrinter API does nothing, but this is another bug.
Comment 9 Ariel Constenla-Haile 2012-10-06 02:19:49 UTC
(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