home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n04 / olecont.exe / CONTDOC.H < prev    next >
C/C++ Source or Header  |  1995-04-01  |  3KB  |  89 lines

  1. // contdoc.h : interface of the CContainerDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6. // definitions
  7.  
  8. #define MAX_STD_APROP_CT (32)
  9. #define MAX_NONSTD_APROP_CT (32)
  10.  
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // Global Functions
  14.  
  15. HRESULT TFVarCopy (VARIANT * pvarDest, VARIANT * pvarSrc);
  16.  
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // class CContainerDoc
  20.  
  21. class CContainerDoc : public COleDocument
  22. {
  23. protected: // create from serialization only
  24.     CContainerDoc();
  25.     DECLARE_DYNCREATE(CContainerDoc)
  26.  
  27. // Attributes
  28. public:
  29.  
  30. protected:
  31.     // Ambient Property Attributes
  32.     APROP             m_apropStd[MAX_STD_APROP_CT];
  33.     int             m_nStdApropCt;
  34.     APROP            m_apropDlgStd[MAX_STD_APROP_CT];
  35.     int             m_nDlgStdApropCt;
  36.     APROP             m_apropNonstd[MAX_NONSTD_APROP_CT];
  37.     int             m_nNonstdApropCt;
  38.     APROP             m_apropDlgNonstd[MAX_NONSTD_APROP_CT];
  39.     int             m_nDlgNonstdApropCt;
  40.     CFontHolder*     m_lpFontHolder;
  41.     CString         m_strFaceName;
  42.     FONTDESC         m_fntdesc;
  43.  
  44. // Operations
  45. public:
  46.     // Ambient property management  
  47.     void AnnounceApropChange (DISPID dispidAprop);
  48.     BOOL SetDefaultAmbientProps();
  49.     void DestroyAmbientProps(BOOL bInitializing = FALSE);
  50.     void DestroyDlgAmbientProps(BOOL bInitializing = FALSE);
  51.     LPAPROP FindAprop (DISPID dispid);
  52.     LPAPROP FindAprop (const TCHAR * pszName);
  53.  
  54. // Overrides
  55.     // ClassWizard generated virtual function overrides
  56.     //{{AFX_VIRTUAL(CContainerDoc)
  57.     public:
  58.     virtual BOOL OnNewDocument();
  59.     //}}AFX_VIRTUAL
  60.  
  61. // Implementation
  62. public:
  63.     virtual ~CContainerDoc();
  64.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  65. #ifdef _DEBUG
  66.     virtual void AssertValid() const;
  67.     virtual void Dump(CDumpContext& dc) const;
  68. #endif
  69.  
  70. protected:
  71.  
  72. // Generated message map functions
  73. protected:
  74.     //{{AFX_MSG(CContainerDoc)
  75.         // NOTE - the ClassWizard will add and remove member functions here.
  76.         //    DO NOT EDIT what you see in these blocks of generated code !
  77.     //}}AFX_MSG
  78.     DECLARE_MESSAGE_MAP()
  79.  
  80.     // Generated OLE dispatch map functions
  81.     //{{AFX_DISPATCH(CContainerDoc)
  82.         // NOTE - the ClassWizard will add and remove member functions here.
  83.         //    DO NOT EDIT what you see in these blocks of generated code !
  84.     //}}AFX_DISPATCH
  85.     DECLARE_DISPATCH_MAP()
  86. };
  87.  
  88. /////////////////////////////////////////////////////////////////////////////
  89.