|
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 #include "nsIWebProgressListener.idl" |
|
6 |
|
7 interface nsIDOMWindow; |
|
8 interface nsIObserver; |
|
9 interface nsIPrompt; |
|
10 |
|
11 [scriptable, uuid(594fd36d-5b1b-412f-a74e-ab72099a5bb2)] |
|
12 interface nsIPrintProgress: nsIWebProgressListener { |
|
13 |
|
14 /* Open the progress dialog |
|
15 you can specify parameters through an xpcom object |
|
16 */ |
|
17 void openProgressDialog(in nsIDOMWindow parent, |
|
18 in string dialogURL, |
|
19 in nsISupports parameters, |
|
20 in nsIObserver openDialogObserver, |
|
21 out boolean notifyOnOpen); |
|
22 |
|
23 /* Close the progress dialog */ |
|
24 void closeProgressDialog(in boolean forceClose); |
|
25 |
|
26 /* Register a Web Progress Listener */ |
|
27 void registerListener(in nsIWebProgressListener listener); |
|
28 |
|
29 /* Unregister a Web Progress Listener */ |
|
30 void unregisterListener(in nsIWebProgressListener listener); |
|
31 |
|
32 /* This method is called after the dialog that shows the progress has been shown |
|
33 */ |
|
34 void doneIniting(); |
|
35 |
|
36 /* Retrieve the prompter, needed to display modal dialog on top of progress dialog */ |
|
37 nsIPrompt getPrompter(); |
|
38 |
|
39 /* Indicated if the user asked to cancel the current process */ |
|
40 attribute boolean processCanceledByUser; |
|
41 }; |
|
42 |
|
43 |