1999-02-20 17:48:53 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to OLE font support.
|
|
|
|
*
|
|
|
|
* Depends on 'obj_base.h'.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Francis Beaudet
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-02-20 17:48:53 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_OLEFONT_H
|
|
|
|
#define __WINE_WINE_OBJ_OLEFONT_H
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-02-20 17:48:53 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
|
|
|
DEFINE_GUID(IID_IFont, 0xBEF6E002, 0xA874, 0x101A, 0x8B, 0xBA, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB);
|
|
|
|
typedef struct IFont IFont,*LPFONT;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IFontDisp, 0xBEF6E003, 0xA874, 0x101A, 0x8B, 0xBA, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB);
|
|
|
|
typedef struct IFontDisp IFontDisp,*LPFONTDISP;
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef TEXTMETRICW TEXTMETRICOLE;
|
1999-02-20 17:48:53 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IFont interface
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE IFont
|
|
|
|
#define IFont_METHODS \
|
1999-04-25 21:01:52 +02:00
|
|
|
ICOM_METHOD1(HRESULT, get_Name, BSTR*, pname) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Name, BSTR, name) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_Size, CY*, psize) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Size, CY, size) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_Bold, BOOL*, pbold) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Bold, BOOL, bold) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_Italic, BOOL*, pitalic) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Italic, BOOL, italic) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_Underline, BOOL*, punderline) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Underline, BOOL, underline) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_Strikethrough, BOOL*, pstrikethrough) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Strikethrough, BOOL, strikethrough) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_Weight, short*, pweight) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Weight, short, weight) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_Charset, short*, pcharset) \
|
|
|
|
ICOM_METHOD1(HRESULT, put_Charset, short, charset) \
|
|
|
|
ICOM_METHOD1(HRESULT, get_hFont, HFONT*, phfont) \
|
|
|
|
ICOM_METHOD1(HRESULT, Clone, IFont**, ppfont) \
|
|
|
|
ICOM_METHOD1(HRESULT, IsEqual, IFont*, pFontOther) \
|
|
|
|
ICOM_METHOD2(HRESULT, SetRatio, long, cyLogical, long, cyHimetric) \
|
|
|
|
ICOM_METHOD1(HRESULT, QueryTextMetrics, TEXTMETRICOLE*, ptm) \
|
|
|
|
ICOM_METHOD1(HRESULT, AddRefHfont, HFONT, hfont) \
|
|
|
|
ICOM_METHOD1(HRESULT, ReleaseHfont, HFONT, hfont) \
|
2002-06-01 01:06:46 +02:00
|
|
|
ICOM_METHOD1(HRESULT, SetHdc, HDC, hdc)
|
1999-02-20 17:48:53 +01:00
|
|
|
#define IFont_IMETHODS \
|
1999-07-24 12:24:09 +02:00
|
|
|
IUnknown_IMEHTODS \
|
|
|
|
IFont_METHODS
|
1999-02-20 17:48:53 +01:00
|
|
|
ICOM_DEFINE(IFont,IUnknown)
|
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IFont_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IFont_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IFont_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IFont methods ***/
|
|
|
|
#define IFont_getName(p,a) ICOM_CALL1(get_Name,p,a)
|
|
|
|
#define IFont_putName(p,a) ICOM_CALL1(put_Name,p,a)
|
|
|
|
#define IFont_get_Size(p,a) ICOM_CALL1(get_Size,p,a)
|
|
|
|
#define IFont_put_Size(p,a) ICOM_CALL1(put_Size,p,a)
|
2003-01-23 02:23:59 +01:00
|
|
|
#define IFont_get_Bold(p,a) ICOM_CALL1(get_Bold,p,a)
|
|
|
|
#define IFont_put_Bold(p,a) ICOM_CALL1(put_Bold,p,a)
|
|
|
|
#define IFont_get_Italic(p,a) ICOM_CALL1(get_Italic,p,a)
|
|
|
|
#define IFont_put_Italic(p,a) ICOM_CALL1(put_Italic,p,a)
|
|
|
|
#define IFont_get_Underline(p,a) ICOM_CALL1(get_Underline,p,a)
|
|
|
|
#define IFont_put_Underline(p,a) ICOM_CALL1(put_Underline,p,a)
|
|
|
|
#define IFont_get_Strikethrough(p,a) ICOM_CALL1(get_Strikethrough,p,a)
|
|
|
|
#define IFont_put_Strikethrough(p,a) ICOM_CALL1(put_Strikethrough,p,a)
|
|
|
|
#define IFont_get_Weight(p,a) ICOM_CALL1(get_Weight,p,a)
|
|
|
|
#define IFont_put_Weight(p,a) ICOM_CALL1(put_Weight,p,a)
|
|
|
|
#define IFont_get_Charset(p,a) ICOM_CALL1(get_Charset,p,a)
|
|
|
|
#define IFont_put_Charset(p,a) ICOM_CALL1(put_Charset,p,a)
|
|
|
|
#define IFont_get_hFont(p,a) ICOM_CALL1(get_hFont,p,a)
|
|
|
|
#define IFont_put_hFont(p,a) ICOM_CALL1(put_hFont,p,a)
|
|
|
|
#define IFont_Clone(p,a) ICOM_CALL1(Clone,p,a)
|
|
|
|
#define IFont_IsEqual(p,a) ICOM_CALL1(IsEqual,p,a)
|
|
|
|
#define IFont_SetRatio(p,a,b) ICOM_CALL2(SetRatio,p,a,b)
|
|
|
|
#define IFont_QueryTextMetrics(p,a) ICOM_CALL1(QueryTextMetrics,p,a)
|
|
|
|
#define IFont_AddRefHfont(p,a) ICOM_CALL1(AddRefHfont,p,a)
|
|
|
|
#define IFont_ReleaseHfont(p,a) ICOM_CALL1(ReleaseHfont,p,a)
|
|
|
|
#define IFont_SetHdc(p,a) ICOM_CALL1(SetHdc,p,a)
|
1999-02-20 17:48:53 +01:00
|
|
|
|
1999-03-14 14:47:00 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IFont interface
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE IFontDisp
|
2002-06-01 01:06:46 +02:00
|
|
|
#define IFontDisp_METHODS
|
1999-03-14 14:47:00 +01:00
|
|
|
#define IFontDisp_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IFontDisp_METHODS
|
|
|
|
ICOM_DEFINE(IFontDisp,IDispatch)
|
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IFontDisp_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IFontDisp_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IFontDisp_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IDispatch methods ***/
|
|
|
|
#define IFontDisp_GetTypeInfoCount(p,a) ICOM_CALL1 (GetTypeInfoCount,p,a)
|
2003-01-23 02:23:59 +01:00
|
|
|
#define IFontDisp_GetTypeInfo(p,a,b,c) ICOM_CALL3 (GetTypeInfo,p,a,b,c)
|
1999-03-14 14:47:00 +01:00
|
|
|
#define IFontDisp_GetIDsOfNames(p,a,b,c,d,e) ICOM_CALL5 (GetIDsOfNames,p,a,b,c,d,e)
|
|
|
|
#define IFontDisp_Invoke(p,a,b,c,d,e,f,g,h) ICOM_CALL8 (Invoke,p,a,b,c,d,e,f,g,h)
|
|
|
|
/*** IFontDisp methods ***/
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-03-14 14:47:00 +01:00
|
|
|
|
1999-02-20 17:48:53 +01:00
|
|
|
#endif /* __WINE_WINE_OBJ_OLEFONT_H */
|