stdole2.idl revision 589fd26cedb2b4ebbed14f2964cad03cc8ebbca2
/*
* Copyright (C) 2003 Robert Shearman
* 2005 Huw Davies
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
/*
* Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
[
version(2.0),
helpstring("OLE Automation")
]
{
/* typedefs aren't stored in the type library.
These type names are known by the type compiler so it
doesn't really matter what we define them as. */
typedef short VARIANT_BOOL;
} GUID;
long *rgdispidNamedArgs;
unsigned int cNamedArgs;
} DISPPARAMS;
unsigned long dwHelpContext;
void *pvReserved;
void *pfnDeferredFillIn;
} EXCEPINFO;
[
odl,
]
interface IUnknown
{
}
[
odl,
]
{
[in] long dispidMember,
}
[
odl,
]
interface IEnumVARIANT : IUnknown
{
}
long OLE_XPOS_PIXELS;
long OLE_YPOS_PIXELS;
long OLE_XSIZE_PIXELS;
long OLE_YSIZE_PIXELS;
long OLE_XPOS_HIMETRIC;
long OLE_YPOS_HIMETRIC;
long OLE_XSIZE_HIMETRIC;
long OLE_YSIZE_HIMETRIC;
float OLE_XPOS_CONTAINER;
float OLE_YPOS_CONTAINER;
float OLE_XSIZE_CONTAINER;
float OLE_YSIZE_CONTAINER;
int OLE_HANDLE;
[
]
enum OLE_TRISTATE {
Unchecked = 0,
Checked = 1,
Gray = 2
};
[
odl,
helpstring("Font Object"),
]
};
[
odl,
]
}
[
]
[default] dispinterface Font;
/* FIXME: We can't reference dispinterface FontEvents here because we need it to
appear at the end of the typelib. */
/* [default, source] dispinterface FontEvents;*/
interface IFont;
};
[
odl,
helpstring("Picture Object"),
]
[in] long x,
[in] long y,
[in] void *prcWBounds);
};
[
]
long x,
long y,
long cx,
long cy,
void *prcWBounds);
};
[
]
[default] dispinterface Picture;
interface IPicture;
};
[
]
enum LoadPictureConstants {
Default = 0,
Monochrome = 1,
VgaColor = 2,
Color = 4
};
[
dllname("oleaut32.dll"),
helpstring("Functions for Standard OLE Objects"),
helpcontext(0x2775)
]
[
entry("OleLoadPictureFileEx"),
helpstring("Loads a picture from a file"),
helpcontext(0x2775)
]
[
entry("OleSavePictureFile"),
helpstring("Saves a picture to a file"),
helpcontext(0x2775)
]
};
[
helpstring("Event Interface for the Font Object"),
]
};
};