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

  1. /* -*- Mode: C; tab-width: 8; 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.  *
  20.  * Implements a link between the (cfb) CFontBroker Interface implementation
  21.  * and its C++ implementation viz (fb) FontBrokerObject.
  22.  *
  23.  * dp Suresh <dp@netscape.com>
  24.  */
  25.  
  26.  
  27. #ifndef _Pcfb_H_
  28. #define _Pcfb_H_
  29.  
  30. #include "libfont.h"
  31. #include "nf.h"                /* For nfFontObserverCallback. This has to be
  32.                              * included before Mcfb.h
  33.                              */
  34.  
  35. #include "Mnffmi.h"
  36. #include "Mnfrc.h"
  37. #include "Mnfdoer.h"
  38. #include "Mnfrf.h"
  39. #include "Mnffbc.h"
  40. #include "Mcfb.h"            /* Generated header */
  41.  
  42.  
  43. struct cfbImpl {
  44.   cfbImplHeader    header;
  45.   void *object;                /* FontBrokerObject * */
  46. };
  47.  
  48. /* The generated getInterface used the wrong object IDS. So we
  49.  * override them with ours.
  50.  */
  51. #define OVERRIDE_cfb_getInterface
  52.  
  53. /* The generated finalize doesn't have provision to free the
  54.  * private data that we create inside the object. So we
  55.  * override the finalize method and implement destruction
  56.  * of our private data.
  57.  */
  58. #define OVERRIDE_cfb_finalize
  59. #endif /* _Pcfb_H_ */
  60.