nsIPrintProgress.idl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. interface mozIDOMWindowProxy;
  7. interface nsIObserver;
  8. interface nsIPrompt;
  9. [scriptable, uuid(05f4fb88-e568-4d35-b394-ce0aa3eea6fc)]
  10. interface nsIPrintProgress: nsIWebProgressListener {
  11. /* Open the progress dialog
  12. you can specify parameters through an xpcom object
  13. */
  14. void openProgressDialog(in mozIDOMWindowProxy parent,
  15. in string dialogURL,
  16. in nsISupports parameters,
  17. in nsIObserver openDialogObserver,
  18. out boolean notifyOnOpen);
  19. /* Close the progress dialog */
  20. void closeProgressDialog(in boolean forceClose);
  21. /* Register a Web Progress Listener */
  22. void registerListener(in nsIWebProgressListener listener);
  23. /* Unregister a Web Progress Listener */
  24. void unregisterListener(in nsIWebProgressListener listener);
  25. /* This method is called after the dialog that shows the progress has been shown
  26. */
  27. void doneIniting();
  28. /* Retrieve the prompter, needed to display modal dialog on top of progress dialog */
  29. nsIPrompt getPrompter();
  30. /* Indicated if the user asked to cancel the current process */
  31. attribute boolean processCanceledByUser;
  32. };