When I drag an image from browser into the layout, the external flavor is kPasteboardTypeFileURLPromiseExternalFlavor
Now, I try to handle this external flavor in my flavor helper's ProcessDragDropCommand.
I try to internalize as follows:
controller->InternalizeDrag(kNoExternalFlavor, kMyDragDropCustomFlavor);
kMyDragDropCustomFlavor is supported via my custom data exchange handler.
Have overridden CanInternalizeData and Internalize data in my data exchange handler.
My biggest hurdle: is in reading the dragged item from IPMDataObject as stream.
IPMDataObject::GetStreamForReading never gives me the stream.
NOTE: I at least expect to read the URL of the image dragged and not the entire image stream.
When you drag an image from browser to InDesign layout (in Windows version), a text box is created with URL data.
I would like to achive the same. I would appreciate if someone can shed light on this.