1 /* Copyright (C) 2007 C John Klehm
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 #include "inkobj_internal.h"
20 WINE_DEFAULT_DEBUG_CHANNEL(inkobj
);
23 typedef struct tagInkCollector
25 IInkCollectorVtbl
* lpVtbl
;
30 static HRESULT WINAPI
InkCollector_QueryInterface(
31 IInkCollector
* This
, REFIID riid
, void** ppvObject
)
37 static ULONG WINAPI
InkCollector_AddRef(
44 static ULONG WINAPI
InkCollector_Release(
51 static HRESULT WINAPI
InkCollector_GetTypeInfoCount(
52 IInkCollector
* This
, UINT
* pctinfo
)
58 static HRESULT WINAPI
InkCollector_GetTypeInfo(
59 IInkCollector
* This
, UINT iTInfo
, LCID lcid
, ITypeInfo
** ppTInfo
)
65 static HRESULT WINAPI
InkCollector_GetIDsOfNames(
66 IInkCollector
* This
, REFIID riid
, LPOLESTR
* rgszNames
, UINT cNames
,
67 LCID lcid
, DISPID
* rgDispId
)
73 static HRESULT WINAPI
InkCollector_Invoke(
74 IInkCollector
* This
, DISPID dispIdMember
, REFIID riid
, LCID lcid
,
75 WORD wFlags
, DISPPARAMS
* pDispParams
, VARIANT
* pVarResult
,
76 EXCEPINFO
* pExcepInfo
, UINT
* puArgErr
)
82 static HRESULT WINAPI
InkCollector_get_hWnd(
83 IInkCollector
* This
, LONG
* CurrentWindow
)
89 static HRESULT WINAPI
InkCollector_put_hWnd(
90 IInkCollector
* This
, LONG CurrentWindow
)
96 static HRESULT WINAPI
InkCollector_get_Enabled(
97 IInkCollector
* This
, VARIANT_BOOL
* Collecting
)
103 static HRESULT WINAPI
InkCollector_put_Enabled(
104 IInkCollector
* This
, VARIANT_BOOL Collecting
)
110 static HRESULT WINAPI
InkCollector_get_DefaultDrawingAttributes(
111 IInkCollector
* This
, IInkDrawingAttributes
** CurrentAttributes
)
117 static HRESULT WINAPI
InkCollector_putref_DefaultDrawingAttributes(
118 IInkCollector
* This
, IInkDrawingAttributes
* CurrentAttributes
)
124 static HRESULT WINAPI
InkCollector_get_Renderer(
125 IInkCollector
* This
, IInkRenderer
** CurrentInkRenderer
)
131 static HRESULT WINAPI
InkCollector_putref_Renderer(
132 IInkCollector
* This
, IInkRenderer
* CurrentInkRenderer
)
138 static HRESULT WINAPI
InkCollector_get_Ink(
139 IInkCollector
* This
, IInkDisp
** Ink
)
145 static HRESULT WINAPI
InkCollector_putref_Ink(
146 IInkCollector
* This
, IInkDisp
* Ink
)
152 static HRESULT WINAPI
InkCollector_get_AutoRedraw(
153 IInkCollector
* This
, VARIANT_BOOL
* AutoRedraw
)
159 static HRESULT WINAPI
InkCollector_put_AutoRedraw(
160 IInkCollector
* This
, VARIANT_BOOL AutoRedraw
)
166 static HRESULT WINAPI
InkCollector_get_CollectingInk(
167 IInkCollector
* This
, VARIANT_BOOL
* Collecting
)
173 static HRESULT WINAPI
InkCollector_get_CollectionMode(
174 IInkCollector
* This
, InkCollectionMode
* Mode
)
180 static HRESULT WINAPI
InkCollector_put_CollectionMode(
181 IInkCollector
* This
, InkCollectionMode Mode
)
187 static HRESULT WINAPI
InkCollector_get_DynamicRendering(
188 IInkCollector
* This
, VARIANT_BOOL
* Enabled
)
194 static HRESULT WINAPI
InkCollector_put_DynamicRendering(
195 IInkCollector
* This
, VARIANT_BOOL Enabled
)
201 static HRESULT WINAPI
InkCollector_get_DesiredPacketDescription(
202 IInkCollector
* This
, VARIANT
* PacketGuids
)
208 static HRESULT WINAPI
InkCollector_put_DesiredPacketDescription(
209 IInkCollector
* This
, VARIANT PacketGuids
)
215 static HRESULT WINAPI
InkCollector_get_MouseIcon(
216 IInkCollector
* This
, IPictureDisp
** MouseIcon
)
222 static HRESULT WINAPI
InkCollector_put_MouseIcon(
223 IInkCollector
* This
, IPictureDisp
* MouseIcon
)
229 static HRESULT WINAPI
InkCollector_putref_MouseIcon(
230 IInkCollector
* This
, IPictureDisp
* MouseIcon
)
236 static HRESULT WINAPI
InkCollector_get_MousePointer(
237 IInkCollector
* This
, InkMousePointer
* MousePointer
)
243 static HRESULT WINAPI
InkCollector_put_MousePointer(
244 IInkCollector
* This
, InkMousePointer MousePointer
)
250 static HRESULT WINAPI
InkCollector_get_Cursors(
251 IInkCollector
* This
, IInkCursors
** Cursors
)
257 static HRESULT WINAPI
InkCollector_get_MarginX(
258 IInkCollector
* This
, LONG
* MarginX
)
264 static HRESULT WINAPI
InkCollector_put_MarginX(
265 IInkCollector
* This
, LONG MarginX
)
271 static HRESULT WINAPI
InkCollector_get_MarginY(
272 IInkCollector
* This
, LONG
* MarginY
)
278 static HRESULT WINAPI
InkCollector_put_MarginY(
279 IInkCollector
* This
, LONG MarginY
)
285 static HRESULT WINAPI
InkCollector_get_Tablet(
286 IInkCollector
* This
, IInkTablet
** SingleTablet
)
292 static HRESULT WINAPI
InkCollector_get_SupportHighContrastInk(
293 IInkCollector
* This
, VARIANT_BOOL
* Support
)
299 static HRESULT WINAPI
InkCollector_put_SupportHighContrastInk(
300 IInkCollector
* This
, VARIANT_BOOL Support
)
306 static HRESULT WINAPI
InkCollector_SetGestureStatus(
307 IInkCollector
* This
, InkApplicationGesture Gesture
, VARIANT_BOOL Listen
)
313 static HRESULT WINAPI
InkCollector_GetGestureStatus(
314 IInkCollector
* This
, InkApplicationGesture Gesture
, VARIANT_BOOL
* Listen
)
320 static HRESULT WINAPI
InkCollector_GetWindowInputRectangle(
321 IInkCollector
* This
, IInkRectangle
** WindowInputRectangle
)
327 static HRESULT WINAPI
InkCollector_SetWindowInputRectangle(
328 IInkCollector
* This
, IInkRectangle
* WindowInputRectangle
)
334 static HRESULT WINAPI
InkCollector_SetAllTabletsMode(
335 IInkCollector
* This
, VARIANT_BOOL UseMouseForInput
)
341 static HRESULT WINAPI
InkCollector_SetSingleTabletIntegratedMode(
342 IInkCollector
* This
, IInkTablet
* Tablet
)
348 static HRESULT WINAPI
InkCollector_GetEventInterest(
349 IInkCollector
* This
, InkCollectorEventInterest EventId
,
350 VARIANT_BOOL
* Listen
)
356 static HRESULT WINAPI
InkCollector_SetEventInterest(
357 IInkCollector
* This
, InkCollectorEventInterest EventId
,
364 static const IInkCollectorVtbl InkCollectorVtbl
=
366 InkCollector_QueryInterface
,
368 InkCollector_Release
,
369 InkCollector_GetTypeInfoCount
,
370 InkCollector_GetTypeInfo
,
371 InkCollector_GetIDsOfNames
,
373 InkCollector_get_hWnd
,
374 InkCollector_put_hWnd
,
375 InkCollector_get_Enabled
,
376 InkCollector_put_Enabled
,
377 InkCollector_get_DefaultDrawingAttributes
,
378 InkCollector_putref_DefaultDrawingAttributes
,
379 InkCollector_get_Renderer
,
380 InkCollector_putref_Renderer
,
381 InkCollector_get_Ink
,
382 InkCollector_putref_Ink
,
383 InkCollector_get_AutoRedraw
,
384 InkCollector_put_AutoRedraw
,
385 InkCollector_get_CollectingInk
,
386 InkCollector_get_CollectionMode
,
387 InkCollector_put_CollectionMode
,
388 InkCollector_get_DynamicRendering
,
389 InkCollector_put_DynamicRendering
,
390 InkCollector_get_DesiredPacketDescription
,
391 InkCollector_put_DesiredPacketDescription
,
392 InkCollector_get_MouseIcon
,
393 InkCollector_put_MouseIcon
,
394 InkCollector_putref_MouseIcon
,
395 InkCollector_get_MousePointer
,
396 InkCollector_put_MousePointer
,
397 InkCollector_get_Cursors
,
398 InkCollector_get_MarginX
,
399 InkCollector_put_MarginX
,
400 InkCollector_get_MarginY
,
401 InkCollector_put_MarginY
,
402 InkCollector_get_Tablet
,
403 InkCollector_get_SupportHighContrastInk
,
404 InkCollector_put_SupportHighContrastInk
,
405 InkCollector_SetGestureStatus
,
406 InkCollector_GetGestureStatus
,
407 InkCollector_GetWindowInputRectangle
,
408 InkCollector_SetWindowInputRectangle
,
409 InkCollector_SetAllTabletsMode
,
410 InkCollector_SetSingleTabletIntegratedMode
,
411 InkCollector_GetEventInterest
,
412 InkCollector_SetEventInterest