ReactOS  0.4.14-dev-317-g96040ec
textstor.idl
Go to the documentation of this file.
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 #ifndef DO_NO_IMPORTS
20 import "oaidl.idl";
21 #endif
22 
23 cpp_quote("#define TS_E_INVALIDPOS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0200)")
24 cpp_quote("#define TS_E_NOLOCK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201)")
25 cpp_quote("#define TS_E_NOOBJECT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0202)")
26 cpp_quote("#define TS_E_NOSERVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0203)")
27 cpp_quote("#define TS_E_NOINTERFACE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0204)")
28 cpp_quote("#define TS_E_NOSELECTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0205)")
29 cpp_quote("#define TS_E_NOLAYOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0206)")
30 cpp_quote("#define TS_E_INVALIDPOINT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0207)")
31 cpp_quote("#define TS_E_SYNCHRONOUS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0208)")
32 cpp_quote("#define TS_E_READONLY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0209)")
33 cpp_quote("#define TS_E_FORMAT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x020a)")
34 
35 cpp_quote("#define TS_S_ASYNC MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_ITF, 0x0300)")
36 
37 
39 
40 const DWORD TS_SD_READONLY = 0x001;
41 const DWORD TS_SD_LOADING = 0x002;
42 
43 const DWORD TS_SS_DISJOINTSEL = 0x001;
44 const DWORD TS_SS_REGIONS = 0x002;
45 const DWORD TS_SS_TRANSITORY = 0x004;
46 const DWORD TS_SS_NOHIDDENTEXT = 0x008;
47 
48 const DWORD TS_AS_TEXT_CHANGE = 0x01;
49 const DWORD TS_AS_SEL_CHANGE = 0x02;
51 const DWORD TS_AS_ATTR_CHANGE = 0x08;
53 
55 
56 const DWORD TS_LF_SYNC = 0x1;
57 const DWORD TS_LF_READ = 0x2;
58 const DWORD TS_LF_READWRITE = 0x6;
59 
60 const WCHAR TS_CHAR_EMBEDDED = 0xfffc;
61 const WCHAR TS_CHAR_REGION = 0x0000;
62 const WCHAR TS_CHAR_REPLACEMENT = 0xfffd;
63 
64 const DWORD TS_IAS_NOQUERY = 0x1;
65 const DWORD TS_IAS_QUERYONLY = 0x2;
66 
67 typedef [uuid(05fcf85b-5e9c-4c3e-ab71-29471d4f38e7)] enum { TS_AE_NONE, TS_AE_START, TS_AE_END } TsActiveSelEnd;
68 typedef [uuid(033b0df0-f193-4170-b47b-141afc247878)] enum { TS_RT_PLAIN, TS_RT_HIDDEN, TS_RT_OPAQUE } TsRunType;
69 typedef [uuid(ef3457d9-8446-49a7-a9e6-b50d9d5f3fd9)] GUID TS_ATTRID;
70 
71 typedef [uuid(fec4f516-c503-45b1-a5fd-7a3d8ab07049)] struct TS_STATUS
72 {
75 } TS_STATUS;
76 
77 typedef [uuid(f3181bd6-bcf0-41d3-a81c-474b17ec38fb)] struct TS_TEXTCHANGE
78 {
83 
84 typedef [uuid(7ecc3ffa-8f73-4d91-98ed-76f8ac5b1600)] struct TS_SELECTIONSTYLE
85 {
89 
90 typedef [uuid(c4b9c33b-8a0d-4426-bebe-d444a4701fe9)] struct TS_SELECTION_ACP
91 {
96 
97 typedef [uuid(a6231949-37c5-4b74-a24e-2a26c327201d)] struct TS_RUNINFO
98 {
101 } TS_RUNINFO;
102 
103 typedef [uuid(2cc2b33f-1174-4507-b8d9-5bc0eb37c197)] struct TS_ATTRVAL
104 {
108 } TS_ATTRVAL;
109 
110 typedef [uuid(7899d7c4-5f07-493c-a89a-fac8e777f476)] enum { TS_LC_CREATE, TS_LC_CHANGE, TS_LC_DESTROY } TsLayoutCode;
111 typedef [uuid(1faf509e-44c1-458e-950a-38a96705a62b)] DWORD TsViewCookie;
112 
113 [
114  object,
115  uuid(22d44c94-a419-4542-a272-ae26093ececf),
117 ]
119 {
121  [in] DWORD dwFlags,
122  [in] const TS_TEXTCHANGE *pChange);
123 
125 
127  [in] TsLayoutCode lcode,
128  [in] TsViewCookie vcView);
129 
131  [in] DWORD dwFlags);
132 
134  [in] LONG acpStart,
135  [in] LONG acpEnd,
136  [in] ULONG cAttrs,
137  [in, size_is(cAttrs)] const TS_ATTRID *paAttrs);
138 
140  [in] DWORD dwLockFlags);
141 
143 
145 };
146 
147 [
148  object,
149  uuid(28888fe3-c2a0-483a-a3ea-8cb1ce51ff3d),
151 ]
153 {
155  [in] REFIID riid,
156  [in, iid_is(riid)] IUnknown *punk,
157  [in] DWORD dwMask);
158 
160  [in] IUnknown *punk);
161 
163  [in] DWORD dwLockFlags,
164  [out] HRESULT *phrSession);
165 
167  [out] TS_STATUS *pdcs);
168 
170  [in] LONG acpTestStart,
171  [in] LONG acpTestEnd,
172  [in] ULONG cch,
173  [out] LONG *pacpResultStart,
174  [out] LONG *pacpResultEnd);
175 
177  [in] ULONG ulIndex,
178  [in] ULONG ulCount,
179  [out, size_is(ulCount), length_is(*pcFetched)] TS_SELECTION_ACP *pSelection,
180  [out] ULONG *pcFetched);
181 
183  [in] ULONG ulCount,
184  [in, size_is(ulCount)] const TS_SELECTION_ACP *pSelection);
185 
187  [in] LONG acpStart,
188  [in] LONG acpEnd,
189  [out, size_is(cchPlainReq), length_is(*pcchPlainRet)] WCHAR *pchPlain,
190  [in] ULONG cchPlainReq,
191  [out] ULONG *pcchPlainRet,
192  [out, size_is(cRunInfoReq), length_is(*pcRunInfoRet)] TS_RUNINFO *prgRunInfo,
193  [in] ULONG cRunInfoReq,
194  [out] ULONG *pcRunInfoRet,
195  [out] LONG *pacpNext);
196 
198  [in] DWORD dwFlags,
199  [in] LONG acpStart,
200  [in] LONG acpEnd,
201  [in, size_is(cch)] const WCHAR *pchText,
202  [in] ULONG cch,
203  [out] TS_TEXTCHANGE *pChange);
204 
206  [in] LONG acpStart,
207  [in] LONG acpEnd,
208  [out] IDataObject **ppDataObject);
209 
211  [in] LONG acpPos,
212  [in] REFGUID rguidService,
213  [in] REFIID riid,
214  [out, iid_is(riid)] IUnknown **ppunk);
215 
217  [in] const GUID *pguidService,
218  [in] const FORMATETC *pFormatEtc,
219  [out] BOOL *pfInsertable);
220 
222  [in] DWORD dwFlags,
223  [in] LONG acpStart,
224  [in] LONG acpEnd,
225  [in] IDataObject *pDataObject,
226  [out] TS_TEXTCHANGE *pChange);
227 
228 
230  [in] DWORD dwFlags,
231  [in, size_is(cch)] const WCHAR *pchText,
232  [in] ULONG cch,
233  [out] LONG *pacpStart,
234  [out] LONG *pacpEnd,
235  [out] TS_TEXTCHANGE *pChange);
236 
238  [in] DWORD dwFlags,
239  [in] IDataObject *pDataObject,
240  [out] LONG *pacpStart,
241  [out] LONG *pacpEnd,
242  [out] TS_TEXTCHANGE *pChange);
243 
245  [in] DWORD dwFlags,
246  [in] ULONG cFilterAttrs,
247  [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs);
248 
250  [in] LONG acpPos,
251  [in] ULONG cFilterAttrs,
252  [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
253  [in] DWORD dwFlags);
254 
256  [in] LONG acpPos,
257  [in] ULONG cFilterAttrs,
258  [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
259  [in] DWORD dwFlags);
260 
262  [in] LONG acpStart,
263  [in] LONG acpHalt,
264  [in] ULONG cFilterAttrs,
265  [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
266  [in] DWORD dwFlags,
267  [out] LONG *pacpNext,
268  [out] BOOL *pfFound,
269  [out] LONG *plFoundOffset);
270 
272  [in] ULONG ulCount,
273  [out, size_is(ulCount), length_is(*pcFetched)] TS_ATTRVAL *paAttrVals,
274  [out] ULONG *pcFetched);
275 
277  [out] LONG *pacp);
278 
280  [out] TsViewCookie *pvcView);
281 
283  [in] TsViewCookie vcView,
284  [in] const POINT *ptScreen,
285  [in] DWORD dwFlags,
286  [out] LONG *pacp);
287 
289  [in] TsViewCookie vcView,
290  [in] LONG acpStart,
291  [in] LONG acpEnd,
292  [out] RECT *prc,
293  [out] BOOL *pfClipped);
294 
296  [in] TsViewCookie vcView,
297  [out] RECT *prc);
298 
299  HRESULT GetWnd(
300  [in] TsViewCookie vcView,
301  [out] HWND *phwnd);
302 };
TS_SELECTIONSTYLE style
Definition: textstor.idl:94
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Definition: glfuncs.h:240
struct TS_RUNINFO TS_RUNINFO
TsRunType
Definition: textstor.idl:68
DWORD dwDynamicFlags
Definition: textstor.idl:73
HRESULT GetACPFromPoint([in] TsViewCookie vcView, [in] const POINT *ptScreen, [in] DWORD dwFlags, [out] LONG *pacp)
#define REFIID
Definition: guiddef.h:118
HRESULT GetText([in] LONG acpStart, [in] LONG acpEnd, [out, size_is(cchPlainReq), length_is(*pcchPlainRet)] WCHAR *pchPlain, [in] ULONG cchPlainReq, [out] ULONG *pcchPlainRet, [out, size_is(cRunInfoReq), length_is(*pcRunInfoRet)] TS_RUNINFO *prgRunInfo, [in] ULONG cRunInfoReq, [out] ULONG *pcRunInfoRet, [out] LONG *pacpNext)
HRESULT QueryInsertEmbedded([in] const GUID *pguidService, [in] const FORMATETC *pFormatEtc, [out] BOOL *pfInsertable)
const DWORD TS_AS_ATTR_CHANGE
Definition: textstor.idl:51
Definition: scsiwmi.h:51
HRESULT QueryInsert([in] LONG acpTestStart, [in] LONG acpTestEnd, [in] ULONG cch, [out] LONG *pacpResultStart, [out] LONG *pacpResultEnd)
TsActiveSelEnd
Definition: textstor.idl:67
REFIID riid
Definition: precomp.h:44
HRESULT GetEmbedded([in] LONG acpPos, [in] REFGUID rguidService, [in] REFIID riid, [out, iid_is(riid)] IUnknown **ppunk)
HRESULT RequestAttrsTransitioningAtPosition([in] LONG acpPos, [in] ULONG cFilterAttrs, [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs, [in] DWORD dwFlags)
HRESULT RequestAttrsAtPosition([in] LONG acpPos, [in] ULONG cFilterAttrs, [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs, [in] DWORD dwFlags)
HRESULT InsertTextAtSelection([in] DWORD dwFlags, [in, size_is(cch)] const WCHAR *pchText, [in] ULONG cch, [out] LONG *pacpStart, [out] LONG *pacpEnd, [out] TS_TEXTCHANGE *pChange)
const DWORD TS_AS_SEL_CHANGE
Definition: textstor.idl:49
DWORD dwOverlapId
Definition: textstor.idl:106
struct TS_TEXTCHANGE TS_TEXTCHANGE
const DWORD TS_SS_TRANSITORY
Definition: textstor.idl:45
HRESULT GetTextExt([in] TsViewCookie vcView, [in] LONG acpStart, [in] LONG acpEnd, [out] RECT *prc, [out] BOOL *pfClipped)
const DWORD TS_LF_READWRITE
Definition: textstor.idl:58
const WCHAR TS_CHAR_EMBEDDED
Definition: textstor.idl:60
TS_ATTRID idAttr
Definition: textstor.idl:105
DWORD TsViewCookie
Definition: textstor.idl:111
ULONG uCount
Definition: textstor.idl:99
const WCHAR TS_CHAR_REGION
Definition: textstor.idl:61
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
struct TS_ATTRVAL TS_ATTRVAL
HRESULT InsertEmbedded([in] DWORD dwFlags, [in] LONG acpStart, [in] LONG acpEnd, [in] IDataObject *pDataObject, [out] TS_TEXTCHANGE *pChange)
const DWORD TS_SS_REGIONS
Definition: textstor.idl:44
HRESULT FindNextAttrTransition([in] LONG acpStart, [in] LONG acpHalt, [in] ULONG cFilterAttrs, [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs, [in] DWORD dwFlags, [out] LONG *pacpNext, [out] BOOL *pfFound, [out] LONG *plFoundOffset)
HRESULT RetrieveRequestedAttrs([in] ULONG ulCount, [out, size_is(ulCount), length_is(*pcFetched)] TS_ATTRVAL *paAttrVals, [out] ULONG *pcFetched)
LONG acpNewEnd
Definition: textstor.idl:81
const DWORD TS_SS_NOHIDDENTEXT
Definition: textstor.idl:46
HRESULT OnLockGranted([in] DWORD dwLockFlags)
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
VARIANT varValue
Definition: textstor.idl:107
#define e
Definition: ke_i.h:82
static CRYPT_DATA_BLOB b1[]
Definition: msg.c:573
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:201
HRESULT GetScreenExt([in] TsViewCookie vcView, [out] RECT *prc)
const DWORD TS_SS_DISJOINTSEL
Definition: textstor.idl:43
struct TS_SELECTION_ACP TS_SELECTION_ACP
HRESULT OnStatusChange([in] DWORD dwFlags)
HRESULT OnAttrsChange([in] LONG acpStart, [in] LONG acpEnd, [in] ULONG cAttrs, [in, size_is(cAttrs)] const TS_ATTRID *paAttrs)
DWORD dwStaticFlags
Definition: textstor.idl:74
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
const DWORD TS_AS_LAYOUT_CHANGE
Definition: textstor.idl:50
const GLubyte * c
Definition: glext.h:8905
HRESULT UnadviseSink([in] IUnknown *punk)
TS_S_ASYNC const ULONG TS_DEFAULT_SELECTION
Definition: textstor.idl:38
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
const DWORD TS_LF_READ
Definition: textstor.idl:57
HRESULT GetEndACP([out] LONG *pacp)
const DWORD TS_IAS_QUERYONLY
Definition: textstor.idl:65
HRESULT OnLayoutChange([in] TsLayoutCode lcode, [in] TsViewCookie vcView)
HRESULT OnTextChange([in] DWORD dwFlags, [in] const TS_TEXTCHANGE *pChange)
HRESULT OnStartEditTransaction()
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
HRESULT GetFormattedText([in] LONG acpStart, [in] LONG acpEnd, [out] IDataObject **ppDataObject)
HRESULT InsertEmbeddedAtSelection([in] DWORD dwFlags, [in] IDataObject *pDataObject, [out] LONG *pacpStart, [out] LONG *pacpEnd, [out] TS_TEXTCHANGE *pChange)
HRESULT RequestLock([in] DWORD dwLockFlags, [out] HRESULT *phrSession)
const DWORD TS_AS_ALL_SINKS
Definition: textstor.idl:54
const DWORD TS_LF_SYNC
Definition: textstor.idl:56
const WCHAR TS_CHAR_REPLACEMENT
Definition: textstor.idl:62
HRESULT RequestSupportedAttrs([in] DWORD dwFlags, [in] ULONG cFilterAttrs, [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs)
ULONG ulIndex
Definition: symbols.c:92
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
TsActiveSelEnd ase
Definition: textstor.idl:86
HRESULT OnSelectionChange()
const DWORD TS_SD_LOADING
Definition: textstor.idl:41
HRESULT GetStatus([out] TS_STATUS *pdcs)
LONG acpOldEnd
Definition: textstor.idl:80
HRESULT GetSelection([in] ULONG ulIndex, [in] ULONG ulCount, [out, size_is(ulCount), length_is(*pcFetched)] TS_SELECTION_ACP *pSelection, [out] ULONG *pcFetched)
const DWORD TS_AS_STATUS_CHANGE
Definition: textstor.idl:52
HRESULT AdviseSink([in] REFIID riid, [in, iid_is(riid)] IUnknown *punk, [in] DWORD dwMask)
HRESULT OnEndEditTransaction()
unsigned int ULONG
Definition: retypes.h:1
GUID TS_ATTRID
Definition: textstor.idl:69
const DWORD TS_SD_READONLY
Definition: textstor.idl:40
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
struct TS_SELECTIONSTYLE TS_SELECTIONSTYLE
_Out_ LPRECT prc
Definition: ntgdi.h:1658
HRESULT SetText([in] DWORD dwFlags, [in] LONG acpStart, [in] LONG acpEnd, [in, size_is(cch)] const WCHAR *pchText, [in] ULONG cch, [out] TS_TEXTCHANGE *pChange)
EXTENT_DATA * ed
Definition: write.c:2818
struct TS_STATUS TS_STATUS
void * object
Definition: jmemsys.h:48
const DWORD TS_IAS_NOQUERY
Definition: textstor.idl:64
HRESULT GetWnd([in] TsViewCookie vcView, [out] HWND *phwnd)
TsLayoutCode
Definition: textstor.idl:110
HRESULT SetSelection([in] ULONG ulCount, [in, size_is(ulCount)] const TS_SELECTION_ACP *pSelection)
HRESULT GetActiveView([out] TsViewCookie *pvcView)
TsRunType type
Definition: textstor.idl:100
const DWORD TS_AS_TEXT_CHANGE
Definition: textstor.idl:48