home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / INCLUDE / AFXOLE.IN_ / AFXOLE.IN
Encoding:
Text File  |  1993-02-08  |  2.5 KB  |  69 lines

  1. // Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992 Microsoft Corporation,
  3. // All rights reserved.
  4.  
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and Microsoft
  7. // QuickHelp and/or WinHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. // Inlines for AFXOLE.H
  12.  
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // General OLE inlines (CDocItem, COleDocument)
  16.  
  17. #ifdef _AFXOLE_INLINE
  18.  
  19. _AFXOLE_INLINE CDocument* CDocItem::GetDocument() const
  20.     { return m_pDocument; }
  21. _AFXOLE_INLINE BOOL COleDocument::IsOpenClientDoc() const
  22.     { return m_lhClientDoc != NULL; }
  23. _AFXOLE_INLINE BOOL COleDocument::IsOpenServerDoc() const
  24.     { return m_lhServerDoc != NULL; }
  25.  
  26. #endif //_AFXOLE_INLINE
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // OLE Client inlines
  30.  
  31. #ifdef _AFXOLECLI_INLINE
  32.  
  33. _AFXOLECLI_INLINE OLESTATUS COleClientItem::GetLastStatus() const
  34.     { return m_lastStatus; }
  35. _AFXOLECLI_INLINE COleClientDoc* COleClientItem::GetDocument() const
  36.     { return (COleClientDoc*)m_pDocument; }
  37. _AFXOLECLI_INLINE OLECLIPFORMAT COleClientItem::EnumFormats(OLECLIPFORMAT nFormat) const
  38.     { return ::OleEnumFormats(m_lpObject, nFormat); }
  39.  
  40. #endif //_AFXOLECLI_INLINE
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. // OLE Server inlines
  44.  
  45. #ifdef _AFXOLESVR_INLINE
  46.  
  47. _AFXOLESVR_INLINE COleServerDoc* COleServerItem::GetDocument() const
  48.     { return (COleServerDoc*)m_pDocument; }
  49. _AFXOLESVR_INLINE BOOL COleServerItem::IsConnected() const
  50.     { return m_lpClient != NULL; }
  51. _AFXOLESVR_INLINE void COleServerItem::NotifyChanged()
  52.     { NotifyClient(OLE_CHANGED); }
  53. _AFXOLESVR_INLINE const CString& COleServerItem::GetItemName() const
  54.     { return m_strItemName; }
  55. _AFXOLESVR_INLINE void COleServerItem::SetItemName(const char* pszItemName)
  56.     { m_strItemName = pszItemName; }
  57. _AFXOLESVR_INLINE void COleServerDoc::NotifyChanged()
  58.     { NotifyAllClients(OLE_CHANGED); }
  59. _AFXOLESVR_INLINE void COleServerDoc::NotifyClosed()
  60.     { NotifyAllClients(OLE_CLOSED); }
  61. _AFXOLESVR_INLINE BOOL COleServer::IsOpen() const
  62.     { return m_lhServer != NULL; }
  63. _AFXOLESVR_INLINE const CString& COleServer::GetServerName() const
  64.     { return m_strServerName; }
  65.  
  66. #endif //_AFXOLESVR_INLINE
  67.  
  68. /////////////////////////////////////////////////////////////////////////////
  69.