home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / IDL / WPDATAF.IDL < prev    next >
Text File  |  1995-08-30  |  3KB  |  81 lines

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