2 * Copyright (C) 2003 Robert Shearman
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
22 #pragma makedep regtypelib
27 /* These typedefs need to have the same size as their real counterparts. */
28 typedef short VARIANT_BOOL;
30 typedef double CURRENCY
;
31 typedef unsigned long HRESULT;
33 short word1
, word2
, word3
, word4
;
36 typedef unsigned long SCODE
;
39 uuid(00020430-0000-0000-C000
-000000000046),
41 helpstring("OLE Automation")
49 unsigned char Data4
[ 8 ];
52 typedef struct DISPPARAMS
{
54 long *rgdispidNamedArgs
;
56 unsigned int cNamedArgs
;
59 typedef struct EXCEPINFO
{
61 unsigned short wReserved
;
65 unsigned long dwHelpContext
;
67 void *pfnDeferredFillIn
;
73 uuid(00000000-0000-0000-C000
-000000000046),
79 HRESULT QueryInterface
(
84 unsigned long AddRef
();
87 unsigned long Release
();
92 uuid(00020400-0000-0000-C000
-000000000046),
95 interface IDispatch
: IUnknown
98 HRESULT GetTypeInfoCount
(
99 [out] unsigned int *pctinfo
);
103 [in] unsigned int itinfo
,
104 [in] unsigned long lcid,
105 [out] void **pptinfo
);
108 HRESULT GetIDsOfNames
(
110 [in] char **rgszNames
,
111 [in] unsigned int cNames
,
112 [in] unsigned long lcid,
113 [out] long *rgdispid
);
117 [in] long dispidMember
,
119 [in] unsigned long lcid,
120 [in] unsigned short wFlags
,
121 [in] DISPPARAMS
*pdispparams
,
122 [out] VARIANT *pvarResult
,
123 [out] EXCEPINFO
*pexcepinfo
,
124 [out] unsigned int *puArgErr
);
130 uuid(00020404-0000-0000-C000
-000000000046),
133 interface IEnumVARIANT
: IUnknown
136 [in] unsigned long celt
,
138 [out] unsigned long *pceltFetched
);
141 [in] unsigned long celt
);
146 [out] IEnumVARIANT
**ppenum
);
149 typedef [uuid(66504301-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
150 unsigned long OLE_COLOR
;
152 typedef [uuid(66504302-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
153 long OLE_XPOS_PIXELS
;
155 typedef [uuid(66504303-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
156 long OLE_YPOS_PIXELS
;
158 typedef [uuid(66504304-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
159 long OLE_XSIZE_PIXELS
;
161 typedef [uuid(66504305-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
162 long OLE_YSIZE_PIXELS
;
164 typedef [uuid(66504306-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
165 long OLE_XPOS_HIMETRIC
;
167 typedef [uuid(66504307-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
168 long OLE_YPOS_HIMETRIC
;
170 typedef [uuid(66504308-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
171 long OLE_XSIZE_HIMETRIC
;
173 typedef [uuid(66504309-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
174 long OLE_YSIZE_HIMETRIC
;
176 typedef [uuid(BF030640
-9069-101B
-AE2D
-08002B2EC713
), public]
177 float OLE_XPOS_CONTAINER
;
179 typedef [uuid(BF030641
-9069-101B
-AE2D
-08002B2EC713
), public]
180 float OLE_YPOS_CONTAINER
;
182 typedef [uuid(BF030642
-9069-101B
-AE2D
-08002B2EC713
), public]
183 float OLE_XSIZE_CONTAINER
;
185 typedef [uuid(BF030643
-9069-101B
-AE2D
-08002B2EC713
), public]
186 float OLE_YSIZE_CONTAINER
;
188 typedef [uuid(66504313-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
191 typedef [uuid(6650430B
-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
192 VARIANT_BOOL OLE_OPTEXCLUSIVE
;
194 typedef [uuid(BF030644
-9069-101B
-AE2D
-08002B2EC713
), public]
195 VARIANT_BOOL OLE_CANCELBOOL
;
197 typedef [uuid(BF030645
-9069-101B
-AE2D
-08002B2EC713
), public]
198 VARIANT_BOOL OLE_ENABLEDEFAULTBOOL
;
201 uuid(6650430A
-BE0F
-101A
-8BBB
-00AA00300CAB
)
209 typedef [uuid(6650430D
-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
212 typedef [uuid(6650430E
-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
215 typedef [uuid(6650430F
-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
216 VARIANT_BOOL FONTBOLD
;
218 typedef [uuid(66504310-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
219 VARIANT_BOOL FONTITALIC
;
221 typedef [uuid(66504311-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
222 VARIANT_BOOL FONTUNDERSCORE
;
224 typedef [uuid(66504312-BE0F
-101A
-8BBB
-00AA00300CAB
), public]
225 VARIANT_BOOL FONTSTRIKETHROUGH
;
230 uuid(BEF6E002
-A874
-101A
-8BBA
-00AA00300CAB
),
231 helpstring("Font Object"),
234 interface IFont
: IUnknown
{
235 [propget] HRESULT Name
([out, retval] BSTR *pname
);
236 [propput] HRESULT Name
([in] BSTR pname
);
238 [propget] HRESULT Size
([out, retval] CURRENCY
*psize
);
239 [propput] HRESULT Size
([in] CURRENCY psize
);
241 [propget] HRESULT Bold
([out, retval] VARIANT_BOOL *pbold
);
242 [propput] HRESULT Bold
([in] VARIANT_BOOL pbold
);
244 [propget] HRESULT Italic
([out, retval] VARIANT_BOOL *pitalic
);
245 [propput] HRESULT Italic
([in] VARIANT_BOOL pitalic
);
247 [propget] HRESULT Underline
([out, retval] VARIANT_BOOL *punderline
);
248 [propput] HRESULT Underline
([in] VARIANT_BOOL punderline
);
250 [propget] HRESULT Strikethrough
([out, retval] VARIANT_BOOL *pstrikethrough
);
251 [propput] HRESULT Strikethrough
([in] VARIANT_BOOL pstrikethrough
);
253 [propget] HRESULT Weight
([out, retval] short *pweight
);
254 [propput] HRESULT Weight
([in] short pweight
);
256 [propget] HRESULT Charset
([out, retval] short *pcharset
);
257 [propput] HRESULT Charset
([in] short pcharset
);
259 [propget] HRESULT hFont
([out, retval] OLE_HANDLE
*phfont
);
261 HRESULT Clone
([out] IFont
**ppfont
);
263 HRESULT IsEqual
([in] IFont
*pfontOther
);
265 HRESULT SetRatio
([in] long cyLogical
, [in] long cyHimetric
);
267 HRESULT AddRefHfont
([in] OLE_HANDLE hFont
);
269 HRESULT ReleaseHfont
([in] OLE_HANDLE hFont
);
275 uuid(BEF6E003
-A874
-101A
-8BBA
-00AA00300CAB
)
279 [id(DISPID_FONT_NAME
)] BSTR Name
;
280 [id(DISPID_FONT_SIZE
)] CURRENCY Size
;
281 [id(DISPID_FONT_BOLD
)] VARIANT_BOOL Bold
;
282 [id(DISPID_FONT_ITALIC
)] VARIANT_BOOL Italic
;
283 [id(DISPID_FONT_UNDER
)] VARIANT_BOOL Underline
;
284 [id(DISPID_FONT_STRIKE
)] VARIANT_BOOL Strikethrough
;
285 [id(DISPID_FONT_WEIGHT
)] short Weight
;
286 [id(DISPID_FONT_CHARSET
)] short Charset
;
290 typedef [public] Font IFontDisp
;
293 uuid(0BE35203
-8F91
-11CE
-9DE3
-00AA004BB851
)
296 [default] dispinterface Font
;
297 /* FIXME: We can't reference dispinterface FontEvents here because we need it to
298 appear at the end of the typelib. */
299 /* [default, source] dispinterface FontEvents;*/
305 uuid(7BF80980
-BF32
-101A
-8BBB
-00AA00300CAB
),
306 helpstring("Picture Object"),
309 interface IPicture
: IUnknown
{
310 [propget] HRESULT Handle([out, retval] OLE_HANDLE
*phandle
);
312 [propget] HRESULT hPal
([out, retval] OLE_HANDLE
*phpal
);
314 [propget] HRESULT Type
([out, retval] short *ptype
);
316 [propget] HRESULT Width
([out, retval] OLE_XSIZE_HIMETRIC
*pwidth
);
318 [propget] HRESULT Height
([out, retval] OLE_YSIZE_HIMETRIC
*pheight
);
320 HRESULT Render
([in] int hdc
,
325 [in] OLE_XPOS_HIMETRIC xSrc
,
326 [in] OLE_YPOS_HIMETRIC ySrc
,
327 [in] OLE_XSIZE_HIMETRIC cxSrc
,
328 [in] OLE_YSIZE_HIMETRIC cySrc
,
329 [in] void *prcWBounds
);
331 [propput] HRESULT hPal
([in] OLE_HANDLE phpal
);
333 [propget] HRESULT CurDC
([out, retval] int *phdcOut
);
335 HRESULT SelectPicture
([in] int hdcIn
,
337 [out] OLE_HANDLE
*phbmpOut
);
339 [propget] HRESULT KeepOriginalFormat
([out, retval] VARIANT_BOOL *pfkeep
);
340 [propput] HRESULT KeepOriginalFormat
([in] VARIANT_BOOL pfkeep
);
342 HRESULT PictureChanged
();
344 HRESULT SaveAsFile
([in] void *pstm
,
345 [in] VARIANT_BOOL fSaveMemCopy
,
346 [out] long *pcbSize
);
348 [propget] HRESULT Attributes
([out, retval] long *pdwAttr
);
350 HRESULT SetHdc
([in] OLE_HANDLE hdc
);
354 uuid(7BF80981
-BF32
-101A
-8BBB
-00AA00300CAB
)
356 dispinterface Picture
{
358 [id(DISPID_PICT_HANDLE
), readonly] OLE_HANDLE
Handle;
359 [id(DISPID_PICT_HPAL
)] OLE_HANDLE hPal
;
360 [id(DISPID_PICT_TYPE
), readonly] short Type
;
361 [id(DISPID_PICT_WIDTH
), readonly] OLE_XSIZE_HIMETRIC Width
;
362 [id(DISPID_PICT_HEIGHT
), readonly] OLE_YSIZE_HIMETRIC Height
;
364 [id(DISPID_PICT_RENDER
)]
370 OLE_XPOS_HIMETRIC xSrc
,
371 OLE_YPOS_HIMETRIC ySrc
,
372 OLE_XSIZE_HIMETRIC cxSrc
,
373 OLE_YSIZE_HIMETRIC cySrc
,
377 typedef [public] Picture IPictureDisp
;
380 uuid(0BE35204
-8F91
-11CE
-9DE3
-00AA004BB851
)
383 [default] dispinterface Picture
;
388 uuid(E6C8FA08
-BD9F
-11D0
-985E-00C04FC29993
)
390 enum LoadPictureConstants
{
398 dllname("oleaut32.dll"),
399 uuid(91209AC0
-60F6
-11CF
-9C5D
-00AA00C1489E
),
400 helpstring("Functions for Standard OLE Objects"),
405 entry("OleLoadPictureFileEx"),
406 helpstring("Loads a picture from a file"),
409 HRESULT LoadPicture
([in, optional] VARIANT filename
,
410 [in, defaultvalue(0)] int widthDesired
,
411 [in, defaultvalue(0)] int heightDesired
,
412 [in, defaultvalue(Default)] enum LoadPictureConstants flags
,
413 [out, retval] IPictureDisp
**retval);
415 entry("OleSavePictureFile"),
416 helpstring("Saves a picture to a file"),
419 HRESULT SavePicture
([in] IPictureDisp
*Picture
,
425 uuid(4EF6100A
-AF88
-11D0
-9846-00C04FC29993
),
426 helpstring("Event Interface for the Font Object"),
429 dispinterface FontEvents
{
432 [id(DISPID_FONT_CHANGED
)] void FontChanged
([in] BSTR PropertyName
);
435 typedef [public] FontEvents IFontEventsDisp
;