home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / idl / wpfntpal.idl < prev    next >
Text File  |  1999-03-15  |  2KB  |  98 lines

  1.  
  2. //  Module Header
  3. //
  4. //  Module Name: WPFNTPAL
  5. //
  6. //  OS/2 Presentation Manager Workplace class definitions
  7. //
  8. //  Copyright (c) International Business Machines Corporation 1991, 1992
  9. //
  10.  
  11. #ifndef wpfntpal_idl
  12. #define wpfntpal_idl
  13.  
  14. #include "wppalet.idl"
  15. #include <somcls.idl>
  16.  
  17. interface M_WPFontPalette;
  18.  
  19. interface WPFontPalette : WPPalette
  20.  
  21. {
  22.   void wpGetFattrsFromPsz(in PSZ pszFont,
  23.                           in PFATTRS pFattrs);
  24.  
  25. #ifdef __SOMIDL__
  26.   implementation {
  27.  
  28.     releaseorder: wpGetFattrsFromPsz;
  29.  
  30.     externalstem = wpfon;
  31.     local;
  32.     externalprefix = fon_;
  33.     majorversion = 1;
  34.     minorversion = 2;
  35.     filestem = wpfntpal;
  36.     metaclass = M_WPFontPalette;
  37.     callstyle = oidl;
  38.     dllname = "wpconfig.dll";
  39.  
  40.     passthru C_h_after =  ""
  41.  
  42. "   #define CCHFONTNAME   80"
  43. ""
  44. "      /* Fontpot structure */"
  45. ""
  46. "      typedef struct _FONTPOT"
  47. "      {"
  48. "         CELL        cell;     /* Size of the data that follows */"
  49. "         FATTRS      fAttrs;   /* fattrs from WinFontDlg/wpfattrsfrompsz */"
  50. "         CHAR        szFont[CCHFONTNAME+1];"
  51. "      } FONTPOT;"
  52. "      typedef FONTPOT *PFONTPOT;"
  53. "";
  54.  
  55.     wpPaintCell: override;
  56.     wpEditCell: override;
  57.     wpSetupCell: override;
  58.     wpDragCell: override;
  59.     wpQueryPaletteHelp: override;
  60.     wpSetupOnce: override;                                                      
  61.     wpSetup: override;
  62.     wpMenuItemHelpSelected: override;
  63.     somDefaultInit: override;             
  64.     somDestruct:    override;             
  65.     wpSelectCell: override;
  66.  
  67.  
  68.   };
  69. #endif /* __SOMIDL__ */
  70. };
  71.  
  72. interface M_WPFontPalette : M_WPPalette
  73. {
  74.  
  75. #ifdef __SOMIDL__
  76.   implementation {
  77.  
  78.     externalstem = wpfon;
  79.     local;
  80.     externalprefix = fonM_;
  81.     majorversion = 1;
  82.     minorversion = 2;
  83.     filestem = wpfntpal;
  84.     callstyle = oidl;
  85.     dllname = "wpconfig.dll";
  86.  
  87.     wpclsQueryEditString: override;
  88.     wpclsQueryTitle: override;
  89.     wpclsQueryIconData: override;
  90.     wpclsQueryStyle: override;
  91.     wpclsQueryDefaultHelp: override;
  92.  
  93.   };
  94. #endif /* __SOMIDL__ */
  95. };
  96.  
  97. #endif  /* wpfntpal_idl */
  98.