Remove UTF8 BOM marker from last commit.
[wine-gecko.git] / embedding / qa / testembed / PrintProgressDialog.h
blob47d77b1a5677a13bccc11894bfb74d816105c825
1 #if !defined(AFX_PRINTPROGRESSDIALOG_H__1BAF9B13_1875_11D5_9773_000064657374__INCLUDED_)
2 #define AFX_PRINTPROGRESSDIALOG_H__1BAF9B13_1875_11D5_9773_000064657374__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // PrintProgressDialog.h : header file
8 //
10 #include "nsIWebProgressListener.h"
11 class nsIWebBrowser;
13 /////////////////////////////////////////////////////////////////////////////
14 // CPrintProgressDialog dialog
16 class CPrintProgressDialog : public CDialog
18 // Construction
19 public:
20 CPrintProgressDialog(nsIWebBrowser* aWebBrowser,
21 nsIPrintSettings* aPrintSettings,
22 CWnd* pParent = NULL);
23 virtual ~CPrintProgressDialog();
24 virtual int DoModal( );
26 // Helper
27 void SetURI(const char* aTitle);
29 NS_IMETHOD OnStartPrinting(void);
30 NS_IMETHOD OnProgressPrinting(PRUint32 aProgress, PRUint32 aProgressMax);
31 NS_IMETHOD OnEndPrinting(PRUint32 aStatus);
33 // Dialog Data
34 //{{AFX_DATA(CPrintProgressDialog)
35 enum { IDD = IDD_PRINT_PROGRESS_DIALOG };
36 // NOTE: the ClassWizard will add data members here
37 //}}AFX_DATA
40 // Overrides
41 // ClassWizard generated virtual function overrides
42 //{{AFX_VIRTUAL(CPrintProgressDialog)
43 protected:
44 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
45 //}}AFX_VIRTUAL
47 // Implementation
48 protected:
49 CProgressCtrl m_wndProgress;
50 CString m_URL;
51 nsIWebBrowser* m_WebBrowser;
52 nsCOMPtr<nsIWebProgressListener> m_PrintListener;
53 nsIPrintSettings* m_PrintSettings;
54 BOOL m_InModalMode;
56 // Generated message map functions
57 //{{AFX_MSG(CPrintProgressDialog)
58 virtual BOOL OnInitDialog();
59 virtual void OnCancel();
60 //}}AFX_MSG
61 DECLARE_MESSAGE_MAP()
64 //{{AFX_INSERT_LOCATION}}
65 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
67 #endif // !defined(AFX_PRINTPROGRESSDIALOG_H__1BAF9B13_1875_11D5_9773_000064657374__INCLUDED_)