VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/textstor.idl@ 53206

Last change on this file since 53206 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.0 KB
Line 
1/*
2 * Copyright 2009 Aric Stewart, CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef DO_NO_IMPORTS
29import "oaidl.idl";
30#endif
31
32cpp_quote("#define TS_E_INVALIDPOS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0200)")
33cpp_quote("#define TS_E_NOLOCK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201)")
34cpp_quote("#define TS_E_NOOBJECT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0202)")
35cpp_quote("#define TS_E_NOSERVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0203)")
36cpp_quote("#define TS_E_NOINTERFACE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0204)")
37cpp_quote("#define TS_E_NOSELECTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0205)")
38cpp_quote("#define TS_E_NOLAYOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0206)")
39cpp_quote("#define TS_E_INVALIDPOINT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0207)")
40cpp_quote("#define TS_E_SYNCHRONOUS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0208)")
41cpp_quote("#define TS_E_READONLY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0209)")
42cpp_quote("#define TS_E_FORMAT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x020a)")
43
44cpp_quote("#define TS_S_ASYNC MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_ITF, 0x0300)")
45
46
47const ULONG TS_DEFAULT_SELECTION = ~0u;
48
49const DWORD TS_SD_READONLY = 0x001;
50const DWORD TS_SD_LOADING = 0x002;
51
52const DWORD TS_SS_DISJOINTSEL = 0x001;
53const DWORD TS_SS_REGIONS = 0x002;
54const DWORD TS_SS_TRANSITORY = 0x004;
55const DWORD TS_SS_NOHIDDENTEXT = 0x008;
56
57const DWORD TS_AS_TEXT_CHANGE = 0x01;
58const DWORD TS_AS_SEL_CHANGE = 0x02;
59const DWORD TS_AS_LAYOUT_CHANGE = 0x04;
60const DWORD TS_AS_ATTR_CHANGE = 0x08;
61const DWORD TS_AS_STATUS_CHANGE = 0x10;
62
63const DWORD TS_AS_ALL_SINKS = (TS_AS_TEXT_CHANGE | TS_AS_SEL_CHANGE | TS_AS_LAYOUT_CHANGE | TS_AS_ATTR_CHANGE | TS_AS_STATUS_CHANGE);
64
65const DWORD TS_LF_SYNC = 0x1;
66const DWORD TS_LF_READ = 0x2;
67const DWORD TS_LF_READWRITE = 0x6;
68
69const WCHAR TS_CHAR_EMBEDDED = 0xfffc;
70const WCHAR TS_CHAR_REGION = 0x0000;
71const WCHAR TS_CHAR_REPLACEMENT = 0xfffd;
72
73const DWORD TS_IAS_NOQUERY = 0x1;
74const DWORD TS_IAS_QUERYONLY = 0x2;
75
76const DWORD TS_ST_CORRECTION = 0x1;
77
78typedef [uuid(05fcf85b-5e9c-4c3e-ab71-29471d4f38e7)] enum { TS_AE_NONE, TS_AE_START, TS_AE_END } TsActiveSelEnd;
79typedef [uuid(033b0df0-f193-4170-b47b-141afc247878)] enum { TS_RT_PLAIN, TS_RT_HIDDEN, TS_RT_OPAQUE } TsRunType;
80typedef [uuid(ef3457d9-8446-49a7-a9e6-b50d9d5f3fd9)] GUID TS_ATTRID;
81
82typedef [uuid(fec4f516-c503-45b1-a5fd-7a3d8ab07049)] struct TS_STATUS
83{
84 DWORD dwDynamicFlags;
85 DWORD dwStaticFlags;
86} TS_STATUS;
87
88typedef [uuid(f3181bd6-bcf0-41d3-a81c-474b17ec38fb)] struct TS_TEXTCHANGE
89{
90 LONG acpStart;
91 LONG acpOldEnd;
92 LONG acpNewEnd;
93} TS_TEXTCHANGE;
94
95typedef [uuid(7ecc3ffa-8f73-4d91-98ed-76f8ac5b1600)] struct TS_SELECTIONSTYLE
96{
97 TsActiveSelEnd ase;
98 BOOL fInterimChar;
99} TS_SELECTIONSTYLE;
100
101typedef [uuid(c4b9c33b-8a0d-4426-bebe-d444a4701fe9)] struct TS_SELECTION_ACP
102{
103 LONG acpStart;
104 LONG acpEnd;
105 TS_SELECTIONSTYLE style;
106} TS_SELECTION_ACP;
107
108typedef [uuid(a6231949-37c5-4b74-a24e-2a26c327201d)] struct TS_RUNINFO
109{
110 ULONG uCount;
111 TsRunType type;
112} TS_RUNINFO;
113
114typedef [uuid(2cc2b33f-1174-4507-b8d9-5bc0eb37c197)] struct TS_ATTRVAL
115{
116 TS_ATTRID idAttr;
117 DWORD dwOverlapId;
118 VARIANT varValue;
119} TS_ATTRVAL;
120
121const DWORD TS_ATTR_FIND_BACKWARDS = 0x0001;
122const DWORD TS_ATTR_FIND_WANT_OFFSET = 0x0002;
123const DWORD TS_ATTR_FIND_UPDATESTART = 0x0004;
124const DWORD TS_ATTR_FIND_WANT_VALUE = 0x0008;
125const DWORD TS_ATTR_FIND_WANT_END = 0x0010;
126const DWORD TS_ATTR_FIND_HIDDEN = 0x0020;
127
128typedef [uuid(7899d7c4-5f07-493c-a89a-fac8e777f476)] enum { TS_LC_CREATE, TS_LC_CHANGE, TS_LC_DESTROY } TsLayoutCode;
129typedef [uuid(1faf509e-44c1-458e-950a-38a96705a62b)] DWORD TsViewCookie;
130
131[
132 object,
133 uuid(22d44c94-a419-4542-a272-ae26093ececf),
134 pointer_default(unique)
135]
136interface ITextStoreACPSink : IUnknown
137{
138 HRESULT OnTextChange(
139 [in] DWORD dwFlags,
140 [in] const TS_TEXTCHANGE *pChange);
141
142 HRESULT OnSelectionChange();
143
144 HRESULT OnLayoutChange(
145 [in] TsLayoutCode lcode,
146 [in] TsViewCookie vcView);
147
148 HRESULT OnStatusChange(
149 [in] DWORD dwFlags);
150
151 HRESULT OnAttrsChange(
152 [in] LONG acpStart,
153 [in] LONG acpEnd,
154 [in] ULONG cAttrs,
155 [in, size_is(cAttrs)] const TS_ATTRID *paAttrs);
156
157 HRESULT OnLockGranted(
158 [in] DWORD dwLockFlags);
159
160 HRESULT OnStartEditTransaction();
161
162 HRESULT OnEndEditTransaction();
163};
164
165[
166 object,
167 uuid(28888fe3-c2a0-483a-a3ea-8cb1ce51ff3d),
168 pointer_default(unique)
169]
170interface ITextStoreACP : IUnknown
171{
172 HRESULT AdviseSink(
173 [in] REFIID riid,
174 [in, iid_is(riid)] IUnknown *punk,
175 [in] DWORD dwMask);
176
177 HRESULT UnadviseSink(
178 [in] IUnknown *punk);
179
180 HRESULT RequestLock(
181 [in] DWORD dwLockFlags,
182 [out] HRESULT *phrSession);
183
184 HRESULT GetStatus(
185 [out] TS_STATUS *pdcs);
186
187 HRESULT QueryInsert(
188 [in] LONG acpTestStart,
189 [in] LONG acpTestEnd,
190 [in] ULONG cch,
191 [out] LONG *pacpResultStart,
192 [out] LONG *pacpResultEnd);
193
194 HRESULT GetSelection(
195 [in] ULONG ulIndex,
196 [in] ULONG ulCount,
197 [out, size_is(ulCount), length_is(*pcFetched)] TS_SELECTION_ACP *pSelection,
198 [out] ULONG *pcFetched);
199
200 HRESULT SetSelection(
201 [in] ULONG ulCount,
202 [in, size_is(ulCount)] const TS_SELECTION_ACP *pSelection);
203
204 HRESULT GetText(
205 [in] LONG acpStart,
206 [in] LONG acpEnd,
207 [out, size_is(cchPlainReq), length_is(*pcchPlainRet)] WCHAR *pchPlain,
208 [in] ULONG cchPlainReq,
209 [out] ULONG *pcchPlainRet,
210 [out, size_is(cRunInfoReq), length_is(*pcRunInfoRet)] TS_RUNINFO *prgRunInfo,
211 [in] ULONG cRunInfoReq,
212 [out] ULONG *pcRunInfoRet,
213 [out] LONG *pacpNext);
214
215 HRESULT SetText(
216 [in] DWORD dwFlags,
217 [in] LONG acpStart,
218 [in] LONG acpEnd,
219 [in, size_is(cch)] const WCHAR *pchText,
220 [in] ULONG cch,
221 [out] TS_TEXTCHANGE *pChange);
222
223 HRESULT GetFormattedText(
224 [in] LONG acpStart,
225 [in] LONG acpEnd,
226 [out] IDataObject **ppDataObject);
227
228 HRESULT GetEmbedded(
229 [in] LONG acpPos,
230 [in] REFGUID rguidService,
231 [in] REFIID riid,
232 [out, iid_is(riid)] IUnknown **ppunk);
233
234 HRESULT QueryInsertEmbedded(
235 [in] const GUID *pguidService,
236 [in] const FORMATETC *pFormatEtc,
237 [out] BOOL *pfInsertable);
238
239 HRESULT InsertEmbedded(
240 [in] DWORD dwFlags,
241 [in] LONG acpStart,
242 [in] LONG acpEnd,
243 [in] IDataObject *pDataObject,
244 [out] TS_TEXTCHANGE *pChange);
245
246
247 HRESULT InsertTextAtSelection(
248 [in] DWORD dwFlags,
249 [in, size_is(cch)] const WCHAR *pchText,
250 [in] ULONG cch,
251 [out] LONG *pacpStart,
252 [out] LONG *pacpEnd,
253 [out] TS_TEXTCHANGE *pChange);
254
255 HRESULT InsertEmbeddedAtSelection(
256 [in] DWORD dwFlags,
257 [in] IDataObject *pDataObject,
258 [out] LONG *pacpStart,
259 [out] LONG *pacpEnd,
260 [out] TS_TEXTCHANGE *pChange);
261
262 HRESULT RequestSupportedAttrs(
263 [in] DWORD dwFlags,
264 [in] ULONG cFilterAttrs,
265 [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs);
266
267 HRESULT RequestAttrsAtPosition(
268 [in] LONG acpPos,
269 [in] ULONG cFilterAttrs,
270 [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
271 [in] DWORD dwFlags);
272
273 HRESULT RequestAttrsTransitioningAtPosition(
274 [in] LONG acpPos,
275 [in] ULONG cFilterAttrs,
276 [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
277 [in] DWORD dwFlags);
278
279 HRESULT FindNextAttrTransition(
280 [in] LONG acpStart,
281 [in] LONG acpHalt,
282 [in] ULONG cFilterAttrs,
283 [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
284 [in] DWORD dwFlags,
285 [out] LONG *pacpNext,
286 [out] BOOL *pfFound,
287 [out] LONG *plFoundOffset);
288
289 HRESULT RetrieveRequestedAttrs(
290 [in] ULONG ulCount,
291 [out, size_is(ulCount), length_is(*pcFetched)] TS_ATTRVAL *paAttrVals,
292 [out] ULONG *pcFetched);
293
294 HRESULT GetEndACP(
295 [out] LONG *pacp);
296
297 HRESULT GetActiveView(
298 [out] TsViewCookie *pvcView);
299
300 HRESULT GetACPFromPoint(
301 [in] TsViewCookie vcView,
302 [in] const POINT *ptScreen,
303 [in] DWORD dwFlags,
304 [out] LONG *pacp);
305
306 HRESULT GetTextExt(
307 [in] TsViewCookie vcView,
308 [in] LONG acpStart,
309 [in] LONG acpEnd,
310 [out] RECT *prc,
311 [out] BOOL *pfClipped);
312
313 HRESULT GetScreenExt(
314 [in] TsViewCookie vcView,
315 [out] RECT *prc);
316
317 HRESULT GetWnd(
318 [in] TsViewCookie vcView,
319 [out] HWND *phwnd);
320};
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette