source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/inputscope.idl@ 1180

Last change on this file since 1180 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 5.0 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7import "oaidl.idl";
8import "ocidl.idl";
9
10cpp_quote("#include <winapifamily.h>")
11
12cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
13
14typedef enum {
15 IS_DEFAULT = 0,
16 IS_URL = 1,
17 IS_FILE_FULLFILEPATH = 2,
18 IS_FILE_FILENAME = 3,
19 IS_EMAIL_USERNAME = 4,
20 IS_EMAIL_SMTPEMAILADDRESS = 5,
21 IS_LOGINNAME = 6,
22 IS_PERSONALNAME_FULLNAME = 7,
23 IS_PERSONALNAME_PREFIX = 8,
24 IS_PERSONALNAME_GIVENNAME = 9,
25 IS_PERSONALNAME_MIDDLENAME = 10,
26 IS_PERSONALNAME_SURNAME = 11,
27 IS_PERSONALNAME_SUFFIX = 12,
28 IS_ADDRESS_FULLPOSTALADDRESS = 13,
29 IS_ADDRESS_POSTALCODE = 14,
30 IS_ADDRESS_STREET = 15,
31 IS_ADDRESS_STATEORPROVINCE = 16,
32 IS_ADDRESS_CITY = 17,
33 IS_ADDRESS_COUNTRYNAME = 18,
34 IS_ADDRESS_COUNTRYSHORTNAME = 19,
35 IS_CURRENCY_AMOUNTANDSYMBOL = 20,
36 IS_CURRENCY_AMOUNT = 21,
37 IS_DATE_FULLDATE = 22,
38 IS_DATE_MONTH = 23,
39 IS_DATE_DAY = 24,
40 IS_DATE_YEAR = 25,
41 IS_DATE_MONTHNAME = 26,
42 IS_DATE_DAYNAME = 27,
43 IS_DIGITS = 28,
44 IS_NUMBER = 29,
45 IS_ONECHAR = 30,
46 IS_PASSWORD = 31,
47 IS_TELEPHONE_FULLTELEPHONENUMBER = 32,
48 IS_TELEPHONE_COUNTRYCODE = 33,
49 IS_TELEPHONE_AREACODE = 34,
50 IS_TELEPHONE_LOCALNUMBER = 35,
51 IS_TIME_FULLTIME = 36,
52 IS_TIME_HOUR = 37,
53 IS_TIME_MINORSEC = 38,
54 IS_NUMBER_FULLWIDTH = 39,
55 IS_ALPHANUMERIC_HALFWIDTH = 40,
56 IS_ALPHANUMERIC_FULLWIDTH = 41,
57 IS_CURRENCY_CHINESE = 42,
58 IS_BOPOMOFO = 43,
59 IS_HIRAGANA = 44,
60 IS_KATAKANA_HALFWIDTH = 45,
61 IS_KATAKANA_FULLWIDTH = 46,
62 IS_HANJA = 47,
63 IS_HANGUL_HALFWIDTH = 48,
64 IS_HANGUL_FULLWIDTH = 49,
65 IS_SEARCH = 50,
66 IS_FORMULA = 51,
67 IS_SEARCH_INCREMENTAL = 52,
68 IS_CHINESE_HALFWIDTH = 53,
69 IS_CHINESE_FULLWIDTH = 54,
70 IS_NATIVE_SCRIPT = 55,
71 IS_YOMI = 56,
72 IS_TEXT = 57,
73 IS_CHAT = 58,
74 IS_NAME_OR_PHONENUMBER = 59,
75 IS_EMAILNAME_OR_ADDRESS = 60,
76 IS_PRIVATE = 61,
77 IS_MAPS = 62,
78 IS_NUMERIC_PASSWORD = 63,
79 IS_NUMERIC_PIN = 64,
80 IS_ALPHANUMERIC_PIN = 65,
81 IS_ALPHANUMERIC_PIN_SET = 66,
82 IS_FORMULA_NUMBER = 67,
83 IS_CHAT_WITHOUT_EMOJI = 68,
84
85 IS_PHRASELIST = -1,
86 IS_REGULAREXPRESSION = -2,
87 IS_SRGS = -3,
88 IS_XML = -4,
89 IS_ENUMSTRING = -5
90} InputScope;
91
92cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */")
93
94cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
95
96cpp_quote("HRESULT WINAPI SetInputScope(HWND hwnd,InputScope inputscope);")
97cpp_quote("HRESULT WINAPI SetInputScopes(HWND hwnd,const InputScope *pInputScopes,UINT cInputScopes,WCHAR **ppszPhraseList,UINT cPhrases,WCHAR *pszRegExp,WCHAR *pszSRGS);")
98cpp_quote("HRESULT WINAPI SetInputScopes2(HWND hwnd,const InputScope *pInputScopes,UINT cInputScopes,IEnumString *pEnumString,PWSTR pszRegExp,PWSTR pszSRGS);")
99cpp_quote("HRESULT WINAPI SetInputScopeXML(HWND hwnd,WCHAR *pszXML);")
100
101cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
102
103cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
104
105cpp_quote("DEFINE_GUID(GUID_PROP_INPUTSCOPE,0x1713dd5a,0x68e7,0x4a5b,0x9a,0xf6,0x59,0x2a,0x59,0x5c,0x77,0x8d);")
106
107[
108 object,
109 uuid(fde1eaee-6924-4cdf-91e7-da38cff5559d),
110 pointer_default(unique)
111]
112interface ITfInputScope : IUnknown
113{
114 HRESULT GetInputScopes([out, size_is(,*pcCount)] InputScope **pprgInputScopes, [out] UINT *pcCount);
115 HRESULT GetPhrase([out, size_is(,*pcCount)] BSTR **ppbstrPhrases, [out] UINT *pcCount);
116 HRESULT GetRegularExpression([out] BSTR *pbstrRegExp);
117 HRESULT GetSRGS([out] BSTR *pbstrSRGS);
118 HRESULT GetXML([out] BSTR *pbstrXML);
119}
120
121[
122 object,
123 uuid(5731eaa0-6bc2-4681-a532-92fbb74d7c41),
124 pointer_default(unique)
125]
126interface ITfInputScope2 : ITfInputScope
127{
128 HRESULT EnumWordList([out] IEnumString **ppEnumString);
129};
130
131cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */")
Note: See TracBrowser for help on using the repository browser.