mscoree: Report that all .NET versions are installed if Mono is missing.
[wine/multimedia.git] / include / usp10.h
blobd947e6ebcba4a20ceb7eff667574a04fa9fd8f49
1 /*
2 * Copyright (C) 2005 Steven Edwards
3 * Copyright (C) 2005 Vijay Kiran Kamuju
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __USP10_H
21 #define __USP10_H
23 #ifndef __WINESRC__
24 # include <windows.h>
25 #endif
26 /* FIXME: #include <specstrings.h> */
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
32 /** ScriptStringAnalyse */
33 #define SSA_PASSWORD 0x00000001
34 #define SSA_TAB 0x00000002
35 #define SSA_CLIP 0x00000004
36 #define SSA_FIT 0x00000008
37 #define SSA_DZWG 0x00000010
38 #define SSA_FALLBACK 0x00000020
39 #define SSA_BREAK 0x00000040
40 #define SSA_GLYPHS 0x00000080
41 #define SSA_RTL 0x00000100
42 #define SSA_GCP 0x00000200
43 #define SSA_HOTKEY 0x00000400
44 #define SSA_METAFILE 0x00000800
45 #define SSA_LINK 0x00001000
46 #define SSA_HIDEHOTKEY 0x00002000
47 #define SSA_HOTKEYONLY 0x00002400
48 #define SSA_FULLMEASURE 0x04000000
49 #define SSA_LPKANSIFALLBACK 0x08000000
50 #define SSA_PIDX 0x10000000
51 #define SSA_LAYOUTRTL 0x20000000
52 #define SSA_DONTGLYPH 0x40000000
53 #define SSA_NOKASHIDA 0x80000000
55 /** StringIsComplex */
56 #define SIC_COMPLEX 1
57 #define SIC_ASCIIDIGIT 2
58 #define SIC_NEUTRAL 4
60 /** ScriptGetCMap */
61 #define SGCM_RTL 0x00000001
63 /** ScriptApplyDigitSubstitution */
64 #define SCRIPT_DIGITSUBSTITUTE_CONTEXT 0
65 #define SCRIPT_DIGITSUBSTITUTE_NONE 1
66 #define SCRIPT_DIGITSUBSTITUTE_NATIONAL 2
67 #define SCRIPT_DIGITSUBSTITUTE_TRADITIONAL 3
69 #define SCRIPT_UNDEFINED 0
71 #define USP_E_SCRIPT_NOT_IN_FONT MAKE_HRESULT(SEVERITY_ERROR,FACILITY_ITF,0x200)
73 typedef enum tag_SCRIPT_JUSTIFY {
74 SCRIPT_JUSTIFY_NONE = 0,
75 SCRIPT_JUSTIFY_ARABIC_BLANK = 1,
76 SCRIPT_JUSTIFY_CHARACTER = 2,
77 SCRIPT_JUSTIFY_RESERVED1 = 3,
78 SCRIPT_JUSTIFY_BLANK = 4,
79 SCRIPT_JUSTIFY_RESERVED2 = 5,
80 SCRIPT_JUSTIFY_RESERVED3 = 6,
81 SCRIPT_JUSTIFY_ARABIC_NORMAL = 7,
82 SCRIPT_JUSTIFY_ARABIC_KASHIDA = 8,
83 SCRIPT_JUSTIFY_ARABIC_ALEF = 9,
84 SCRIPT_JUSTIFY_ARABIC_HA = 10,
85 SCRIPT_JUSTIFY_ARABIC_RA = 11,
86 SCRIPT_JUSTIFY_ARABIC_BA = 12,
87 SCRIPT_JUSTIFY_ARABIC_BARA = 13,
88 SCRIPT_JUSTIFY_ARABIC_SEEN = 14,
89 SCRIPT_JUSTIFY_RESERVED4 = 15,
90 } SCRIPT_JUSTIFY;
92 typedef struct tag_SCRIPT_CONTROL {
93 DWORD uDefaultLanguage :16;
94 DWORD fContextDigits :1;
95 DWORD fInvertPreBoundDir :1;
96 DWORD fInvertPostBoundDir :1;
97 DWORD fLinkStringBefore :1;
98 DWORD fLinkStringAfter :1;
99 DWORD fNeutralOverride :1;
100 DWORD fNumericOverride :1;
101 DWORD fLegacyBidiClass :1;
102 DWORD fMergeNeutralItems :1;
103 DWORD fReserved :7;
104 } SCRIPT_CONTROL;
106 typedef struct {
107 DWORD langid :16;
108 DWORD fNumeric :1;
109 DWORD fComplex :1;
110 DWORD fNeedsWordBreaking :1;
111 DWORD fNeedsCaretInfo :1;
112 DWORD bCharSet :8;
113 DWORD fControl :1;
114 DWORD fPrivateUseArea :1;
115 DWORD fNeedsCharacterJustify :1;
116 DWORD fInvalidGlyph :1;
117 DWORD fInvalidLogAttr :1;
118 DWORD fCDM :1;
119 DWORD fAmbiguousCharSet :1;
120 DWORD fClusterSizeVaries :1;
121 DWORD fRejectInvalid :1;
122 } SCRIPT_PROPERTIES;
124 typedef struct tag_SCRIPT_STATE {
125 WORD uBidiLevel :5;
126 WORD fOverrideDirection :1;
127 WORD fInhibitSymSwap :1;
128 WORD fCharShape :1;
129 WORD fDigitSubstitute :1;
130 WORD fInhibitLigate :1;
131 WORD fDisplayZWG :1;
132 WORD fArabicNumContext :1;
133 WORD fGcpClusters :1;
134 WORD fReserved :1;
135 WORD fEngineReserved :2;
136 } SCRIPT_STATE;
138 typedef struct tag_SCRIPT_ANALYSIS {
139 WORD eScript :10;
140 WORD fRTL :1;
141 WORD fLayoutRTL :1;
142 WORD fLinkBefore :1;
143 WORD fLinkAfter :1;
144 WORD fLogicalOrder :1;
145 WORD fNoGlyphIndex :1;
146 SCRIPT_STATE s;
147 } SCRIPT_ANALYSIS;
149 typedef struct tag_SCRIPT_ITEM {
150 int iCharPos;
151 SCRIPT_ANALYSIS a;
152 } SCRIPT_ITEM;
154 typedef struct tag_SCRIPT_DIGITSUBSTITUTE {
155 DWORD NationalDigitLanguage :16;
156 DWORD TraditionalDigitLanguage :16;
157 DWORD DigitSubstitute :8;
158 DWORD dwReserved;
159 } SCRIPT_DIGITSUBSTITUTE;
161 typedef struct tag_SCRIPT_FONTPROPERTIES {
162 int cBytes;
163 WORD wgBlank;
164 WORD wgDefault;
165 WORD wgInvalid;
166 WORD wgKashida;
167 int iKashidaWidth;
168 } SCRIPT_FONTPROPERTIES;
170 typedef struct tag_SCRIPT_TABDEF {
171 int cTabStops;
172 int iScale;
173 int *pTabStops;
174 int iTabOrigin;
175 } SCRIPT_TABDEF;
177 typedef struct tag_SCRIPT_VISATTR {
178 WORD uJustification :4;
179 WORD fClusterStart :1;
180 WORD fDiacritic :1;
181 WORD fZeroWidth :1;
182 WORD fReserved :1;
183 WORD fShapeReserved :8;
184 } SCRIPT_VISATTR;
186 typedef struct tag_SCRIPT_LOGATTR {
187 BYTE fSoftBreak :1;
188 BYTE fWhiteSpace :1;
189 BYTE fCharStop :1;
190 BYTE fWordStop :1;
191 BYTE fInvalid :1;
192 BYTE fReserved :3;
193 } SCRIPT_LOGATTR;
195 typedef void *SCRIPT_CACHE;
196 typedef void *SCRIPT_STRING_ANALYSIS;
198 #ifndef LSDEFS_DEFINED
199 typedef struct tagGOFFSET {
200 LONG du;
201 LONG dv;
202 } GOFFSET;
203 #endif
205 typedef ULONG OPENTYPE_TAG;
207 typedef struct tagOPENTYPE_FEATURE_RECORD
209 OPENTYPE_TAG tagFeature;
210 LONG lParameter;
211 } OPENTYPE_FEATURE_RECORD;
213 typedef struct tagTEXTRANGE_PROPERTIES
215 OPENTYPE_FEATURE_RECORD *potfRecords;
216 INT cotfRecords;
217 } TEXTRANGE_PROPERTIES;
219 /* Function Declarations */
221 HRESULT WINAPI ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE* psds,
222 SCRIPT_CONTROL* psc, SCRIPT_STATE* pss);
223 HRESULT WINAPI ScriptApplyLogicalWidth(const int *piDx, int cChars, int cGlyphs, const WORD *pwLogClust,
224 const SCRIPT_VISATTR *psva, const int *piAdvance,
225 const SCRIPT_ANALYSIS *psa, ABC *pABC, int *piJustify);
226 HRESULT WINAPI ScriptRecordDigitSubstitution(LCID Locale, SCRIPT_DIGITSUBSTITUTE *psds);
227 HRESULT WINAPI ScriptItemize(const WCHAR *pwcInChars, int cInChars, int cMaxItems,
228 const SCRIPT_CONTROL *psControl, const SCRIPT_STATE *psState,
229 SCRIPT_ITEM *pItems, int *pcItems);
230 HRESULT WINAPI ScriptGetCMap(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcInChars, int cChars,
231 DWORD dwFlags, WORD *pwOutGlyphs);
232 HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPROPERTIES *sfp);
233 HRESULT WINAPI ScriptGetGlyphABCWidth(HDC hdc, SCRIPT_CACHE *psc, WORD wGlyph, ABC *pABC);
234 HRESULT WINAPI ScriptGetLogicalWidths(const SCRIPT_ANALYSIS *psa, int cChars, int cGlyphs,
235 const int *piGlyphWidth, const WORD *pwLogClust,
236 const SCRIPT_VISATTR *psva, int *piDx);
237 HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts);
238 HRESULT WINAPI ScriptStringAnalyse(HDC hdc,
239 const void *pString,
240 int cString,
241 int cGlyphs,
242 int iCharset,
243 DWORD dwFlags,
244 int iReqWidth,
245 SCRIPT_CONTROL *psControl,
246 SCRIPT_STATE *psState,
247 const int *piDx,
248 SCRIPT_TABDEF *pTabdef,
249 const BYTE *pbInClass,
250 SCRIPT_STRING_ANALYSIS *pssa);
251 HRESULT WINAPI ScriptStringValidate(SCRIPT_STRING_ANALYSIS ssa);
252 HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa);
253 HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc);
254 HRESULT WINAPI ScriptIsComplex(const WCHAR* pwcInChars, int cInChars, DWORD dwFlags);
255 HRESULT WINAPI ScriptJustify(const SCRIPT_VISATTR *psva, const int *piAdvance, int cGlyphs,
256 int iDx, int iMinKashida, int *piJustify);
257 HRESULT WINAPI ScriptLayout(int cRuns, const BYTE *pbLevel, int *piVisualToLogical, int *piLogicalToVisual);
258 HRESULT WINAPI ScriptShape(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcChars, int cChars, int cMaxGlyphs,
259 SCRIPT_ANALYSIS *psa, WORD *pwOutGlyphs, WORD *pwLogClust, SCRIPT_VISATTR *psva, int *pcGlyphs);
260 HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs, int cGlyphs, const SCRIPT_VISATTR *psva,
261 SCRIPT_ANALYSIS *psa, int *piAdvance, GOFFSET *pGoffset, ABC *pABC );
262 HRESULT WINAPI ScriptBreak(const WCHAR *pwcChars, int cChars, const SCRIPT_ANALYSIS *psa, SCRIPT_LOGATTR *psla);
263 HRESULT WINAPI ScriptCacheGetHeight(HDC hdc, SCRIPT_CACHE *psc, LONG *tmHeight);
264 HRESULT WINAPI ScriptCPtoX(int iCP, BOOL fTrailing, int cChars, int cGlyphs, const WORD *pwLogClust, const SCRIPT_VISATTR *psva,
265 const int *piAdvance, const SCRIPT_ANALYSIS *psa, int *piX);
266 HRESULT WINAPI ScriptXtoCP(int iX, int cChars, int cGlyphs, const WORD *pwLogClust, const SCRIPT_VISATTR *psva,
267 const int *piAdvance, const SCRIPT_ANALYSIS *psa, int *piCP, int *piTrailing);
268 HRESULT WINAPI ScriptStringCPtoX(SCRIPT_STRING_ANALYSIS ssa, int icp, BOOL fTrailing, int *pX);
269 HRESULT WINAPI ScriptStringXtoCP(SCRIPT_STRING_ANALYSIS ssa, int iX, int *piCh , int *piTrailing);
270 HRESULT WINAPI ScriptStringGetLogicalWidths(SCRIPT_STRING_ANALYSIS ssa, int *piDx);
271 HRESULT WINAPI ScriptStringGetOrder(SCRIPT_STRING_ANALYSIS ssa, UINT *puOrder);
272 HRESULT WINAPI ScriptStringOut(SCRIPT_STRING_ANALYSIS ssa, int iX, int iY, UINT uOptions, const RECT *prc,
273 int iMinSel, int iMaxSel, BOOL fDisabled);
274 HRESULT WINAPI ScriptTextOut(const HDC hdc, SCRIPT_CACHE *psc, int x, int y, UINT fuOptions, const RECT *lprc,
275 const SCRIPT_ANALYSIS *psa, const WCHAR *pwcReserved, int iReserved, const WORD *pwGlyphs,
276 int cGlyphs, const int *piAdvance, const int *piJustify, const GOFFSET *pGoffset);
277 const int* WINAPI ScriptString_pcOutChars(SCRIPT_STRING_ANALYSIS ssa);
278 const SCRIPT_LOGATTR* WINAPI ScriptString_pLogAttr(SCRIPT_STRING_ANALYSIS ssa);
279 const SIZE* WINAPI ScriptString_pSize(SCRIPT_STRING_ANALYSIS ssa);
281 #ifdef __cplusplus
282 } /* extern "C" */
283 #endif
285 #endif /* __USP10_H */