Search completed in 1.04 seconds.
4 results for "nsIWebBrowserPrint":
Embedding Tips
MozillaGeckoEmbedding MozillaFAQHow do I...
query the web browser object for nsiwebbrowserprint.
... call the nsiwebbrowserprint::print() method supplying a print settings object (e.g.
... that returned from nsiwebbrowserprint::getglobalprintsettings) that you wish to print the page with.
...And 5 more matches
Overview of Mozilla embedding APIs
MozillaGeckoEmbedding MozillaAPI overview
contract-id: ns_webbrowser_contractid implemented interfaces: nsiwebbrowser nsiwebnavigation nsiwebbrowsersetup nsiwebbrowserpersist nsiwebbrowserfind nsiwebbrowserprint nsiwebbrowserfocus nsibasewindow requestor interfaces: nsidomwindow nsidomdocument nsiwebprogress nsiclipboardcommands nsiprompt related interfaces: nsiprompt nsiwebbrowserchrome nsiwebbrowsersitewindow nsiwebprogresslistener nsicontextmenulistener nsiprintoptions overview: most of gecko's functionality is exposed through the nswebbrowser component.
...once all of the options have been set, the nsiwebbrowserprint interface is used to print the contents of the desired domwindow.
...being reviewed interface definition: nsiwebbrowserpersist.idl nsiwebbrowserprint this interface allows printing of individual (or a collection of) dom windows within a nswebbrowser component.
...being reviewed interface definition: nsiwebbrowserprint.idl nsiwebbrowserfind this interface exposes the searching capabilities of the nswebbrowser component.
nsIPrintingPrompt
MozillaTechXPCOMReferenceInterfacensIPrintingPrompt
you can then fly you own dialog and then properly fill in the printsettings object before calling nsiwebbrowserprint's print method.
... defaults for platform service: showprintdialog - displays a native dialog showpagesetup() - displays a native dialog showprogress() - displays a xul dialog method overview void showpagesetup(in nsiprintsettings printsettings, in nsiobserver aobs); void showprintdialog(in nsiwebbrowserprint webbrowserprint, in nsiprintsettings printsettings); void showprogress(in nsiwebbrowserprint webbrowserprint, in nsiprintsettings printsettings, in nsiobserver opendialogobserver, in boolean isforprinting, out nsiwebprogresslistener webprogresslistener, out nsiprintprogressparams printprogressparams, out boolean notifyonopen); methods showpagesetup() shows the print progress dia...
... void showprintdialog( in nsiwebbrowserprint webbrowserprint, in nsiprintsettings printsettings ); parameters webbrowserprint represents the document to be printed.
... void showprogress( in nsiwebbrowserprint webbrowserprint, in nsiprintsettings printsettings, in nsiobserver opendialogobserver, in boolean isforprinting, out nsiwebprogresslistener webprogresslistener, out nsiprintprogressparams printprogressparams, out boolean notifyonopen ); parameters webbrowserprint represents the document to be printed.
nsIDocShell
MozillaTechXPCOMReferenceInterfacensIDocShell
printpreview nsiwebbrowserprint if the current content viewer is not initialized for print preview, it is replaced with one which is and to which an about:blank document is loaded.