home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / WPFNTPAL.IDL < prev    next >
Text File  |  1995-11-07  |  2KB  |  96 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.     wpSetup: override;
  61.     wpMenuItemHelpSelected: override;
  62.     somDefaultInit: override;             
  63.     somDestruct:    override;             
  64.  
  65.  
  66.   };
  67. #endif /* __SOMIDL__ */
  68. };
  69.  
  70. interface M_WPFontPalette : M_WPPalette
  71. {
  72.  
  73. #ifdef __SOMIDL__
  74.   implementation {
  75.  
  76.     externalstem = wpfon;
  77.     local;
  78.     externalprefix = fonM_;
  79.     majorversion = 1;
  80.     minorversion = 2;
  81.     filestem = wpfntpal;
  82.     callstyle = oidl;
  83.     dllname = "wpconfig.dll";
  84.  
  85.     wpclsQueryEditString: override;
  86.     wpclsQueryTitle: override;
  87.     wpclsQueryIconData: override;
  88.     wpclsQueryStyle: override;
  89.     wpclsQueryDefaultHelp: override;
  90.  
  91.   };
  92. #endif /* __SOMIDL__ */
  93. };
  94.  
  95. #endif  /* wpfntpal_idl */
  96.