embedding/components/printingui/src/unixshared/nsPrintProgress.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:db971ff568c9
1 /* -*- Mode: C++; tab-width: 2; 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
6 #ifndef __nsPrintProgress_h
7 #define __nsPrintProgress_h
8
9 #include "nsIPrintProgress.h"
10 #include "nsIPrintingPromptService.h"
11
12 #include "nsCOMArray.h"
13 #include "nsCOMPtr.h"
14 #include "nsIDOMWindow.h"
15 #include "nsIPrintStatusFeedback.h"
16 #include "nsIObserver.h"
17 #include "nsString.h"
18
19 class nsPrintProgress : public nsIPrintProgress, public nsIPrintStatusFeedback
20 {
21 public:
22 NS_DECL_THREADSAFE_ISUPPORTS
23 NS_DECL_NSIPRINTPROGRESS
24 NS_DECL_NSIWEBPROGRESSLISTENER
25 NS_DECL_NSIPRINTSTATUSFEEDBACK
26
27 nsPrintProgress(nsIPrintSettings* aPrintSettings);
28 virtual ~nsPrintProgress();
29
30 private:
31 nsresult ReleaseListeners();
32
33 bool m_closeProgress;
34 bool m_processCanceled;
35 nsString m_pendingStatus;
36 int32_t m_pendingStateFlags;
37 nsresult m_pendingStateValue;
38 nsCOMPtr<nsIDOMWindow> m_dialog;
39 nsCOMArray<nsIWebProgressListener> m_listenerList;
40 nsCOMPtr<nsIObserver> m_observer;
41 nsCOMPtr<nsIPrintSettings> m_PrintSetting;
42 };
43
44 #endif

mercurial