Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.6 KiB

  1. /***************************************************************************
  2. * PANMAP.H - Base definitions for ElseWare PANOSE(tm) 1.0 Font Mapper.
  3. * OLE 2.0 Implementation
  4. *
  5. *
  6. * Copyright (C) 1991-94 ElseWare Corporation. All rights reserved.
  7. ***************************************************************************/
  8. #ifndef __PANOLE2_H__
  9. #define __PANOLE2_H__
  10. /* A Global Unique Identifier and an Interface ID for the PANOSE mapper.
  11. */
  12. DEFINE_GUID(CLSID_PANOSEMapper, 0xBD84B381L, 0x8CA2, 0x1069, 0xAB, 0x1D, 0x08,
  13. 0x00, 0x09, 0x48, 0xF5, 0x34);
  14. DEFINE_GUID(IID_IPANOSEMapper, 0xBD84B382L, 0x8CA2, 0x1069, 0xAB, 0x1D, 0x08,
  15. 0x00, 0x09, 0x48, 0xF5, 0x34);
  16. DECLARE_INTERFACE_( IPANOSEMapper, IUnknown)
  17. {
  18. /* IUnknown
  19. */
  20. STDMETHOD(QueryInterface) (THIS_
  21. REFIID riid,
  22. LPVOID FAR* ppvObj) PURE;
  23. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  24. STDMETHOD_(ULONG,Release) (THIS) PURE;
  25. /* The PANOSE Mapper interface.
  26. */
  27. STDMETHOD_(USHORT, unPANMatchFonts) ( THIS_
  28. LPBYTE lpPanWant,
  29. ULONG ulSizeWant, LPBYTE lpPanThis, ULONG ulSizeThis,
  30. BYTE jMapToFamily) PURE;
  31. STDMETHOD_(VOID, vPANMakeDummy)( THIS_
  32. LPBYTE lpPanThis, USHORT unSize ) PURE;
  33. STDMETHOD_(SHORT, nPANGetMapDefault)( THIS_
  34. LPBYTE lpPanDef,
  35. USHORT unSizePanDef ) PURE;
  36. STDMETHOD_(SHORT, nPANSetMapDefault) (THIS_
  37. LPBYTE lpPanDef,
  38. USHORT unSizePanDef ) PURE;
  39. STDMETHOD_(BOOL, bPANEnableMapDefault) (THIS_
  40. BOOL bEnable ) PURE;
  41. STDMETHOD_(BOOL, bPANIsDefaultEnabled) (THIS) PURE;
  42. STDMETHOD_(USHORT, unPANPickFonts) (THIS_
  43. USHORT FAR *lpIndsBest,
  44. USHORT FAR *lpMatchValues, LPBYTE lpPanWant,
  45. USHORT unNumInds, LPBYTE lpPanFirst, USHORT unNumAvail,
  46. SHORT nRecSize, BYTE jMapToFamily ) PURE ;
  47. STDMETHOD_(USHORT, unPANGetMapThreshold) (THIS) PURE;
  48. STDMETHOD_(BOOL, bPANSetMapThreshold) (THIS_
  49. USHORT unThreshold ) PURE;
  50. STDMETHOD_(BOOL, bPANIsThresholdRelaxed) (THIS) PURE;
  51. STDMETHOD_(VOID, vPANRelaxThreshold) (THIS) PURE;
  52. STDMETHOD_(BOOL, bPANRestoreThreshold) (THIS) PURE;
  53. STDMETHOD_(BOOL, bPANGetMapWeights) (THIS_
  54. BYTE jFamilyA,
  55. BYTE jFamilyB, LPBYTE lpjWts, LPBOOL lpbIsCustom ) PURE;
  56. STDMETHOD_(BOOL, bPANSetMapWeights) (THIS_
  57. BYTE jFamilyA,
  58. BYTE jFamilyB, LPBYTE lpjWts ) PURE;
  59. STDMETHOD_(BOOL, bPANClearMapWeights) (THIS_
  60. BYTE jFamilyA,
  61. BYTE jFamilyB ) PURE;
  62. };
  63. typedef IPANOSEMapper FAR * LPPANOSEMAPPER;
  64. #endif // __PANOLE2_H__