home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / LINKMGR.IDL < prev    next >
Text File  |  1995-11-08  |  3KB  |  106 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15.  
  16. #ifndef _LINKMGR_
  17. #define _LINKMGR_
  18.  
  19. #ifndef _ODOBJECT_
  20. #include "ODObject.idl"
  21. #endif
  22.  
  23. #ifndef _STORAGEU_
  24. #include "StorageU.idl"
  25. #endif
  26.  
  27. //=====================================================================================
  28. // Theory of Operation
  29. //=====================================================================================
  30.  
  31. //=====================================================================================
  32. // Classes defined in this interface
  33. //=====================================================================================
  34.  
  35. interface  ODLinkManager;
  36.  
  37. //=====================================================================================
  38. // Classes used by this interface
  39. //=====================================================================================
  40.  
  41. interface  ODSession;
  42. interface  ODDocument;
  43. interface  ODDraft;
  44. interface  ODLink;
  45. interface  ODLinkSource;
  46. interface  ODLinkSpec;
  47.  
  48.  
  49. //=====================================================================================
  50. // Private struct DraftInfo
  51. //=====================================================================================
  52.  
  53.  
  54. //=====================================================================================
  55. // ODLinkManager
  56. //=====================================================================================
  57.  
  58. interface ODLinkManager : ODObject
  59. {
  60.   ODULong NewSectionID(in ODDraft draft);
  61.  
  62.   ODBoolean ReserveSectionID(in ODULong sectionID,
  63.                 in ODDraft draft);
  64.  
  65.   ODBoolean UnsavedExportedLinks(in ODDraft draft);
  66.  
  67.   ODBoolean AnyLinkImported(in ODDraft draft);
  68.  
  69.   void DraftOpened(in ODDraft draft);
  70.  
  71.   void DraftSaved(in ODDraft draft);
  72.  
  73.   void DraftClosing(in ODDraft draft);
  74.  
  75.   ODLinkSource CreateLink(in ODDraft draft, 
  76.             in ODLinkSpec linkSpec);
  77.  
  78.  
  79. #ifdef __SOMIDL__
  80. implementation
  81. {
  82.     functionprefix = ODLinkManager;
  83.     override:
  84.         somInit,
  85.         somUninit;
  86.     releaseorder:
  87.     reserved1,
  88.         NewSectionID,
  89.         ReserveSectionID,
  90.         UnsavedExportedLinks,
  91.         AnyLinkImported,
  92.         DraftOpened,
  93.         DraftSaved,
  94.         DraftClosing,
  95.         ExportOnSave,
  96.         DeleteOnSave,
  97.         CreateLink,
  98.     reserved2,reserved3,reserved4,reserved5;
  99.  
  100. };
  101. #endif
  102. };
  103.  
  104. #endif  // _LINKMGR_
  105.  
  106.