home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnffbc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  6.3 KB  |  157 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:13 GMT
  20.  * netscape/fonts/nffbc public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnffbc_H_
  25. #define _Mnffbc_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nffbc
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nffbc interface. */
  38. struct nffbcInterface;
  39.  
  40. /* The public type of a nffbc instance. */
  41. typedef struct nffbc {
  42.     const struct nffbcInterface*    vtable;
  43. } nffbc;
  44.  
  45. /* The inteface ID of the nffbc interface. */
  46. #ifndef JMC_INIT_nffbc_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nffbc_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nffbc_ID = { 0x073a4824, 0x11194410, 0x6b130d18, 0x6516741a };
  50. #endif /* JMC_INIT_nffbc_ID */
  51. /*******************************************************************************
  52.  * nffbc Operations
  53.  ******************************************************************************/
  54.  
  55. #define nffbc_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nffbc_getInterface_op, a, exception))
  57.  
  58. #define nffbc_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nffbc_addRef_op, exception))
  60.  
  61. #define nffbc_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nffbc_release_op, exception))
  63.  
  64. #define nffbc_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nffbc_hashCode_op, exception))
  66.  
  67. #define nffbc_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nffbc_equals_op, a, exception))
  69.  
  70. #define nffbc_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nffbc_clone_op, exception))
  72.  
  73. #define nffbc_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nffbc_toString_op, exception))
  75.  
  76. #define nffbc_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nffbc_finalize_op, exception))
  78.  
  79. #define nffbc_LookupFont(self, a, b, c, exception)    \
  80.     (((self)->vtable->LookupFont)(self, nffbc_LookupFont_op, a, b, c, exception))
  81.  
  82. #define nffbc_CreateFontFromUrl(self, a, b, c, d, e, f, exception)    \
  83.     (((self)->vtable->CreateFontFromUrl)(self, nffbc_CreateFontFromUrl_op, a, b, c, d, e, f, exception))
  84.  
  85. #define nffbc_CreateFontFromFile(self, a, b, c, d, exception)    \
  86.     (((self)->vtable->CreateFontFromFile)(self, nffbc_CreateFontFromFile_op, a, b, c, d, exception))
  87.  
  88. #define nffbc_ListFonts(self, a, b, exception)    \
  89.     (((self)->vtable->ListFonts)(self, nffbc_ListFonts_op, a, b, exception))
  90.  
  91. #define nffbc_ListSizes(self, a, b, exception)    \
  92.     (((self)->vtable->ListSizes)(self, nffbc_ListSizes_op, a, b, exception))
  93.  
  94. #define nffbc_GetBaseFont(self, a, exception)    \
  95.     (((self)->vtable->GetBaseFont)(self, nffbc_GetBaseFont_op, a, exception))
  96.  
  97. /*******************************************************************************
  98.  * nffbc Interface
  99.  ******************************************************************************/
  100.  
  101. struct netscape_jmc_JMCInterfaceID;
  102. struct java_lang_Object;
  103. struct java_lang_String;
  104. struct netscape_fonts_nfrc;
  105. struct netscape_fonts_nffmi;
  106. struct netscape_jmc_ConstCString;
  107. struct netscape_fonts_nff;
  108. struct netscape_fonts_nfdoer;
  109. struct netscape_fonts_MWCntxStar;
  110. struct netscape_fonts_nfrf;
  111.  
  112. struct nffbcInterface {
  113.     void*    (*getInterface)(struct nffbc* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  114.     void    (*addRef)(struct nffbc* self, jint op, JMCException* *exception);
  115.     void    (*release)(struct nffbc* self, jint op, JMCException* *exception);
  116.     jint    (*hashCode)(struct nffbc* self, jint op, JMCException* *exception);
  117.     jbool    (*equals)(struct nffbc* self, jint op, void* a, JMCException* *exception);
  118.     void*    (*clone)(struct nffbc* self, jint op, JMCException* *exception);
  119.     const char*    (*toString)(struct nffbc* self, jint op, JMCException* *exception);
  120.     void    (*finalize)(struct nffbc* self, jint op, JMCException* *exception);
  121.     struct nff*    (*LookupFont)(struct nffbc* self, jint op, struct nfrc* a, struct nffmi* b, const char* c, JMCException* *exception);
  122.     struct nff*    (*CreateFontFromUrl)(struct nffbc* self, jint op, struct nfrc* a, const char* b, const char* c, jint d, struct nfdoer* e, MWContext * f, JMCException* *exception);
  123.     struct nff*    (*CreateFontFromFile)(struct nffbc* self, jint op, struct nfrc* a, const char* b, const char* c, const char* d, JMCException* *exception);
  124.     void*    (*ListFonts)(struct nffbc* self, jint op, struct nfrc* a, struct nffmi* b, JMCException* *exception);
  125.     void*    (*ListSizes)(struct nffbc* self, jint op, struct nfrc* a, struct nffmi* b, JMCException* *exception);
  126.     struct nff*    (*GetBaseFont)(struct nffbc* self, jint op, struct nfrf* a, JMCException* *exception);
  127. };
  128.  
  129. /*******************************************************************************
  130.  * nffbc Operation IDs
  131.  ******************************************************************************/
  132.  
  133. typedef enum nffbcOperations {
  134.     nffbc_getInterface_op,
  135.     nffbc_addRef_op,
  136.     nffbc_release_op,
  137.     nffbc_hashCode_op,
  138.     nffbc_equals_op,
  139.     nffbc_clone_op,
  140.     nffbc_toString_op,
  141.     nffbc_finalize_op,
  142.     nffbc_LookupFont_op,
  143.     nffbc_CreateFontFromUrl_op,
  144.     nffbc_CreateFontFromFile_op,
  145.     nffbc_ListFonts_op,
  146.     nffbc_ListSizes_op,
  147.     nffbc_GetBaseFont_op
  148. } nffbcOperations;
  149.  
  150. /******************************************************************************/
  151.  
  152. #ifdef __cplusplus
  153. } /* extern "C" */
  154. #endif /* __cplusplus */
  155.  
  156. #endif /* _Mnffbc_H_ */
  157.