ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

t2embapi.h
Go to the documentation of this file.
00001 #ifndef __T2EMBED_API_H
00002 #define __T2EMBED_API_H
00003 
00004 #ifndef CHARSET_UNICODE
00005 #define CHARSET_UNICODE    1
00006 #define CHARSET_DEFAULT    1
00007 #define CHARSET_SYMBOL     2
00008 #define CHARSET_GLYPHIDX   3
00009 #endif
00010 
00011 #ifndef EMBED_PREVIEWPRINT
00012 #define EMBED_PREVIEWPRINT 1
00013 #define EMBED_EDITABLE     2
00014 #define EMBED_INSTALLABLE  3
00015 #define EMBED_NOEMBEDDING  4
00016 #endif
00017 
00018 #ifndef LICENSE_INSTALLABLE
00019 #define LICENSE_INSTALLABLE   0x0
00020 #define LICENSE_DEFAULT       0x0
00021 #define LICENSE_NOEMBEDDING   0x2
00022 #define LICENSE_PREVIEWPRINT  0x4
00023 #define LICENSE_EDITABLE      0x8
00024 #endif
00025 
00026 #ifndef TTEMBED_RAW
00027 #define TTEMBED_RAW                       0x0
00028 #define TTEMBED_SUBSET                    0x1
00029 #define TTEMBED_TTCOMPRESSED              0x4
00030 #define TTEMBED_FAILIFVARIATIONSIMULATED  0x10
00031 #define TTEMBED_EMBEDEUDC                 0x20
00032 #define TTEMBED_VALIDATIONTESTS           0x40
00033 #define TTEMBED_WEBOBJECT                 0x80
00034 #define TTEMBED_ENCRYPTDATA               0x10000000
00035 #endif
00036 
00037 #ifndef E_NONE
00038 #define E_NONE 0x0
00039 #endif
00040 
00041 #ifndef E_CHARCODECOUNTINVALID
00042 #define E_CHARCODECOUNTINVALID     0x2
00043 #define E_CHARCODESETINVALID       0x3
00044 #define E_DEVICETRUETYPEFONT       0x4
00045 #define E_HDCINVALID               0x6
00046 #define E_NOFREEMEMORY             0x7
00047 #define E_FONTREFERENCEINVALID     0x8
00048 #define E_NOTATRUETYPEFONT         0xA
00049 #define E_ERRORACCESSINGFONTDATA   0xC
00050 #define E_ERRORACCESSINGFACENAME   0xD
00051 #define E_ERRORUNICODECONVERSION   0x11
00052 #define E_ERRORCONVERTINGCHARS     0x12
00053 #define E_EXCEPTION                0x13
00054 #define E_RESERVEDPARAMNOTNULL     0x14
00055 #define E_CHARSETINVALID           0x15
00056 #define E_WIN32S_NOTSUPPORTED      0x16
00057 #define E_FILE_NOT_FOUND           0x17
00058 #define E_TTC_INDEX_OUT_OF_RANGE   0x18
00059 #define E_INPUTPARAMINVALID        0x19
00060 #endif
00061 
00062 #ifndef E_ERRORCOMPRESSINGFONTDATA
00063 #define E_ERRORCOMPRESSINGFONTDATA    0x100
00064 #define E_FONTDATAINVALID             0x102
00065 #define E_NAMECHANGEFAILED            0x103
00066 #define E_FONTNOTEMBEDDABLE           0x104
00067 #define E_PRIVSINVALID                0x105
00068 #define E_SUBSETTINGFAILED            0x106
00069 #define E_READFROMSTREAMFAILED        0x107
00070 #define E_SAVETOSTREAMFAILED          0x108
00071 #define E_NOOS2                       0x109
00072 #define E_T2NOFREEMEMORY              0x10A
00073 #define E_ERRORREADINGFONTDATA        0x10B
00074 #define E_FLAGSINVALID                0x10C
00075 #define E_ERRORCREATINGFONTFILE       0x10D
00076 #define E_FONTALREADYEXISTS           0x10E
00077 #define E_FONTNAMEALREADYEXISTS       0x10F
00078 #define E_FONTINSTALLFAILED           0x110
00079 #define E_ERRORDECOMPRESSINGFONTDATA  0x111
00080 #define E_ERRORACCESSINGEXCLUDELIST   0x112
00081 #define E_FACENAMEINVALID             0x113
00082 #define E_STREAMINVALID               0x114
00083 #define E_STATUSINVALID               0x115
00084 #define E_PRIVSTATUSINVALID           0x116
00085 #define E_PERMISSIONSINVALID          0x117
00086 #define E_PBENABLEDINVALID            0x118
00087 #define E_SUBSETTINGEXCEPTION         0x119
00088 #define E_SUBSTRING_TEST_FAIL         0x11A
00089 #define E_FONTVARIATIONSIMULATED      0x11B
00090 #define E_FONTVALIDATEFAIL            0x11C
00091 #define E_FONTFAMILYNAMENOTINFULL     0x11D
00092 #endif
00093 
00094 #ifndef E_ADDFONTFAILED
00095 #define E_ADDFONTFAILED             0x200
00096 #define E_COULDNTCREATETEMPFILE     0x201
00097 #define E_FONTFILECREATEFAILED      0x203
00098 #define E_WINDOWSAPI                0x204
00099 #define E_FONTFILENOTFOUND          0x205
00100 #define E_RESOURCEFILECREATEFAILED  0x206
00101 #define E_ERROREXPANDINGFONTDATA    0x207
00102 #define E_ERRORGETTINGDC            0x208
00103 #define E_EXCEPTIONINDECOMPRESSION  0x209
00104 #define E_EXCEPTIONINCOMPRESSION    0x20A
00105 #endif
00106 
00107 #ifdef __cplusplus
00108 extern "C" {
00109 #endif
00110 
00111 typedef unsigned long(WINAPIV *WRITEEMBEDPROC)
00112 (
00113     void* lpvWriteStream,
00114     const void* lpvBuffer, 
00115     const unsigned long cbBuffer
00116 );
00117 
00118 typedef unsigned long(WINAPIV *READEMBEDPROC)
00119 (
00120     void* lpvReadStream,
00121     void* lpvBuffer,
00122     const unsigned long cbBuffer
00123 );
00124 
00125 
00126 typedef struct
00127 { 
00128     unsigned long ulStructSize;
00129     long lTestFromSize;
00130     long lTestToSize;
00131     unsigned long ulCharSet;
00132     unsigned short usReserved1;
00133     unsigned short usCharCodeCount;
00134     unsigned short* pusCharCodeSet;
00135 } TTVALIDATIONTESTPARAMS;
00136 
00137 typedef struct
00138 { 
00139     unsigned long ulStructSize;
00140     long lTestFromSize;
00141     long lTestToSize;
00142     unsigned long ulCharSet;
00143     unsigned short usReserved1;
00144     unsigned short usCharCodeCount;
00145     unsigned long* pulCharCodeSet;
00146 } TTVALIDATIONTESTPARAMSEX;
00147 
00148 typedef struct
00149 { 
00150     unsigned short usStructSize;
00151     unsigned short usRootStrSize;
00152     unsigned short *pusRootStr;
00153 } TTEMBEDINFO;
00154 
00155 typedef struct
00156 { 
00157     unsigned short usStructSize;
00158     unsigned short usRefStrSize;
00159     unsigned short *pusRefStr;
00160 } TTLOADINFO;
00161 
00162 LONG
00163 WINAPI
00164 TTCharToUnicode(HDC hDC,
00165                 UCHAR* pucCharCodes,
00166                 ULONG ulCharCodeSize,
00167                 USHORT* pusShortCodes,
00168                 ULONG ulShortCodeSize,
00169                 ULONG ulFlags);
00170 
00171 LONG
00172 WINAPI
00173 TTDeleteEmbeddedFont(HANDLE hFontReference,
00174                      ULONG ulFlags,
00175                      ULONG* pulStatus);
00176 
00177 LONG
00178 WINAPI
00179 TTEmbedFont(HDC hDC,
00180             ULONG ulFlags,
00181             ULONG ulCharSet,
00182             ULONG* pulPrivStatus,
00183             ULONG* pulStatus,
00184             WRITEEMBEDPROC lpfnWriteToStream,
00185             LPVOID lpvWriteStream,
00186             USHORT* pusCharCodeSet,
00187             USHORT usCharCodeCount,
00188             USHORT usLanguage,
00189             TTEMBEDINFO* pTTEmbedInfo);
00190 
00191 LONG
00192 WINAPI
00193 TTEmbedFontFromFileA(HDC hDC,
00194                      LPCSTR szFontFileName,
00195                      USHORT usTTCIndex,
00196                      ULONG ulFlags,
00197                      ULONG ulCharSet,
00198                      ULONG* pulPrivStatus,
00199                      ULONG* pulStatus,
00200                      WRITEEMBEDPROC lpfnWriteToStream,
00201                      LPVOID lpvWriteStream,
00202                      USHORT* pusCharCodeSet,
00203                      USHORT usCharCodeCount,
00204                      USHORT usLanguage,
00205                      TTEMBEDINFO* pTTEmbedInfo);
00206 
00207 LONG
00208 WINAPI
00209 TTEnableEmbeddingForFacename(LPSTR lpszFacename,
00210                              BOOL bEnable);
00211 
00212 LONG
00213 WINAPI
00214 TTGetEmbeddedFontInfo(ULONG ulFlags,
00215                       ULONG* pulPrivStatus,
00216                       ULONG ulPrivs,
00217                       ULONG* pulStatus,
00218                       READEMBEDPROC lpfnReadFromStream,
00219                       LPVOID lpvReadStream,
00220                       TTLOADINFO* pTTLoadInfo);
00221 
00222 LONG
00223 WINAPI
00224 TTGetEmbeddingType(HDC hDC,
00225                    ULONG* pulPrivStatus);
00226 
00227 LONG
00228 WINAPI
00229 TTIsEmbeddingEnabled(HDC hDC,
00230                      BOOL* pbEnabled);
00231 
00232 LONG
00233 WINAPI
00234 TTIsEmbeddingEnabledForFacename(LPSTR lpszFacename,
00235                                 BOOL* pbEnabled);
00236 
00237 LONG
00238 WINAPI
00239 TTLoadEmbeddedFont(HANDLE *phFontReference,
00240                    ULONG ulFlags,
00241                    ULONG* pulPrivStatus,
00242                    ULONG ulPrivs,
00243                    ULONG* pulStatus,
00244                    READEMBEDPROC lpfnReadFromStream,
00245                    LPVOID lpvReadStream,
00246                    LPWSTR szWinFamilyName,
00247                    LPSTR szMacFamilyName,
00248                    TTLOADINFO* pTTLoadInfo);
00249 
00250 LONG
00251 WINAPI
00252 TTRunValidationTests(HDC hDC,
00253                      TTVALIDATIONTESTPARAMS* pTestParam);
00254 
00255 LONG
00256 WINAPI
00257 TTEmbedFontEx(HDC hDC,
00258               ULONG ulFlags,
00259               ULONG ulCharSet,
00260               ULONG* pulPrivStatus,
00261               ULONG* pulStatus,
00262               WRITEEMBEDPROC lpfnWriteToStream,
00263               LPVOID lpvWriteStream,
00264               ULONG* pulCharCodeSet,
00265               USHORT usCharCodeCount,
00266               USHORT usLanguage,
00267               TTEMBEDINFO* pTTEmbedInfo);
00268 
00269 LONG
00270 WINAPI
00271 TTRunValidationTestsEx(HDC hDC,
00272                        TTVALIDATIONTESTPARAMSEX* pTestParam);
00273 
00274 LONG
00275 WINAPI
00276 TTGetNewFontName(HANDLE* phFontReference,
00277                  LPWSTR szWinFamilyName,
00278                  long cchMaxWinName,
00279                  LPSTR szMacFamilyName,
00280                  long cchMaxMacName);
00281 
00282 #ifdef __cplusplus
00283     }
00284 #endif
00285 
00286 #endif /* __T2EMBED_API_H */

Generated on Sat May 26 2012 04:31:13 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.