Back to index

lightning-sunbird  0.9+nobinonly
CBrowseDlg.h
Go to the documentation of this file.
00001 // CBrowseDlg.h : header file
00002 //
00003 
00004 #if !defined(AFX_CBROWSEDLG_H__5121F5E6_5324_11D2_93E1_000000000000__INCLUDED_)
00005 #define AFX_CBROWSEDLG_H__5121F5E6_5324_11D2_93E1_000000000000__INCLUDED_
00006 
00007 #if _MSC_VER >= 1000
00008 #pragma once
00009 #endif // _MSC_VER >= 1000
00010 
00011 #include "TabMessages.h"
00012 #include "TabTests.h"
00013 #include "TabDOM.h"
00014 
00016 // CBrowseDlg dialog
00017 
00018 class CBrowseDlg : public CDialog
00019 {
00020 // Construction
00021 public:
00022        CBrowserCtlSiteInstance *m_pControlSite;
00023        CLSID m_clsid;
00024        BOOL m_bUseCustomPopupMenu;
00025        BOOL m_bUseCustomDropTarget;
00026        CMenu m_menu;
00027     BOOL m_bNewWindow;
00028     BOOL m_bEditMode;
00029     BOOL m_bCanGoBack;
00030     BOOL m_bCanGoForward;
00031        CBrowseDlg(CWnd* pParent = NULL);  // standard constructor
00032 
00033        static CBrowseDlg *m_pBrowseDlg;
00034 
00035        HRESULT CreateWebBrowser();
00036        HRESULT DestroyWebBrowser();
00037        HRESULT GetWebBrowser(IWebBrowser **pWebBrowser);
00038 
00039        void RunTestSet(TestSet *pTestSet);
00040        TestResult RunTest(Test *pTest);
00041        void UpdateTest(HTREEITEM hItem, TestResult nResult);
00042        void UpdateTestSet(HTREEITEM hItem);
00043        void UpdateURL();
00044        void OutputString(const TCHAR *szMessage, ...);
00045        void ExecOleCommand(const GUID *pguidGroup, DWORD nCmdId);
00046 
00047 // Dialog Data
00048        //{{AFX_DATA(CBrowseDlg)
00049        enum { IDD = IDD_CBROWSE_DIALOG };
00050        CButton       m_btnStop;
00051        CButton       m_btnForward;
00052        CButton       m_btnBack;
00053        CComboBox     m_cmbURLs;
00054        //}}AFX_DATA
00055 
00056        CToolBar m_EditBar;
00057        CPropertySheet m_dlgPropSheet;
00058        CTabMessages m_TabMessages;
00059        CTabTests    m_TabTests;
00060        CTabDOM      m_TabDOM;
00061        CImageList m_cImageList;
00062 
00063        void OnRefreshDOM();
00064        void OnRunTest();
00065        void PopulateTests();
00066        
00067        // ClassWizard generated virtual function overrides
00068        //{{AFX_VIRTUAL(CBrowseDlg)
00069        protected:
00070        virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
00071        //}}AFX_VIRTUAL
00072 
00073 // Implementation
00074 protected:
00075        HICON m_hIcon;
00076        CString m_szTestURL;
00077        CString m_szTestCGI;
00078        DWORD m_dwCookie;
00079 
00080        // Generated message map functions
00081        //{{AFX_MSG(CBrowseDlg)
00082        virtual BOOL OnInitDialog();
00083        afx_msg void OnPaint();
00084        afx_msg HCURSOR OnQueryDragIcon();
00085        afx_msg void OnGo();
00086        afx_msg void OnBackward();
00087        afx_msg void OnForward();
00088        afx_msg void OnClose();
00089        afx_msg void OnDestroy();
00090        afx_msg void OnSize(UINT nType, int cx, int cy);
00091        afx_msg void OnFileExit();
00092        afx_msg void OnViewGotoBack();
00093        afx_msg void OnViewGotoForward();
00094        afx_msg void OnViewGotoHome();
00095        afx_msg void OnEditCopy();
00096        afx_msg void OnEditCut();
00097        afx_msg void OnEditPaste();
00098        afx_msg void OnHelpAbout();
00099        afx_msg void OnUpdateViewGotoBack(CCmdUI* pCmdUI);
00100        afx_msg void OnUpdateViewGotoForward(CCmdUI* pCmdUI);
00101        afx_msg void OnEditSelectAll();
00102        afx_msg void OnViewRefresh();
00103        afx_msg void OnViewViewSource();
00104        afx_msg void OnStop();
00105        afx_msg void OnFileSaveAs();
00106        afx_msg void OnFilePrint();
00107        afx_msg void OnDebugVisible();
00108        afx_msg void OnUpdateDebugVisible(CCmdUI* pCmdUI);
00109        afx_msg void OnDebugPostDataTest();
00110        afx_msg void OnReload();
00111        afx_msg void OnViewEditmode();
00112        afx_msg void OnViewOpenInNewWindow();
00113        afx_msg void OnUpdateViewEditmode(CCmdUI* pCmdUI);
00114        afx_msg void OnUpdateViewOpenInNewWindow(CCmdUI* pCmdUI);
00115        afx_msg void OnFilePagesetup();
00116        //}}AFX_MSG
00117        afx_msg void OnEditBold();
00118        afx_msg void OnEditItalic();
00119        afx_msg void OnEditUnderline();
00120 
00121        DECLARE_MESSAGE_MAP()
00122 };
00123 
00124 //{{AFX_INSERT_LOCATION}}
00125 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
00126 
00127 #endif // !defined(AFX_CBROWSEDLG_H__5121F5E6_5324_11D2_93E1_000000000000__INCLUDED_)