Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: ACRSPSht.cpp
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. #include "stdafx.h"
  12. #include <gpedit.h>
  13. #include "ACRSPSht.h"
  14. #include "storegpe.h"
  15. #ifdef _DEBUG
  16. #ifndef ALPHA
  17. #define new DEBUG_NEW
  18. #endif
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22. /////////////////////////////////////////////////////////////////////////////
  23. // ACRSWizardPropertySheet
  24. ACRSWizardPropertySheet::ACRSWizardPropertySheet(
  25. CCertStoreGPE* pCertStore,
  26. CAutoCertRequest* pACR)
  27. :CWizard97PropertySheet (IDS_ACRS_WIZARD_SHEET_CAPTION, IDB_ACRS_WATERMARK, IDB_ACRS_BANNER),
  28. m_bDirty (false),
  29. m_selectedCertType (0),
  30. m_pCertStore (pCertStore),
  31. m_pACR (pACR),
  32. m_bEditModeDirty (false)
  33. {
  34. ASSERT (m_pCertStore);
  35. m_pCertStore->AddRef ();
  36. if ( m_pACR )
  37. m_pACR->AddRef ();
  38. }
  39. ACRSWizardPropertySheet::~ACRSWizardPropertySheet()
  40. {
  41. m_pCertStore->Release ();
  42. if ( m_pACR )
  43. m_pACR->Release ();
  44. }
  45. bool ACRSWizardPropertySheet::IsDirty()
  46. {
  47. return m_bDirty;
  48. }
  49. void ACRSWizardPropertySheet::MarkAsClean()
  50. {
  51. m_bDirty = false;
  52. }
  53. void ACRSWizardPropertySheet::SetDirty()
  54. {
  55. m_bDirty = true;
  56. }
  57. CAutoCertRequest* ACRSWizardPropertySheet::GetACR()
  58. {
  59. return m_pACR;
  60. }