mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
ab52751787
2) Adds a couple of new methods and an attr to nsIWebBrowserPrint (navigate, is frameset, & exitPP) 3) Removes all but one method from nsIContentViewerFile.idl/h the remaining call is for print regression testing 4) Removes the "static" implementation of nsIContentViewerFile.h 5) Fixed up nsIContentViewerFile.idl and turned it back on so it is now generating the header file 6) Removed all uses of nsIContentViewerFile.h except for the WebCrawler (uses it for Printing Regression testing) 7) nsDocumentViewer.cpp now implements nsIWebBrowserPrint.idl this makes it easier to add new print functionality in one place 8) You can now ask an instance of the ContentViewer for a nsIWebBrowserPrint to do printing (it retruns the nsIWebBrowserPrint interface implemented by the nsDocumentViewer) 9) Anybody who was using nsIContentViewerFile to print will now use nsIWebBrowserPrint 10) You can now do a "GetInterface()" on a GlobalWindow for a nsIWebBrowserPrint 11) The browser UI now uses the GetInterface on the GlobalWindow to get a nsIWebBrowserPrint object to do printing and this can be used for all printing functionality Bug 120622 r=dcone sr=waterson
70 lines
2.0 KiB
C++
70 lines
2.0 KiB
C++
#if !defined(AFX_PRINTPROGRESSDIALOG_H__1BAF9B13_1875_11D5_9773_000064657374__INCLUDED_)
|
|
#define AFX_PRINTPROGRESSDIALOG_H__1BAF9B13_1875_11D5_9773_000064657374__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// PrintProgressDialog.h : header file
|
|
//
|
|
|
|
#include "nsIWebProgressListener.h"
|
|
class nsIWebBrowser;
|
|
class nsIDOMWindow;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPrintProgressDialog dialog
|
|
|
|
class CPrintProgressDialog : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CPrintProgressDialog(nsIWebBrowser* aWebBrowser,
|
|
nsIPrintSettings* aPrintSettings,
|
|
CWnd* pParent = NULL);
|
|
virtual ~CPrintProgressDialog();
|
|
virtual int DoModal( );
|
|
|
|
// Helper
|
|
void SetURI(const char* aTitle);
|
|
|
|
NS_IMETHOD OnStartPrinting(void);
|
|
NS_IMETHOD OnProgressPrinting(PRUint32 aProgress, PRUint32 aProgressMax);
|
|
NS_IMETHOD OnEndPrinting(PRUint32 aStatus);
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CPrintProgressDialog)
|
|
enum { IDD = IDD_PRINT_PROGRESS_DIALOG };
|
|
// NOTE: the ClassWizard will add data members here
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CPrintProgressDialog)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
CProgressCtrl m_wndProgress;
|
|
CString m_URL;
|
|
nsIWebBrowser* m_WebBrowser;
|
|
nsIDOMWindow* m_DOMWin;
|
|
nsCOMPtr<nsIWebProgressListener> m_PrintListener;
|
|
nsIPrintSettings* m_PrintSettings;
|
|
BOOL m_InModalMode;
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CPrintProgressDialog)
|
|
virtual BOOL OnInitDialog();
|
|
virtual void OnCancel();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_PRINTPROGRESSDIALOG_H__1BAF9B13_1875_11D5_9773_000064657374__INCLUDED_)
|