Leaked source code of windows server 2003
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.

100 lines
3.2 KiB

  1. // maindoc.h : interface of the CMainDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. #include "schclss.h"
  13. class CQueryStatus;
  14. class CMainDoc : public CDocument
  15. {
  16. protected: // create from serialization only
  17. CMainDoc();
  18. DECLARE_SERIAL(CMainDoc)
  19. // Attributes
  20. public:
  21. // an example of document specific data
  22. // Implementation
  23. public:
  24. virtual ~CMainDoc();
  25. virtual void Serialize(CArchive& ar); // overridden for document i/o
  26. void SetUseGeneric( BOOL );
  27. void SetCurrentItem ( DWORD dwToken );
  28. void DeleteAllItems ( void );
  29. DWORD GetToken ( void* );
  30. COleDsObject* GetObject ( void* );
  31. DWORD GetChildItemList ( DWORD dwToken, DWORD* pTokens, DWORD dwBufferSize );
  32. COleDsObject* GetCurrentObject ( void );
  33. CClass* CreateClass ( COleDsObject* );
  34. DWORD CreateOleDsItem ( COleDsObject* pParent, IADs* pIOleDs );
  35. BOOL GetUseGeneric ( void );
  36. BOOL GetUseGetEx ( void );
  37. HRESULT XOleDsGetObject ( WCHAR*, REFIID, void**);
  38. HRESULT XOleDsGetObject ( CHAR*, REFIID, void**);
  39. HRESULT PurgeObject ( IUnknown* pIUnknown, LPWSTR pszPrefix = NULL );
  40. BOOL UseVBStyle ( void );
  41. BOOL UsePropertiesList ( void );
  42. protected:
  43. virtual BOOL OnNewDocument( );
  44. virtual BOOL OnOpenDocument( LPCTSTR );
  45. BOOL NewActiveItem ( );
  46. HRESULT CreateRoot ( );
  47. BOOL CreateFakeSchema ( );
  48. protected:
  49. DWORD m_dwToken;
  50. DWORD m_dwRoot;
  51. CMapStringToOb* m_pClasses;
  52. CMapStringToOb* m_pItems;
  53. BOOL m_bApplyFilter;
  54. BOOL m_arrFilters[ LIMIT ];
  55. BOOL m_bUseGeneric;
  56. BOOL m_bUseGetEx;
  57. BOOL m_bUseVBStyle;
  58. BOOL m_bUseOpenObject;
  59. BOOL m_bSecure;
  60. BOOL m_bEncryption;
  61. BOOL m_bUsePropertiesList;
  62. CString m_strRoot;
  63. CString m_strUser;
  64. CString m_strPassword;
  65. // Generated message map functions
  66. protected:
  67. //{{AFX_MSG(CMainDoc)
  68. afx_msg void OnChangeData();
  69. afx_msg void OnSetFilter();
  70. afx_msg void OnDisableFilter();
  71. afx_msg void OnUpdateDisablefilter(CCmdUI* pCmdUI);
  72. afx_msg void OnUseGeneric();
  73. afx_msg void OnUpdateUseGeneric(CCmdUI* pCmdUI);
  74. afx_msg void OnUpdateUseGetExPutEx(CCmdUI* pCmdUI);
  75. afx_msg void OnUseGetExPutEx();
  76. afx_msg void OnUsepropertiesList();
  77. afx_msg void OnUpdateUsepropertiesList(CCmdUI* pCmdUI);
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. };
  81. /////////////////////////////////////////////////////////////////////////////