home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / ODPRTREG.IDL < prev    next >
Text File  |  1995-12-13  |  5KB  |  109 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. #ifndef _ODPRTREG_
  16. #define _ODPRTREG_
  17.  
  18. #include <somobj.idl>
  19.  
  20. #ifndef _ODTYPESM_
  21. #include <ODTypesM.idl>
  22. #endif
  23.  
  24. //==============================================================================
  25. // Theory of Operation
  26. //==============================================================================
  27.  
  28. /*
  29.   This file defines class ODPartHandlerInfo.  This class contains information 
  30.   about a part handler class.  This information is kept by the OpenDoc part 
  31.   registry and is used by the OpenDoc shell and some OpenDoc utilities.
  32. */
  33.  
  34. //==============================================================================
  35. // Classes defined in this interface
  36. //==============================================================================
  37.  
  38. interface  ODPartHandlerRegistry;
  39.  
  40. //==============================================================================
  41. // Classes used by this interface
  42. //==============================================================================
  43.  
  44. interface ODPartHandlerInfo;
  45.  
  46. //==============================================================================
  47. // ODPartHandlerRegistry
  48. //==============================================================================
  49.  
  50. interface ODPartHandlerRegistry  : SOMObject
  51. {
  52.   long RegisterPartHandlerClass( in string className, in string DLLName, in long cTemplate, in long reserved);
  53.   long DeregisterPartHandler( in ISOString partHandlerName);
  54.   long DeregisterPartHandlerClass( in string partHandlerClassName);
  55.   sequence<ISOString> GetPartHandlerList( in ISOString partKindName, in string category);
  56.   sequence<ISOString> GetPartKindList( in ISOString partHandlerName, in string category);
  57.   ODPartHandlerInfo GetPartHandlerInfo( in ISOString partHandlerName);
  58.   ISOString GetPreferredPartHandler( in ISOString partKindName);
  59.   long      SetPreferredPartHandler( in ISOString partKindName, in ISOString partHandlerName);
  60.   void      UpdateODPartHandlerInfo( in ISOString partHandlerName, in sequence<PartKindInfo> newKindInfo);
  61.   ISOString GetPreferredPartHandlerForFileType( in ISOString partFileTypeName);
  62.   long      SetPreferredPartHandlerForFileType( in ISOString partFileTypeName, in ISOString partHandlerName);
  63.   ISOString GetPreferredPartHandlerForFileExt( in ISOString partFileExtensionName);
  64.   long      SetPreferredPartHandlerForFileExt( in ISOString partFileExtensionName, in ISOString partHandlerName);
  65.   sequence<string> GetFileTypeList( in ISOString partHandlerName, in ISOString partKindName);  
  66.   sequence<string> GetFileExtensionList( in ISOString partHandlerName, in ISOString partKindName); 
  67.   sequence<ISOString> GetPartHandlerListForFileTypes(in string fileType);
  68.   sequence<ISOString> GetPartHandlerListForFileExt(in string fileExtension);
  69.   ISOString GetPreferredPartHandlerForCategory( in ISOString category);
  70.   long      SetPreferredPartHandlerForCategory( in ISOString category, in ISOString partHandlerName);
  71.   sequence<string> GetCategoryList( in ISOString partHandlerName, in ISOString partKindName); 
  72. #ifdef __SOMIDL__
  73.  
  74.   implementation
  75.   {
  76.  
  77.     functionprefix = ODPartHandlerRegistry;
  78.  
  79.     releaseorder:
  80.       RegisterPartHandlerClass,
  81.       DeregisterPartHandler,
  82.       DeregisterPartHandlerClass,
  83.       GetPartHandlerList,
  84.       GetPartKindList,
  85.       GetPartHandlerInfo,
  86.       GetPreferredPartHandler,
  87.       SetPreferredPartHandler,
  88.       UpdateODPartHandlerInfo,
  89.       GetPreferredPartHandlerForFileType,
  90.       SetPreferredPartHandlerForFileType,
  91.       GetPreferredPartHandlerForFileExt,
  92.       SetPreferredPartHandlerForFileExt,
  93.       GetFileTypeList,
  94.       GetFileExtensionList,
  95.       GetPartHandlerListForFileTypes,
  96.       GetPartHandlerListForFileExt,
  97.       GetPreferredPartHandlerForCategory,
  98.       SetPreferredPartHandlerForCategory,
  99.       GetCategoryList;
  100.  
  101.   };
  102.  
  103. #endif
  104.  
  105. };
  106.  
  107. #endif 
  108.  
  109.