home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / producers / win / src / Pwinfp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.2 KB  |  74 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*
  19.  * Private implementation of the FontDisplayer.
  20.  */
  21.  
  22. #ifndef _Pwinfp_H_
  23. #define _Pwinfp_H_
  24.  
  25. #ifndef XP_WIN
  26. #define XP_WIN
  27. #endif
  28.  
  29. #include "Mnffmi.h"
  30. #include "Mnfrc.h"
  31. #include "Mnfdoer.h"
  32. #include "Mwinfp.h"            /* Generated header */
  33.  
  34. // structure to hold each font broker asked by lookupFont()
  35. typedef struct NetscapePrimeFont_s {
  36.     LOGFONT                        logFontInPrimeFont;
  37.     int                            csIDInPrimeFont;
  38.     int                            encordingInPrimeFont;
  39.     int                            YPixelPerInch;
  40.     struct NetscapePrimeFont_s    *nextFont;       // link for list.
  41. }    * pPrimeFont_t ;
  42.  
  43.  
  44. struct winfpImpl {
  45.   winfpImplHeader    header;
  46.  
  47.   /*************************************************************************
  48.    * FONTDISPLAYER Implementors:
  49.    *    Add your private data here. If you are implementing in C++,
  50.    *    then hang off a pointer to your actual object here.
  51.    *************************************************************************/
  52.  
  53.     struct nffbp    *m_pBrokerObj;
  54.  
  55.     /*** The following list need not be maintained at all. - dp
  56.     // header of font link list.
  57.     pPrimeFont_t    m_pPrimeFontList;
  58.     ***/
  59. };
  60.  
  61. /* The generated getInterface used the wrong object IDS. So we
  62.  * override them with ours.
  63.  */
  64. #define OVERRIDE_winfp_getInterface
  65.  
  66. /* The generated finalize doesn't have provision to free the
  67.  * private data that we create inside the object. So we
  68.  * override the finalize method and implement destruction
  69.  * of our private data.
  70.  */
  71. #define OVERRIDE_winfp_finalize
  72.  
  73. #endif /* _Pwinfp_H_ */
  74.