Hello, I've been trying to figure this out for a bit, but with little success.
Currently, nsExternalAppHandler::PromptForSaveToFile would invoke the nsIFilePicker interface, which would invoke the Gtk2 file choose dialog (under Linux). I am trying to make it possible that instead of calling the Gtk2-based implementation of nsIFilePicker, PromptForSaveToFile invokes the XUL chrome filepicker dialog provided by Mozilla (chrome://global/content/filepicker.xul). Searching about how to do this, I see tons of examples how to infoke this file picker in JavaScript, but not in C++. The Mozilla source code contains a nsIFilePicker implementation, which uses the XUL chrome window instead of the Gtk2 window. This implementation is located in mozilla/xpfe/components/filepicker/src/ nsFilePicker.js. Can somebody tell me how I can invoke this implementation instead of the Gtk2 one? Thanks, Peter _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
