Created attachment 183218 [details] The demo announced in the report The CurrentController of a drawing model claims to support the service 'DrawingDocumentDrawView' which in turn is specified to export the interface 'XTransferableSupplier'. It doesn't - and never did, as far as I could see. Background: In pursuit of a question in the ask site I tried to use "flavor conversion" via a helper drawing. The attenmpt faild in consequence of the bug. To reproduce the bug do as described in the attached drawing which also contains the Sub: Sub demo() cCtrl = ThisComponent.CurrentController MsgBox(cCtrl.SupportedServiceNames(0)) REM cCtrl should export the interface XTransferableSupplier REM See https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1datatransfer_1_1XTransferableSupplier.html For Each shape In ThisComponent.DrawPages(0) If shape.String="Ellipse" Then Exit For Next shape cCtrl.select(shape) MsgBox(shape.String) trans = cCtrl.getTransferable() REM cCtrl doesn't know the method. REM Trying to order cCtrl.insertTransferable(trans) (with a valid object trans gotten elsewhere) shows that cCtrl also doesn't know the second method. End Sub
Yes, I get BASIC runtime error. Property or method not found: getTransferable Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 9a930ef9ea45277109c9acd6e7e1ccfe47fe136c CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 27 February 2023
DrawingDocumentDrawView inherits XTransferableSupplier from css::frame::Controller, which has it marked as optional: https://git.libreoffice.org/core/+/3ffd375f/offapi/com/sun/star/frame/Controller.idl#77 (i.e. not every implementation has to support it).
(In reply to Maxim Monastirsky from comment #2) > DrawingDocumentDrawView inherits XTransferableSupplier from > css::frame::Controller, which has it marked as optional: > https://git.libreoffice.org/core/+/3ffd375f/offapi/com/sun/star/frame/ > Controller.idl#77 (i.e. not every implementation has to support it). Might there be an enhancement one day?
Dear Wolfgang Jäger, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Tested with V 25.2.0.3: Behaviour unchanged. I assume the bug will not be fixed as a side effect of other fixes. The needed interface simply is not available for Draw documents. See also: https://ask.libreoffice.org/t/where-is-xtransferablesupplier-in-the-draw-document-java-sdk/20754