home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnffbp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.5 KB  |  143 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.  * Source date: 9 Apr 1997 21:45:11 GMT
  20.  * netscape/fonts/nffbp public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnffbp_H_
  25. #define _Mnffbp_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nffbp
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nffbp interface. */
  38. struct nffbpInterface;
  39.  
  40. /* The public type of a nffbp instance. */
  41. typedef struct nffbp {
  42.     const struct nffbpInterface*    vtable;
  43. } nffbp;
  44.  
  45. /* The inteface ID of the nffbp interface. */
  46. #ifndef JMC_INIT_nffbp_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nffbp_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nffbp_ID = { 0x20344d64, 0x37395725, 0x253b0b28, 0x673d761a };
  50. #endif /* JMC_INIT_nffbp_ID */
  51. /*******************************************************************************
  52.  * nffbp Operations
  53.  ******************************************************************************/
  54.  
  55. #define nffbp_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nffbp_getInterface_op, a, exception))
  57.  
  58. #define nffbp_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nffbp_addRef_op, exception))
  60.  
  61. #define nffbp_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nffbp_release_op, exception))
  63.  
  64. #define nffbp_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nffbp_hashCode_op, exception))
  66.  
  67. #define nffbp_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nffbp_equals_op, a, exception))
  69.  
  70. #define nffbp_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nffbp_clone_op, exception))
  72.  
  73. #define nffbp_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nffbp_toString_op, exception))
  75.  
  76. #define nffbp_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nffbp_finalize_op, exception))
  78.  
  79. #define nffbp_RegisterFontDisplayer(self, a, exception)    \
  80.     (((self)->vtable->RegisterFontDisplayer)(self, nffbp_RegisterFontDisplayer_op, a, exception))
  81.  
  82. #define nffbp_CreateFontDisplayerFromDLM(self, a, exception)    \
  83.     (((self)->vtable->CreateFontDisplayerFromDLM)(self, nffbp_CreateFontDisplayerFromDLM_op, a, exception))
  84.  
  85. #define nffbp_ScanForFontDisplayers(self, a, exception)    \
  86.     (((self)->vtable->ScanForFontDisplayers)(self, nffbp_ScanForFontDisplayers_op, a, exception))
  87.  
  88. #define nffbp_RfDone(self, a, exception)    \
  89.     (((self)->vtable->RfDone)(self, nffbp_RfDone_op, a, exception))
  90.  
  91. /*******************************************************************************
  92.  * nffbp Interface
  93.  ******************************************************************************/
  94.  
  95. struct netscape_jmc_JMCInterfaceID;
  96. struct java_lang_Object;
  97. struct java_lang_String;
  98. struct netscape_fonts_nffp;
  99. struct netscape_jmc_ConstCString;
  100. struct netscape_fonts_nfrf;
  101.  
  102. struct nffbpInterface {
  103.     void*    (*getInterface)(struct nffbp* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  104.     void    (*addRef)(struct nffbp* self, jint op, JMCException* *exception);
  105.     void    (*release)(struct nffbp* self, jint op, JMCException* *exception);
  106.     jint    (*hashCode)(struct nffbp* self, jint op, JMCException* *exception);
  107.     jbool    (*equals)(struct nffbp* self, jint op, void* a, JMCException* *exception);
  108.     void*    (*clone)(struct nffbp* self, jint op, JMCException* *exception);
  109.     const char*    (*toString)(struct nffbp* self, jint op, JMCException* *exception);
  110.     void    (*finalize)(struct nffbp* self, jint op, JMCException* *exception);
  111.     jint    (*RegisterFontDisplayer)(struct nffbp* self, jint op, struct nffp* a, JMCException* *exception);
  112.     jint    (*CreateFontDisplayerFromDLM)(struct nffbp* self, jint op, const char* a, JMCException* *exception);
  113.     jint    (*ScanForFontDisplayers)(struct nffbp* self, jint op, const char* a, JMCException* *exception);
  114.     void    (*RfDone)(struct nffbp* self, jint op, struct nfrf* a, JMCException* *exception);
  115. };
  116.  
  117. /*******************************************************************************
  118.  * nffbp Operation IDs
  119.  ******************************************************************************/
  120.  
  121. typedef enum nffbpOperations {
  122.     nffbp_getInterface_op,
  123.     nffbp_addRef_op,
  124.     nffbp_release_op,
  125.     nffbp_hashCode_op,
  126.     nffbp_equals_op,
  127.     nffbp_clone_op,
  128.     nffbp_toString_op,
  129.     nffbp_finalize_op,
  130.     nffbp_RegisterFontDisplayer_op,
  131.     nffbp_CreateFontDisplayerFromDLM_op,
  132.     nffbp_ScanForFontDisplayers_op,
  133.     nffbp_RfDone_op
  134. } nffbpOperations;
  135.  
  136. /******************************************************************************/
  137.  
  138. #ifdef __cplusplus
  139. } /* extern "C" */
  140. #endif /* __cplusplus */
  141.  
  142. #endif /* _Mnffbp_H_ */
  143.