home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / EmbedCtr.idl < prev    next >
Text File  |  1997-03-21  |  5KB  |  172 lines

  1. /* @(#)Z 1.5 com/src/bento/localidl/EmbedCtr.idl, odstorage, od96os2, odos29712d 97/03/21 17:20:05 (96/10/29 09:14:41) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odstorage
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28.  
  29. #ifdef __PRIVATE__
  30. //#
  31. //#    File:        EmbedCtr.idl
  32. //#
  33. //#    Contains:    class definition for Bento Embedded Container
  34. //#
  35. //#    Owned by:    Vincent Lo
  36. //#
  37. //#    Copyright:    (r) 1994-95 by Apple Computer, Inc., all rights reserved.
  38. //#
  39. //#    Change History (most recent first):
  40. //#
  41. //#        <14>     8/16/95    VL        1275241: Cleaned up IDL file.
  42. //#        <13>      8/3/95    RR        #1257260: Collapse B classes. Remove
  43. //#                                    somInit methods. Don't call IsInitialized
  44. //#                                    or SubclassResponsibility
  45. //#        <12>     5/25/95    VL        1251403: Multithreading naming support.
  46. //#        <11>     3/31/95    EL        1234685: Add private field fTargetObject.
  47. //#        <10>      3/6/95    EL        1182275: We don't need
  48. //#                                     DraftPropertiesObject.
  49. //#         <9>     2/21/95    EL        1182275: Add private method
  50. //#                                    SetDraftPropertiesObject.
  51. //#         <8>     2/15/95    EL        1182275: Add private method SetMergeFlag.
  52. //#         <7>     11/1/94    VL        1151339: Preparation for MergeContainer by
  53. //#                                    adding fShouldMerge.
  54. //#         <6>      7/5/94    VL        Added GetUseMode.
  55. //#         <5>     6/30/94    CC        Added private methods GetCMContainer() &
  56. //#                                    GetHandlers() and private fields
  57. //#                                    fCMContainer & fHandlers.
  58. //#         <4>     6/29/94    CC        Removed nonexistent overrides.
  59. //#         <3>     6/22/94    VL        Changed XMP to OD.
  60. //#         <2>     6/15/94    CC        Added functionprefix to eliminate Undefined
  61. //#                                    entry, name: "_%CREATE".
  62. //#         <1>      6/8/94    VL        first checked in
  63. //#
  64. //#    To Do:
  65. //#
  66. #else
  67. //#    Copyright:    (r) 1993-1994 by Apple Computer, Inc., all rights reserved.
  68. #endif
  69.  
  70. #ifndef _EMBEDCTR_
  71. #define _EMBEDCTR_
  72.  
  73. #ifndef _CMCTR_
  74. #include "CMCtr.idl"
  75. #endif
  76.  
  77. //==============================================================================
  78. // Classes defined in this interface
  79. //==============================================================================
  80. interface ODEmbeddedContainer;
  81.  
  82. #ifdef __PRIVATE__
  83.  
  84. //=====================================================================================
  85. // Implementation Types
  86. //=====================================================================================
  87.  
  88. typedef somToken CMContainerUseMode;
  89. typedef somToken CMValue;
  90. #endif
  91.  
  92. //==============================================================================
  93. // ODContainer
  94. //==============================================================================
  95.  
  96. interface ODEmbeddedContainer : ODBentoContainer 
  97. {
  98.  
  99. #ifdef __PRIVATE__
  100.  
  101.     typedef struct ODEmbeddedContainerID_struct {
  102.         CMValue        cmValue;
  103.         ODBoolean    shouldMerge;
  104.     } ODEmbeddedContainerID;
  105.     
  106.     ODContainer    Abort();
  107.     CMContainerUseMode    GetUseMode();
  108.     void SetMergeFlag(in ODBoolean flag);
  109. #endif
  110.  
  111. #ifdef __SOMIDL__
  112.     implementation
  113.     {
  114.     majorversion = 1; minorversion = 0;
  115.     functionprefix = ODEmbeddedContainer;
  116.     override:
  117.         somUninit,
  118.         Release,
  119.         Purge,
  120.         GetName,
  121.         SetName,
  122.         AcquireDocument,
  123.         #ifdef __PRIVATE__
  124.             InitContainer,
  125.             GetCMContainer,
  126.             GetHandlers,
  127.             Create,
  128.             Open,
  129.             Close,
  130.             ReleaseDocument;
  131.         #else
  132.             reserved1,
  133.             reserved2,
  134.             reserved3,
  135.             reserved4,
  136.             reserved5,
  137.             reserved6,
  138.             reserved7;
  139.         #endif
  140.     releaseorder:
  141.         #ifdef __PRIVATE__
  142.             Abort,
  143.             GetUseMode,
  144.             SetMergeFlag;
  145.         #else
  146.             reserved1,
  147.             reserved2,
  148.             reserved3;
  149.         #endif
  150.  
  151.     #ifdef __PRIVATE__
  152.         passthru C_xih = 
  153.                 "#include <BentoHdr.h>"
  154.                 "";
  155.         passthru C_xh = ""
  156.                 "class ODBentoHandlers;"
  157.                 "#include <CMAPI.h>"
  158.                 "";
  159.  
  160.         CMContainer            fCMContainer;
  161.         ODBentoHandlers*    fHandlers;
  162.         CMContainerUseMode    fUseMode;
  163.         ODBoolean            fShouldMerge;
  164.         CMValue                fTargetValue;
  165.     #endif
  166.  
  167.     };
  168. #endif
  169. };
  170.  
  171. #endif  // _EMBEDCTR_
  172.