michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #include "nsIWebProgressListener.idl" michael@0: michael@0: interface nsIDOMWindow; michael@0: interface nsIObserver; michael@0: interface nsIPrompt; michael@0: michael@0: [scriptable, uuid(594fd36d-5b1b-412f-a74e-ab72099a5bb2)] michael@0: interface nsIPrintProgress: nsIWebProgressListener { michael@0: michael@0: /* Open the progress dialog michael@0: you can specify parameters through an xpcom object michael@0: */ michael@0: void openProgressDialog(in nsIDOMWindow parent, michael@0: in string dialogURL, michael@0: in nsISupports parameters, michael@0: in nsIObserver openDialogObserver, michael@0: out boolean notifyOnOpen); michael@0: michael@0: /* Close the progress dialog */ michael@0: void closeProgressDialog(in boolean forceClose); michael@0: michael@0: /* Register a Web Progress Listener */ michael@0: void registerListener(in nsIWebProgressListener listener); michael@0: michael@0: /* Unregister a Web Progress Listener */ michael@0: void unregisterListener(in nsIWebProgressListener listener); michael@0: michael@0: /* This method is called after the dialog that shows the progress has been shown michael@0: */ michael@0: void doneIniting(); michael@0: michael@0: /* Retrieve the prompter, needed to display modal dialog on top of progress dialog */ michael@0: nsIPrompt getPrompter(); michael@0: michael@0: /* Indicated if the user asked to cancel the current process */ michael@0: attribute boolean processCanceledByUser; michael@0: }; michael@0: michael@0: