home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnffp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  7.8 KB  |  190 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:12 GMT
  20.  * netscape/fonts/nffp public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnffp_H_
  25. #define _Mnffp_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nffp
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nffp interface. */
  38. struct nffpInterface;
  39.  
  40. /* The public type of a nffp instance. */
  41. typedef struct nffp {
  42.     const struct nffpInterface*    vtable;
  43. } nffp;
  44.  
  45. /* The inteface ID of the nffp interface. */
  46. #ifndef JMC_INIT_nffp_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nffp_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nffp_ID = { 0x1827292b, 0x1915644a, 0x282f2339, 0x77347420 };
  50. #endif /* JMC_INIT_nffp_ID */
  51. /*******************************************************************************
  52.  * nffp Operations
  53.  ******************************************************************************/
  54.  
  55. #define nffp_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nffp_getInterface_op, a, exception))
  57.  
  58. #define nffp_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nffp_addRef_op, exception))
  60.  
  61. #define nffp_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nffp_release_op, exception))
  63.  
  64. #define nffp_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nffp_hashCode_op, exception))
  66.  
  67. #define nffp_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nffp_equals_op, a, exception))
  69.  
  70. #define nffp_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nffp_clone_op, exception))
  72.  
  73. #define nffp_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nffp_toString_op, exception))
  75.  
  76. #define nffp_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nffp_finalize_op, exception))
  78.  
  79. #define nffp_LookupFont(self, a, b, c, exception)    \
  80.     (((self)->vtable->LookupFont)(self, nffp_LookupFont_op, a, b, c, exception))
  81.  
  82. #define nffp_CreateFontFromFile(self, a, b, c, d, exception)    \
  83.     (((self)->vtable->CreateFontFromFile)(self, nffp_CreateFontFromFile_op, a, b, c, d, exception))
  84.  
  85. #define nffp_CreateFontStreamHandler(self, a, b, exception)    \
  86.     (((self)->vtable->CreateFontStreamHandler)(self, nffp_CreateFontStreamHandler_op, a, b, exception))
  87.  
  88. #define nffp_EnumerateSizes(self, a, b, exception)    \
  89.     (((self)->vtable->EnumerateSizes)(self, nffp_EnumerateSizes_op, a, b, exception))
  90.  
  91. #define nffp_ReleaseFontHandle(self, a, exception)    \
  92.     (((self)->vtable->ReleaseFontHandle)(self, nffp_ReleaseFontHandle_op, a, exception))
  93.  
  94. #define nffp_GetMatchInfo(self, a, exception)    \
  95.     (((self)->vtable->GetMatchInfo)(self, nffp_GetMatchInfo_op, a, exception))
  96.  
  97. #define nffp_GetRenderableFont(self, a, b, c, exception)    \
  98.     (((self)->vtable->GetRenderableFont)(self, nffp_GetRenderableFont_op, a, b, c, exception))
  99.  
  100. #define nffp_Name(self, exception)    \
  101.     (((self)->vtable->Name)(self, nffp_Name_op, exception))
  102.  
  103. #define nffp_Description(self, exception)    \
  104.     (((self)->vtable->Description)(self, nffp_Description_op, exception))
  105.  
  106. #define nffp_EnumerateMimeTypes(self, exception)    \
  107.     (((self)->vtable->EnumerateMimeTypes)(self, nffp_EnumerateMimeTypes_op, exception))
  108.  
  109. #define nffp_ListFonts(self, a, b, exception)    \
  110.     (((self)->vtable->ListFonts)(self, nffp_ListFonts_op, a, b, exception))
  111.  
  112. #define nffp_ListSizes(self, a, b, exception)    \
  113.     (((self)->vtable->ListSizes)(self, nffp_ListSizes_op, a, b, exception))
  114.  
  115. #define nffp_CacheFontInfo(self, exception)    \
  116.     (((self)->vtable->CacheFontInfo)(self, nffp_CacheFontInfo_op, exception))
  117.  
  118. /*******************************************************************************
  119.  * nffp Interface
  120.  ******************************************************************************/
  121.  
  122. struct netscape_jmc_JMCInterfaceID;
  123. struct java_lang_Object;
  124. struct java_lang_String;
  125. struct netscape_fonts_nfrc;
  126. struct netscape_fonts_nffmi;
  127. struct netscape_jmc_ConstCString;
  128. struct netscape_fonts_nfstrm;
  129. struct netscape_fonts_nfrf;
  130.  
  131. struct nffpInterface {
  132.     void*    (*getInterface)(struct nffp* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  133.     void    (*addRef)(struct nffp* self, jint op, JMCException* *exception);
  134.     void    (*release)(struct nffp* self, jint op, JMCException* *exception);
  135.     jint    (*hashCode)(struct nffp* self, jint op, JMCException* *exception);
  136.     jbool    (*equals)(struct nffp* self, jint op, void* a, JMCException* *exception);
  137.     void*    (*clone)(struct nffp* self, jint op, JMCException* *exception);
  138.     const char*    (*toString)(struct nffp* self, jint op, JMCException* *exception);
  139.     void    (*finalize)(struct nffp* self, jint op, JMCException* *exception);
  140.     void*    (*LookupFont)(struct nffp* self, jint op, struct nfrc* a, struct nffmi* b, const char* c, JMCException* *exception);
  141.     void*    (*CreateFontFromFile)(struct nffp* self, jint op, struct nfrc* a, const char* b, const char* c, const char* d, JMCException* *exception);
  142.     struct nfstrm*    (*CreateFontStreamHandler)(struct nffp* self, jint op, struct nfrc* a, const char* b, JMCException* *exception);
  143.     void*    (*EnumerateSizes)(struct nffp* self, jint op, struct nfrc* a, void* b, JMCException* *exception);
  144.     jint    (*ReleaseFontHandle)(struct nffp* self, jint op, void* a, JMCException* *exception);
  145.     struct nffmi*    (*GetMatchInfo)(struct nffp* self, jint op, void* a, JMCException* *exception);
  146.     struct nfrf*    (*GetRenderableFont)(struct nffp* self, jint op, struct nfrc* a, void* b, jdouble c, JMCException* *exception);
  147.     const char*    (*Name)(struct nffp* self, jint op, JMCException* *exception);
  148.     const char*    (*Description)(struct nffp* self, jint op, JMCException* *exception);
  149.     const char*    (*EnumerateMimeTypes)(struct nffp* self, jint op, JMCException* *exception);
  150.     void*    (*ListFonts)(struct nffp* self, jint op, struct nfrc* a, struct nffmi* b, JMCException* *exception);
  151.     void*    (*ListSizes)(struct nffp* self, jint op, struct nfrc* a, struct nffmi* b, JMCException* *exception);
  152.     jint    (*CacheFontInfo)(struct nffp* self, jint op, JMCException* *exception);
  153. };
  154.  
  155. /*******************************************************************************
  156.  * nffp Operation IDs
  157.  ******************************************************************************/
  158.  
  159. typedef enum nffpOperations {
  160.     nffp_getInterface_op,
  161.     nffp_addRef_op,
  162.     nffp_release_op,
  163.     nffp_hashCode_op,
  164.     nffp_equals_op,
  165.     nffp_clone_op,
  166.     nffp_toString_op,
  167.     nffp_finalize_op,
  168.     nffp_LookupFont_op,
  169.     nffp_CreateFontFromFile_op,
  170.     nffp_CreateFontStreamHandler_op,
  171.     nffp_EnumerateSizes_op,
  172.     nffp_ReleaseFontHandle_op,
  173.     nffp_GetMatchInfo_op,
  174.     nffp_GetRenderableFont_op,
  175.     nffp_Name_op,
  176.     nffp_Description_op,
  177.     nffp_EnumerateMimeTypes_op,
  178.     nffp_ListFonts_op,
  179.     nffp_ListSizes_op,
  180.     nffp_CacheFontInfo_op
  181. } nffpOperations;
  182.  
  183. /******************************************************************************/
  184.  
  185. #ifdef __cplusplus
  186. } /* extern "C" */
  187. #endif /* __cplusplus */
  188.  
  189. #endif /* _Mnffp_H_ */
  190.