home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpsclass.zip / WPDATAF.HH < prev    next >
Text File  |  1995-05-15  |  4KB  |  120 lines

  1.  
  2. #ifndef WPDataFile_Source
  3. #define WPDataFile_Source
  4.  
  5. #include <wpfsys.hh>
  6. #pragma off(dts_class);
  7. #pragma on(somobject_assignment_operators);
  8. #pragma on(somobject_constructors);
  9. #pragma on(somobject_destructor);
  10. #pragma off(case_insensitive_class_names);
  11.  
  12. #pragma on(som_bindings);
  13.  
  14. #define MAX_ASSOC_ITEMS 12
  15.  
  16. class WPDataFile : public WPFileSystem {
  17.  
  18.      #pragma SOMMap (WPDataFile, "WPDataFile", "M_WPDataFile")
  19.  
  20.      #pragma SOMClassVersion (WPDataFile, 1, 2)
  21.  
  22.      #pragma SOMCallstyle (WPDataFile, oidl)
  23.  
  24.      #pragma off(som_bindings);
  25.      #pragma pop(som_bindings);
  26.   public :
  27.  
  28. #pragma off(use_override_signature)
  29.      virtual ULONG wpAddFileTypePage(HWND hwndNotebook);
  30.      virtual BOOL wpPrintMetaFile(PPRINTDEST pPrintDest);
  31.      virtual BOOL wpPrintPifFile(PPRINTDEST pPrintDest);
  32.      virtual BOOL wpPrintPrinterSpecificFile(PPRINTDEST pPrintDest);
  33.      virtual BOOL wpPrintUnknownFile(PPRINTDEST pPrintDest);
  34.      virtual WPObject* wpQueryAssociatedProgram(ULONG ulView,
  35.                                                 PULONG pulHowMatched,
  36.                                                 PSZ pszMatchString,
  37.                                                 ULONG cbMatchString,
  38.                                                 PSZ pszDefaultType);
  39.      virtual void wpSetAssociatedFileIcon();
  40.      virtual MRESULT wpDragOver(HWND hwndCnr, PDRAGINFO pdrgInfo);
  41.      virtual BOOL wpRestoreState(ULONG ulReserved);
  42.      virtual BOOL wpSetDefaultView(ULONG ulView);
  43.      virtual BOOL wpSetRealName(PSZ pszName);
  44.      virtual BOOL wpSetType(PSZ pszTypes, PFEA2LIST pfeal);
  45.      virtual void wpUnInitData();
  46.      virtual BOOL wpAddSettingsPages(HWND hwndNotebook);
  47.      virtual ULONG wpAddObjectWindowPage(HWND hwndNotebook);
  48.      virtual HWND wpOpen(HWND hwndCnr, ULONG ulView, ULONG param);
  49.      virtual BOOL wpPrintObject(PPRINTDEST pPrintDest, ULONG ulReserved);
  50.      virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr,
  51.                                     ULONG iPosition);
  52.      virtual BOOL wpMenuItemSelected(HWND hwndFrame, ULONG ulMenuId);
  53.      virtual BOOL wpMenuItemHelpSelected(ULONG MenuId);
  54.      virtual BOOL wpQueryDefaultHelp(PULONG pHelpPanelId, PSZ HelpLibrary);
  55.      virtual BOOL wpFormatDragItem(PDRAGITEM pdrgItem);
  56.      virtual ULONG wpConfirmRenameFileWithExt();
  57. #pragma pop(use_override_signature)
  58.  
  59.      #pragma SOMReleaseOrder ( \
  60.                               wpAddFileTypePage, \
  61.                               wpPrintMetaFile, \
  62.                               wpPrintPifFile, \
  63.                               wpPrintPrinterSpecificFile, \
  64.                               wpPrintUnknownFile, \
  65.                               wpQueryAssociatedProgram, \
  66.                               wpSetAssociatedFileIcon)
  67. };
  68. #pragma pop(som_bindings);
  69.  
  70. #pragma pop(dts_class);
  71. #pragma pop(somobject_assignment_operators);
  72. #pragma pop(somobject_constructors);
  73. #pragma pop(somobject_destructor);
  74. #pragma pop(case_insensitive_class_names);
  75. #endif /* WPDataFile_Source */
  76.  
  77. #ifndef M_WPDataFile_Source
  78. #define M_WPDataFile_Source
  79.  
  80. #include <wpfsys.hh>
  81. #include <somcls.hh>
  82. #pragma off(dts_class);
  83. #pragma on(somobject_assignment_operators);
  84. #pragma on(somobject_constructors);
  85. #pragma on(somobject_destructor);
  86. #pragma off(case_insensitive_class_names);
  87.  
  88. #pragma on(som_bindings);
  89. class M_WPDataFile : public M_WPFileSystem {
  90.  
  91.      #pragma SOMClassVersion (M_WPDataFile, 1, 2)
  92.  
  93.      #pragma SOMCallstyle (M_WPDataFile, oidl)
  94.  
  95.      #pragma off(som_bindings);
  96.      #pragma pop(som_bindings);
  97.   public :
  98.  
  99. #pragma off(use_override_signature)
  100.      virtual PSZ wpclsQueryTitle();
  101.      virtual ULONG wpclsQueryIconData(PICONINFO pIconInfo);
  102.      virtual ULONG wpclsQueryStyle();
  103.      virtual ULONG wpclsQueryDefaultView();
  104.      virtual BOOL wpclsQueryDefaultHelp(PULONG pHelpPanelId,
  105.                                         PSZ pszHelpLibrary);
  106. #pragma pop(use_override_signature)
  107.  
  108.      #pragma SOMReleaseOrder ()
  109.  
  110. };
  111. #pragma pop(som_bindings);
  112.  
  113. #pragma pop(dts_class);
  114. #pragma pop(somobject_assignment_operators);
  115. #pragma pop(somobject_constructors);
  116. #pragma pop(somobject_destructor);
  117. #pragma pop(case_insensitive_class_names);
  118. #endif /* M_WPDataFile_Source */
  119.  
  120.