home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / viewerse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.7 KB  |  104 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CViewerSecurity dialog
  21.  
  22. class CViewerSecurity : public CDialog
  23. {
  24. // Construction
  25. public:
  26.     CViewerSecurity(CWnd* pParent = NULL);   // standard constructor
  27.  
  28.     //  Whether or not the cancel button was hit.
  29.     BOOL m_bCanceled;
  30.  
  31. // Dialog Data
  32.     //{{AFX_DATA(CViewerSecurity)
  33.     enum { IDD = IDD_VIEWER_SECURITY };
  34.     CString    m_csMessage;
  35.     BOOL    m_bAskNoMore;
  36.     CString    m_csDontAskText;
  37.     //}}AFX_DATA
  38.  
  39.  
  40. // Overrides
  41.     // ClassWizard generated virtual function overrides
  42.     //{{AFX_VIRTUAL(CViewerSecurity)
  43.     protected:
  44.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  45.     //}}AFX_VIRTUAL
  46.  
  47. // Implementation
  48. protected:
  49.  
  50.     // Generated message map functions
  51.     //{{AFX_MSG(CViewerSecurity)
  52.     virtual void OnCancel();
  53.     virtual void OnOK();
  54.     //}}AFX_MSG
  55.     DECLARE_MESSAGE_MAP()
  56. };
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CLaunchHelper dialog
  60.  
  61. #define HELPER_OPEN_IT        0
  62. #define HELPER_SAVE_TO_DISK    1
  63.  
  64. class CLaunchHelper : public CDialog
  65. {
  66. // Construction
  67. public:
  68.     CLaunchHelper(LPCSTR lpszFilename, LPCSTR lpszHelperApp, BOOL canDoOLE, CWnd* pParent = NULL);
  69.  
  70.     // Overridables (special message map entries)
  71.     virtual BOOL OnInitDialog();
  72.  
  73. // Dialog Data
  74.     //{{AFX_DATA(CLaunchHelper)
  75.     enum { IDD = IDD_LAUNCH_HELPER };
  76.     CString m_doc;
  77.     CString    m_strMessage;
  78.     BOOL    m_canDoOLE;
  79.     BOOL    m_bAlwaysAsk;
  80.     BOOL    m_bHandleByOLE;
  81.     int        m_nAction;  // one of HELPER_OPEN_IT or HELPER_SAVE_TO_DISK
  82.     //}}AFX_DATA
  83.  
  84.  
  85. // Overrides
  86.     // ClassWizard generated virtual function overrides
  87.     //{{AFX_VIRTUAL(CLaunchHelper)
  88.     protected:
  89.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  90.     //}}AFX_VIRTUAL
  91.  
  92. // Implementation
  93. protected:
  94.     afx_msg void OnOpenit();
  95.     afx_msg void OnSaveit();
  96.  
  97.     void EnableOLECheck(BOOL enable);
  98.     // Generated message map functions
  99.     //{{AFX_MSG(CLaunchHelper)
  100.     //}}AFX_MSG
  101.     DECLARE_MESSAGE_MAP()
  102. };
  103.  
  104.