https://bugs.documentfoundation.org/show_bug.cgi?id=151713

            Bug ID: 151713
           Summary: API: The controller of a drawing doesn't export
                    XTransferableSupplier
           Product: LibreOffice
           Version: 3.3.0 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 183218
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183218&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to