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

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