home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnffbu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  11.5 KB  |  251 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: 16 Apr 1997 08:37:58 GMT
  20.  * netscape/fonts/nffbu public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnffbu_H_
  25. #define _Mnffbu_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nffbu
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nffbu interface. */
  38. struct nffbuInterface;
  39.  
  40. /* The public type of a nffbu instance. */
  41. typedef struct nffbu {
  42.     const struct nffbuInterface*    vtable;
  43. } nffbu;
  44.  
  45. /* The inteface ID of the nffbu interface. */
  46. #ifndef JMC_INIT_nffbu_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nffbu_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nffbu_ID = { 0x54743863, 0x7f213574, 0x1003351a, 0x07314250 };
  50. #endif /* JMC_INIT_nffbu_ID */
  51. /*******************************************************************************
  52.  * nffbu Operations
  53.  ******************************************************************************/
  54.  
  55. #define nffbu_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nffbu_getInterface_op, a, exception))
  57.  
  58. #define nffbu_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nffbu_addRef_op, exception))
  60.  
  61. #define nffbu_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nffbu_release_op, exception))
  63.  
  64. #define nffbu_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nffbu_hashCode_op, exception))
  66.  
  67. #define nffbu_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nffbu_equals_op, a, exception))
  69.  
  70. #define nffbu_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nffbu_clone_op, exception))
  72.  
  73. #define nffbu_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nffbu_toString_op, exception))
  75.  
  76. #define nffbu_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nffbu_finalize_op, exception))
  78.  
  79. #define nffbu_CreateFontMatchInfo(self, a, b, c, d, e, f, g, h, i, j, exception)    \
  80.     (((self)->vtable->CreateFontMatchInfo)(self, nffbu_CreateFontMatchInfo_op, a, b, c, d, e, f, g, h, i, j, exception))
  81.  
  82. #define nffbu_CreateRenderingContext(self, a, b, c, c_length, exception)    \
  83.     (((self)->vtable->CreateRenderingContext)(self, nffbu_CreateRenderingContext_op, a, b, c, c_length, exception))
  84.  
  85. #define nffbu_CreateFontObserver(self, a, b, exception)    \
  86.     (((self)->vtable->CreateFontObserver)(self, nffbu_CreateFontObserver_op, a, b, exception))
  87.  
  88. #define nffbu_malloc(self, a, exception)    \
  89.     (((self)->vtable->malloc)(self, nffbu_malloc_op, a, exception))
  90.  
  91. #define nffbu_free(self, a, exception)    \
  92.     (((self)->vtable->free)(self, nffbu_free_op, a, exception))
  93.  
  94. #define nffbu_realloc(self, a, b, exception)    \
  95.     (((self)->vtable->realloc)(self, nffbu_realloc_op, a, b, exception))
  96.  
  97. #define nffbu_IsWebfontsEnabled(self, exception)    \
  98.     (((self)->vtable->IsWebfontsEnabled)(self, nffbu_IsWebfontsEnabled_op, exception))
  99.  
  100. #define nffbu_EnableWebfonts(self, exception)    \
  101.     (((self)->vtable->EnableWebfonts)(self, nffbu_EnableWebfonts_op, exception))
  102.  
  103. #define nffbu_DisableWebfonts(self, exception)    \
  104.     (((self)->vtable->DisableWebfonts)(self, nffbu_DisableWebfonts_op, exception))
  105.  
  106. #define nffbu_ListFontDisplayers(self, exception)    \
  107.     (((self)->vtable->ListFontDisplayers)(self, nffbu_ListFontDisplayers_op, exception))
  108.  
  109. #define nffbu_IsFontDisplayerEnabled(self, a, exception)    \
  110.     (((self)->vtable->IsFontDisplayerEnabled)(self, nffbu_IsFontDisplayerEnabled_op, a, exception))
  111.  
  112. #define nffbu_ListFontDisplayersForMimetype(self, a, exception)    \
  113.     (((self)->vtable->ListFontDisplayersForMimetype)(self, nffbu_ListFontDisplayersForMimetype_op, a, exception))
  114.  
  115. #define nffbu_FontDisplayerForMimetype(self, a, exception)    \
  116.     (((self)->vtable->FontDisplayerForMimetype)(self, nffbu_FontDisplayerForMimetype_op, a, exception))
  117.  
  118. #define nffbu_EnableFontDisplayer(self, a, exception)    \
  119.     (((self)->vtable->EnableFontDisplayer)(self, nffbu_EnableFontDisplayer_op, a, exception))
  120.  
  121. #define nffbu_DisableFontDisplayer(self, a, exception)    \
  122.     (((self)->vtable->DisableFontDisplayer)(self, nffbu_DisableFontDisplayer_op, a, exception))
  123.  
  124. #define nffbu_EnableMimetype(self, a, b, exception)    \
  125.     (((self)->vtable->EnableMimetype)(self, nffbu_EnableMimetype_op, a, b, exception))
  126.  
  127. #define nffbu_DisableMimetype(self, a, b, exception)    \
  128.     (((self)->vtable->DisableMimetype)(self, nffbu_DisableMimetype_op, a, b, exception))
  129.  
  130. #define nffbu_LoadCatalog(self, a, exception)    \
  131.     (((self)->vtable->LoadCatalog)(self, nffbu_LoadCatalog_op, a, exception))
  132.  
  133. #define nffbu_SaveCatalog(self, a, exception)    \
  134.     (((self)->vtable->SaveCatalog)(self, nffbu_SaveCatalog_op, a, exception))
  135.  
  136. #define nffbu_LoadWebfont(self, a, b, c, exception)    \
  137.     (((self)->vtable->LoadWebfont)(self, nffbu_LoadWebfont_op, a, b, c, exception))
  138.  
  139. #define nffbu_ReleaseWebfonts(self, a, exception)    \
  140.     (((self)->vtable->ReleaseWebfonts)(self, nffbu_ReleaseWebfonts_op, a, exception))
  141.  
  142. #define nffbu_WebfontsNeedReload(self, a, exception)    \
  143.     (((self)->vtable->WebfontsNeedReload)(self, nffbu_WebfontsNeedReload_op, a, exception))
  144.  
  145. #define nffbu_LookupFailed(self, a, b, c, exception)    \
  146.     (((self)->vtable->LookupFailed)(self, nffbu_LookupFailed_op, a, b, c, exception))
  147.  
  148. #define nffbu_ToUnicode(self, a, b, b_length, c, c_length, exception)    \
  149.     (((self)->vtable->ToUnicode)(self, nffbu_ToUnicode_op, a, b, b_length, c, c_length, exception))
  150.  
  151. #define nffbu_UnicodeLen(self, a, b, b_length, exception)    \
  152.     (((self)->vtable->UnicodeLen)(self, nffbu_UnicodeLen_op, a, b, b_length, exception))
  153.  
  154. /*******************************************************************************
  155.  * nffbu Interface
  156.  ******************************************************************************/
  157.  
  158. struct netscape_jmc_JMCInterfaceID;
  159. struct java_lang_Object;
  160. struct java_lang_String;
  161. struct netscape_jmc_ConstCString;
  162. struct netscape_fonts_nffmi;
  163. struct netscape_fonts_nfrc;
  164. struct netscape_fonts_nfFontObserverCallback;
  165. struct netscape_fonts_nfdoer;
  166. struct netscape_fonts_MWContextStar;
  167.  
  168. struct nffbuInterface {
  169.     void*    (*getInterface)(struct nffbu* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  170.     void    (*addRef)(struct nffbu* self, jint op, JMCException* *exception);
  171.     void    (*release)(struct nffbu* self, jint op, JMCException* *exception);
  172.     jint    (*hashCode)(struct nffbu* self, jint op, JMCException* *exception);
  173.     jbool    (*equals)(struct nffbu* self, jint op, void* a, JMCException* *exception);
  174.     void*    (*clone)(struct nffbu* self, jint op, JMCException* *exception);
  175.     const char*    (*toString)(struct nffbu* self, jint op, JMCException* *exception);
  176.     void    (*finalize)(struct nffbu* self, jint op, JMCException* *exception);
  177.     struct nffmi*    (*CreateFontMatchInfo)(struct nffbu* self, jint op, const char* a, const char* b, const char* c, jint d, jint e, jint f, jint g, jint h, jint i, jint j, JMCException* *exception);
  178.     struct nfrc*    (*CreateRenderingContext)(struct nffbu* self, jint op, jint a, jint b, void** c, jsize c_length, JMCException* *exception);
  179.     struct nfdoer*    (*CreateFontObserver)(struct nffbu* self, jint op, nfFontObserverCallback a, void* b, JMCException* *exception);
  180.     void*    (*malloc)(struct nffbu* self, jint op, jint a, JMCException* *exception);
  181.     void    (*free)(struct nffbu* self, jint op, void* a, JMCException* *exception);
  182.     void*    (*realloc)(struct nffbu* self, jint op, void* a, jint b, JMCException* *exception);
  183.     jint    (*IsWebfontsEnabled)(struct nffbu* self, jint op, JMCException* *exception);
  184.     jint    (*EnableWebfonts)(struct nffbu* self, jint op, JMCException* *exception);
  185.     jint    (*DisableWebfonts)(struct nffbu* self, jint op, JMCException* *exception);
  186.     void*    (*ListFontDisplayers)(struct nffbu* self, jint op, JMCException* *exception);
  187.     jint    (*IsFontDisplayerEnabled)(struct nffbu* self, jint op, const char* a, JMCException* *exception);
  188.     void*    (*ListFontDisplayersForMimetype)(struct nffbu* self, jint op, const char* a, JMCException* *exception);
  189.     const char*    (*FontDisplayerForMimetype)(struct nffbu* self, jint op, const char* a, JMCException* *exception);
  190.     jint    (*EnableFontDisplayer)(struct nffbu* self, jint op, const char* a, JMCException* *exception);
  191.     jint    (*DisableFontDisplayer)(struct nffbu* self, jint op, const char* a, JMCException* *exception);
  192.     jint    (*EnableMimetype)(struct nffbu* self, jint op, const char* a, const char* b, JMCException* *exception);
  193.     jint    (*DisableMimetype)(struct nffbu* self, jint op, const char* a, const char* b, JMCException* *exception);
  194.     jint    (*LoadCatalog)(struct nffbu* self, jint op, const char* a, JMCException* *exception);
  195.     jint    (*SaveCatalog)(struct nffbu* self, jint op, const char* a, JMCException* *exception);
  196.     jint    (*LoadWebfont)(struct nffbu* self, jint op, MWContext * a, const char* b, jint c, JMCException* *exception);
  197.     jint    (*ReleaseWebfonts)(struct nffbu* self, jint op, MWContext * a, JMCException* *exception);
  198.     jint    (*WebfontsNeedReload)(struct nffbu* self, jint op, MWContext * a, JMCException* *exception);
  199.     jint    (*LookupFailed)(struct nffbu* self, jint op, MWContext * a, struct nfrc* b, struct nffmi* c, JMCException* *exception);
  200.     jint    (*ToUnicode)(struct nffbu* self, jint op, const char* a, jbyte* b, jsize b_length, jshort* c, jsize c_length, JMCException* *exception);
  201.     jint    (*UnicodeLen)(struct nffbu* self, jint op, const char* a, jbyte* b, jsize b_length, JMCException* *exception);
  202. };
  203.  
  204. /*******************************************************************************
  205.  * nffbu Operation IDs
  206.  ******************************************************************************/
  207.  
  208. typedef enum nffbuOperations {
  209.     nffbu_getInterface_op,
  210.     nffbu_addRef_op,
  211.     nffbu_release_op,
  212.     nffbu_hashCode_op,
  213.     nffbu_equals_op,
  214.     nffbu_clone_op,
  215.     nffbu_toString_op,
  216.     nffbu_finalize_op,
  217.     nffbu_CreateFontMatchInfo_op,
  218.     nffbu_CreateRenderingContext_op,
  219.     nffbu_CreateFontObserver_op,
  220.     nffbu_malloc_op,
  221.     nffbu_free_op,
  222.     nffbu_realloc_op,
  223.     nffbu_IsWebfontsEnabled_op,
  224.     nffbu_EnableWebfonts_op,
  225.     nffbu_DisableWebfonts_op,
  226.     nffbu_ListFontDisplayers_op,
  227.     nffbu_IsFontDisplayerEnabled_op,
  228.     nffbu_ListFontDisplayersForMimetype_op,
  229.     nffbu_FontDisplayerForMimetype_op,
  230.     nffbu_EnableFontDisplayer_op,
  231.     nffbu_DisableFontDisplayer_op,
  232.     nffbu_EnableMimetype_op,
  233.     nffbu_DisableMimetype_op,
  234.     nffbu_LoadCatalog_op,
  235.     nffbu_SaveCatalog_op,
  236.     nffbu_LoadWebfont_op,
  237.     nffbu_ReleaseWebfonts_op,
  238.     nffbu_WebfontsNeedReload_op,
  239.     nffbu_LookupFailed_op,
  240.     nffbu_ToUnicode_op,
  241.     nffbu_UnicodeLen_op
  242. } nffbuOperations;
  243.  
  244. /******************************************************************************/
  245.  
  246. #ifdef __cplusplus
  247. } /* extern "C" */
  248. #endif /* __cplusplus */
  249.  
  250. #endif /* _Mnffbu_H_ */
  251.