home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / uicldd.zip / IDMITEM.INL < prev    next >
Text File  |  1993-09-03  |  5KB  |  167 lines

  1. #ifndef _IDMITEM_INL_
  2.   #define _IDMITEM_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: idmitem.inl                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   class(es) declared in idmitem.hpp.                                         *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or               *
  15. *   disclosure                                                                 *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. * $Log:   S:/ibmclass/idrag/vcs/idmitem.inv  $                         *
  19. //
  20. //   Rev 1.18   03 Sep 1993 11:18:02   HAGGAR
  21. //drag image support and assorted fixes
  22. //
  23. //   Rev 1.17   28 Aug 1993 15:52:58   banzai
  24. //Move part of rendering/drop logic into IDMItem
  25. //
  26. //   Rev 1.16   18 Aug 1993 15:42:22   banzai
  27. //Remove render associations
  28. //
  29. //   Rev 1.15   17 Aug 1993 09:29:14   law
  30. //Removed template from public i/f.
  31. //
  32. //   Rev 1.14   16 Aug 1993 15:29:42   banzai
  33. //Update PM dragitem iff source update
  34. //
  35. //   Rev 1.13   12 Aug 1993 22:08:20   banzai
  36. //Track src and tgt op handles separately
  37. //
  38. //   Rev 1.12   12 Aug 1993 14:41:14   banzai
  39. //Fix link bug
  40. //
  41. //   Rev 1.11   12 Aug 1993 13:52:50   banzai
  42. //Merge source and target item into one
  43. //
  44. //   Rev 1.10   10 Aug 1993 15:20:20   banzai
  45. //Make drag item provider into template
  46. //
  47. //   Rev 1.9   07 Aug 1993 13:34:10   banzai
  48. //Prose cleanup
  49. //
  50. //   Rev 1.8   26 Jul 1993 19:25:40   banzai
  51. //Design changes per prv/item/rndr
  52. //
  53. //   Rev 1.7   17 Jul 1993 14:04:26   banzai
  54. //Fix trap on exit
  55. //
  56. //   Rev 1.6   15 Jul 1993 13:38:58   banzai
  57. //No change
  58. //
  59. //   Rev 1.5   13 Jul 1993 15:57:32   banzai
  60. //Add assignment operator for handles
  61. //
  62. //   Rev 1.4   12 Jul 1993 11:33:20   banzai
  63. //Rendering changes
  64. //
  65. //   Rev 1.3   01 Jul 1993 12:22:40   HAGGAR
  66. //No change.
  67. //
  68. //   Rev 1.2   04 Jun 1993 15:55:54   unknown
  69. //Changes per control enablement
  70. //
  71. //   Rev 1.1   30 Apr 1993 11:46:08   HAGGAR
  72. //
  73. //   Rev 1.0   22 Apr 1993 10:42:00   HAGGAR
  74. //Initial revision.
  75. //
  76. *******************************************************************************/
  77. #ifndef _IDMITEM_
  78.   #undef  _IDMITEM_INL_
  79.   #define _IDMITEM_INL_ 1
  80.   #include <idmitem.hpp>
  81. #endif
  82.  
  83.  
  84. #if _IDMITEM_INL_
  85.   #define inline
  86. #endif
  87.  
  88.  
  89. /*=========================================================================
  90. | Inlines for IDMItem                                           MAB 08/11 |
  91. =========================================================================*/
  92. inline IWindowHandle IDMItem :: sourceWindow() const
  93. {
  94.   return(this->sourceWndh);
  95. }
  96.  
  97. inline IString IDMItem :: containerName() const
  98. {
  99.   return(this->strContainerName);
  100. }
  101.  
  102. inline IString IDMItem :: sourceName() const
  103. {
  104.   return(this->strSourceName);
  105. }
  106.  
  107. inline IString IDMItem :: targetName() const
  108. {
  109.   return(this->strTargetName);
  110. }
  111.  
  112. inline unsigned short IDMItem :: attributes() const
  113. {
  114.   return(this->dragAttrs);
  115. }
  116.  
  117. inline unsigned short IDMItem :: supportedOperations() const
  118. {
  119.   return(this->dragSupOps);
  120. }
  121.  
  122. inline ISize IDMItem :: origin() const
  123. {
  124.   return(this->sizeOrigin);
  125. }
  126.  
  127. inline IString IDMItem :: types() const
  128. {
  129.   return(this->strTypes);
  130.  
  131. }
  132.  
  133. inline Boolean IDMItem :: hasType(const IString& aType) const
  134. {
  135.   //Scan stored types for argument
  136.   if (this->strTypes.indexOf(aType))
  137.     return(true);
  138.   else
  139.     return(false);
  140. }
  141.  
  142. inline IString IDMItem :: sourceRMFs() const
  143. {
  144.   return(this->strRMFs);
  145. }
  146.  
  147. inline Boolean IDMItem :: hasRMF(const IString& aRMF)
  148. {
  149.   //Scan stored RMFs for argument
  150.   if (this->strRMFs.indexOf(aRMF))
  151.     return(true);
  152.   else
  153.     return(false);
  154. }
  155.  
  156. inline IString IDMItem :: contents() const
  157. {
  158.   return(this->strContents);
  159. }
  160.  
  161. inline unsigned IDMItem :: contentsSize() const
  162. {
  163.   return(this->contents().size());
  164. }
  165.  
  166. #endif // _IDMITEM_INL_
  167.