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

  1.  
  2. //  Module Header
  3. //
  4. //  Module Name: WPDATAF
  5. //
  6. //  OS/2 Presentation Manager Workplace class definitions
  7. //
  8. //  Copyright (c) International Business Machines Corporation 1991, 1992
  9. //
  10.  
  11. #ifndef wpdataf_idl
  12. #define wpdataf_idl
  13.  
  14. #include "wpfsys.idl"
  15. #include <somcls.idl>
  16.  
  17. interface M_WPDataFile;
  18.  
  19. interface WPDataFile : WPFileSystem
  20.  
  21. {
  22.   ULONG wpAddFileTypePage(in HWND hwndNotebook);
  23.  
  24.   BOOL wpPrintMetaFile(in PPRINTDEST pPrintDest);
  25.  
  26.   BOOL wpPrintPifFile(in PPRINTDEST pPrintDest);
  27.  
  28.   BOOL wpPrintPrinterSpecificFile(in PPRINTDEST pPrintDest);
  29.  
  30.   BOOL wpPrintUnknownFile(in PPRINTDEST pPrintDest);
  31.  
  32.   WPObject wpQueryAssociatedProgram(in ULONG ulView,
  33.                                     in PULONG pulHowMatched,
  34.                                     in PSZ pszMatchString,
  35.                                     in ULONG cbMatchString,
  36.                                     in PSZ pszDefaultType);
  37.   void wpSetAssociatedFileIcon();
  38.  
  39.   HPOINTER wpQueryAssociatedFileIcon();
  40.  
  41. #ifdef __SOMIDL__
  42.   implementation {
  43.  
  44.     releaseorder: wpAddFileTypePage,wpPrintMetaFile,wpPrintPifFile,
  45.                   wpPrintPrinterSpecificFile,wpPrintUnknownFile,wpQueryAssociatedProgram,
  46.                   wpSetAssociatedFileIcon, wpQueryAssociatedFileIcon;
  47.  
  48.     externalstem = wpdf;
  49.     local;
  50.     externalprefix = df_;
  51.     majorversion = 1;
  52.     minorversion = 2;
  53.     filestem = wpdataf;
  54.     metaclass = M_WPDataFile;
  55.     callstyle = oidl;
  56.     dllname = "pmwp.dll";               
  57.  
  58.     passthru C_h =      "        #define MAX_ASSOC_ITEMS 12";
  59.  
  60.     wpDragOver: override;
  61.     wpRestoreState: override;
  62.     wpSetDefaultView: override;
  63.     wpSetRealName: override;
  64.     wpSetType: override;
  65.     wpAddSettingsPages: override;
  66.     wpAddObjectWindowPage: override;
  67.     wpOpen: override;
  68.     wpPrintObject: override;
  69.     wpModifyPopupMenu: override;
  70.     wpMenuItemSelected: override;
  71.     wpMenuItemHelpSelected: override;
  72.     wpQueryDefaultHelp: override;
  73.     wpFormatDragItem: override;
  74.     wpConfirmRenameFileWithExt: override;
  75.     wpQueryIcon: override;
  76.     somDefaultInit: override;          
  77.     somDestruct: override;             
  78.  
  79.  
  80.   };
  81. #endif /* __SOMIDL__ */
  82. };
  83.  
  84. interface M_WPDataFile : M_WPFileSystem
  85. {
  86.  
  87. #ifdef __SOMIDL__
  88.   implementation {
  89.  
  90.     externalstem = wpdf;
  91.     local;
  92.     externalprefix = dfM_;
  93.     majorversion = 1;
  94.     minorversion = 2;
  95.     filestem = wpdataf;
  96.     callstyle = oidl;
  97.     dllname = "pmwp.dll";               
  98.  
  99.     wpclsQueryTitle: override;
  100.     wpclsQueryIconData: override;
  101.     wpclsQueryStyle: override;
  102.     wpclsQueryDefaultView: override;
  103.     wpclsQueryDefaultHelp: override;
  104.  
  105.   };
  106. #endif /* __SOMIDL__ */
  107. };
  108.  
  109. #endif  /* wpdataf_idl */
  110.