af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2003 Robert Shearman
af062818b47340eef15700d2f0211576ba3506eevboxsync * 2005 Huw Davies
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/*
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a choice of LGPL license versions is made available with the language indicating
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * of the LGPL is applied is otherwise unspecified.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(00020430-0000-0000-C000-000000000046),
af062818b47340eef15700d2f0211576ba3506eevboxsync version(2.0),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpstring("OLE Automation")
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsynclibrary stdole
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync /* typedefs aren't stored in the type library.
af062818b47340eef15700d2f0211576ba3506eevboxsync These type names are known by the type compiler so it
af062818b47340eef15700d2f0211576ba3506eevboxsync doesn't really matter what we define them as. */
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef short VARIANT_BOOL;
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef long BSTR;
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef double CURRENCY;
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef unsigned long HRESULT;
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef void *VARIANT;
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef unsigned long SCODE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef struct GUID {
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned long Data1;
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned short Data2;
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned short Data3;
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned char Data4[ 8 ];
af062818b47340eef15700d2f0211576ba3506eevboxsync } GUID;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef struct DISPPARAMS {
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT *rgvarg;
af062818b47340eef15700d2f0211576ba3506eevboxsync long *rgdispidNamedArgs;
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned int cArgs;
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned int cNamedArgs;
af062818b47340eef15700d2f0211576ba3506eevboxsync } DISPPARAMS;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef struct EXCEPINFO {
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned short wCode;
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned short wReserved;
af062818b47340eef15700d2f0211576ba3506eevboxsync BSTR bstrSource;
af062818b47340eef15700d2f0211576ba3506eevboxsync BSTR bstrDescription;
af062818b47340eef15700d2f0211576ba3506eevboxsync BSTR bstrHelpFile;
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned long dwHelpContext;
af062818b47340eef15700d2f0211576ba3506eevboxsync void *pvReserved;
af062818b47340eef15700d2f0211576ba3506eevboxsync void *pfnDeferredFillIn;
af062818b47340eef15700d2f0211576ba3506eevboxsync SCODE scode;
af062818b47340eef15700d2f0211576ba3506eevboxsync } EXCEPINFO;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync odl,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(00000000-0000-0000-C000-000000000046),
af062818b47340eef15700d2f0211576ba3506eevboxsync hidden
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync interface IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync {
af062818b47340eef15700d2f0211576ba3506eevboxsync [restricted]
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT QueryInterface(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] GUID *riid,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] void **ppvObj);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [restricted]
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned long AddRef();
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [restricted]
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned long Release();
af062818b47340eef15700d2f0211576ba3506eevboxsync }
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync odl,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(00020400-0000-0000-C000-000000000046),
af062818b47340eef15700d2f0211576ba3506eevboxsync restricted
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync interface IDispatch : IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync {
af062818b47340eef15700d2f0211576ba3506eevboxsync [restricted]
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetTypeInfoCount(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] unsigned int *pctinfo);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [restricted]
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetTypeInfo(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned int itinfo,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned long lcid,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] void **pptinfo);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [restricted]
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetIDsOfNames(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] GUID *riid,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] char **rgszNames,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned int cNames,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned long lcid,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] long *rgdispid);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [restricted]
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Invoke(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] long dispidMember,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] GUID *riid,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned long lcid,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned short wFlags,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DISPPARAMS *pdispparams,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] VARIANT *pvarResult,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] EXCEPINFO *pexcepinfo,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] unsigned int *puArgErr);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync }
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync odl,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(00020404-0000-0000-C000-000000000046),
af062818b47340eef15700d2f0211576ba3506eevboxsync hidden
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync interface IEnumVARIANT : IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync {
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Next(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned long celt,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] VARIANT *rgvar,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] unsigned long *pceltFetched);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Skip(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] unsigned long celt);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Reset();
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Clone(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IEnumVARIANT **ppenum);
af062818b47340eef15700d2f0211576ba3506eevboxsync }
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504301-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync unsigned long OLE_COLOR;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504302-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_XPOS_PIXELS;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504303-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_YPOS_PIXELS;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504304-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_XSIZE_PIXELS;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504305-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_YSIZE_PIXELS;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504306-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_XPOS_HIMETRIC;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504307-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_YPOS_HIMETRIC;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504308-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_XSIZE_HIMETRIC;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504309-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync long OLE_YSIZE_HIMETRIC;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(BF030640-9069-101B-AE2D-08002B2EC713), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync float OLE_XPOS_CONTAINER;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(BF030641-9069-101B-AE2D-08002B2EC713), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync float OLE_YPOS_CONTAINER;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(BF030642-9069-101B-AE2D-08002B2EC713), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync float OLE_XSIZE_CONTAINER;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(BF030643-9069-101B-AE2D-08002B2EC713), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync float OLE_YSIZE_CONTAINER;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504313-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync int OLE_HANDLE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(6650430B-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT_BOOL OLE_OPTEXCLUSIVE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(BF030644-9069-101B-AE2D-08002B2EC713), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT_BOOL OLE_CANCELBOOL;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(BF030645-9069-101B-AE2D-08002B2EC713), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT_BOOL OLE_ENABLEDEFAULTBOOL;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(6650430A-BE0F-101A-8BBB-00AA00300CAB)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync enum OLE_TRISTATE {
af062818b47340eef15700d2f0211576ba3506eevboxsync Unchecked = 0,
af062818b47340eef15700d2f0211576ba3506eevboxsync Checked = 1,
af062818b47340eef15700d2f0211576ba3506eevboxsync Gray = 2
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(6650430D-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync BSTR FONTNAME;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(6650430E-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync CURRENCY FONTSIZE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(6650430F-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT_BOOL FONTBOLD;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504310-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT_BOOL FONTITALIC;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504311-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT_BOOL FONTUNDERSCORE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [uuid(66504312-BE0F-101A-8BBB-00AA00300CAB), public]
af062818b47340eef15700d2f0211576ba3506eevboxsync VARIANT_BOOL FONTSTRIKETHROUGH;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync odl,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(BEF6E002-A874-101A-8BBA-00AA00300CAB),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpstring("Font Object"),
af062818b47340eef15700d2f0211576ba3506eevboxsync hidden
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync interface IFont : IUnknown {
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Name([out, retval] BSTR *pname);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Name([in] BSTR pname);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Size([out, retval] CURRENCY *psize);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Size([in] CURRENCY psize);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Bold([out, retval] VARIANT_BOOL *pbold);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Bold([in] VARIANT_BOOL pbold);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Italic([out, retval] VARIANT_BOOL *pitalic);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Italic([in] VARIANT_BOOL pitalic);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Underline([out, retval] VARIANT_BOOL *punderline);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Underline([in] VARIANT_BOOL punderline);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Strikethrough([out, retval] VARIANT_BOOL *pstrikethrough);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Strikethrough([in] VARIANT_BOOL pstrikethrough);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Weight([out, retval] short *pweight);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Weight([in] short pweight);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Charset([out, retval] short *pcharset);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT Charset([in] short pcharset);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT hFont([out, retval] OLE_HANDLE *phfont);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Clone([out] IFont **ppfont);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IsEqual([in] IFont *pfontOther);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetRatio([in] long cyLogical, [in] long cyHimetric);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT AddRefHfont([in] OLE_HANDLE hFont);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ReleaseHfont([in] OLE_HANDLE hFont);
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync odl,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(BEF6E003-A874-101A-8BBA-00AA00300CAB)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync dispinterface Font {
af062818b47340eef15700d2f0211576ba3506eevboxsync properties:
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x0)] BSTR Name;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x2)] CURRENCY Size;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x3)] VARIANT_BOOL Bold;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x4)] VARIANT_BOOL Italic;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x5)] VARIANT_BOOL Underline;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x6)] VARIANT_BOOL Strikethrough;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x7)] short Weight;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x8)] short Charset;
af062818b47340eef15700d2f0211576ba3506eevboxsync methods:
af062818b47340eef15700d2f0211576ba3506eevboxsync }
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [public] Font IFontDisp;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(0BE35203-8F91-11CE-9DE3-00AA004BB851)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync coclass StdFont {
af062818b47340eef15700d2f0211576ba3506eevboxsync [default] dispinterface Font;
af062818b47340eef15700d2f0211576ba3506eevboxsync /* FIXME: We can't reference dispinterface FontEvents here because we need it to
af062818b47340eef15700d2f0211576ba3506eevboxsync appear at the end of the typelib. */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* [default, source] dispinterface FontEvents;*/
af062818b47340eef15700d2f0211576ba3506eevboxsync interface IFont;
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync odl,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(7BF80980-BF32-101A-8BBB-00AA00300CAB),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpstring("Picture Object"),
af062818b47340eef15700d2f0211576ba3506eevboxsync hidden
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync interface IPicture : IUnknown {
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Handle([out, retval] OLE_HANDLE *phandle);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT hPal([out, retval] OLE_HANDLE *phpal);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Type([out, retval] short *ptype);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Width([out, retval] OLE_XSIZE_HIMETRIC *pwidth);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Height([out, retval] OLE_YSIZE_HIMETRIC *pheight);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Render([in] int hdc,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] long x,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] long y,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] long cx,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] long cy,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] OLE_XPOS_HIMETRIC xSrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] OLE_YPOS_HIMETRIC ySrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] OLE_XSIZE_HIMETRIC cxSrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] OLE_YSIZE_HIMETRIC cySrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] void *prcWBounds);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT hPal([in] OLE_HANDLE phpal);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT CurDC([out, retval] int *phdcOut);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SelectPicture([in] int hdcIn,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] int *phdcOut,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] OLE_HANDLE *phbmpOut);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT KeepOriginalFormat([out, retval] VARIANT_BOOL *pfkeep);
af062818b47340eef15700d2f0211576ba3506eevboxsync [propput] HRESULT KeepOriginalFormat([in] VARIANT_BOOL pfkeep);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT PictureChanged();
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SaveAsFile([in] void *pstm,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] VARIANT_BOOL fSaveMemCopy,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] long *pcbSize);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [propget] HRESULT Attributes([out, retval] long *pdwAttr);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetHdc([in] OLE_HANDLE hdc);
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(7BF80981-BF32-101A-8BBB-00AA00300CAB)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync dispinterface Picture {
af062818b47340eef15700d2f0211576ba3506eevboxsync properties:
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x0), readonly] OLE_HANDLE Handle;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x2)] OLE_HANDLE hPal;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x3), readonly] short Type;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x4), readonly] OLE_XSIZE_HIMETRIC Width;
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x5), readonly] OLE_YSIZE_HIMETRIC Height;
af062818b47340eef15700d2f0211576ba3506eevboxsync methods:
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x6)] void Render(int hdc,
af062818b47340eef15700d2f0211576ba3506eevboxsync long x,
af062818b47340eef15700d2f0211576ba3506eevboxsync long y,
af062818b47340eef15700d2f0211576ba3506eevboxsync long cx,
af062818b47340eef15700d2f0211576ba3506eevboxsync long cy,
af062818b47340eef15700d2f0211576ba3506eevboxsync OLE_XPOS_HIMETRIC xSrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync OLE_YPOS_HIMETRIC ySrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync OLE_XSIZE_HIMETRIC cxSrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync OLE_YSIZE_HIMETRIC cySrc,
af062818b47340eef15700d2f0211576ba3506eevboxsync void *prcWBounds);
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [public] Picture IPictureDisp;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(0BE35204-8F91-11CE-9DE3-00AA004BB851)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync coclass StdPicture {
af062818b47340eef15700d2f0211576ba3506eevboxsync [default] dispinterface Picture;
af062818b47340eef15700d2f0211576ba3506eevboxsync interface IPicture;
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(E6C8FA08-BD9F-11D0-985E-00C04FC29993)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync enum LoadPictureConstants {
af062818b47340eef15700d2f0211576ba3506eevboxsync Default = 0,
af062818b47340eef15700d2f0211576ba3506eevboxsync Monochrome = 1,
af062818b47340eef15700d2f0211576ba3506eevboxsync VgaColor = 2,
af062818b47340eef15700d2f0211576ba3506eevboxsync Color = 4
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync dllname("oleaut32.dll"),
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(91209AC0-60F6-11CF-9C5D-00AA00C1489E),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpstring("Functions for Standard OLE Objects"),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpcontext(0x2775)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync module StdFunctions{
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync entry("OleLoadPictureFileEx"),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpstring("Loads a picture from a file"),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpcontext(0x2775)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT LoadPicture([in, optional] VARIANT filename,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, optional, defaultvalue(0)] int widthDesired,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, optional, defaultvalue(0)] int heightDesired,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, optional, defaultvalue(Default)] enum LoadPictureConstants flags,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out, retval] IPictureDisp **retval);
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync entry("OleSavePictureFile"),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpstring("Saves a picture to a file"),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpcontext(0x2775)
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SavePicture([in] IPictureDisp *Picture,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] BSTR filename);
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync [
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(4EF6100A-AF88-11D0-9846-00C04FC29993),
af062818b47340eef15700d2f0211576ba3506eevboxsync helpstring("Event Interface for the Font Object"),
af062818b47340eef15700d2f0211576ba3506eevboxsync hidden
af062818b47340eef15700d2f0211576ba3506eevboxsync ]
af062818b47340eef15700d2f0211576ba3506eevboxsync dispinterface FontEvents {
af062818b47340eef15700d2f0211576ba3506eevboxsync properties:
af062818b47340eef15700d2f0211576ba3506eevboxsync methods:
af062818b47340eef15700d2f0211576ba3506eevboxsync [id(0x9)] void FontChanged([in] BSTR PropertyName);
af062818b47340eef15700d2f0211576ba3506eevboxsync };
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [public] FontEvents IFontEventsDisp;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync};