Implemented processing for actions: SPI_GET/SETGRIDGRANULARITY,
[wine] / include / wine / obj_olefont.h
1 /*
2  * Defines the COM interfaces and APIs related to OLE font support.
3  *
4  * Depends on 'obj_base.h'.
5  */
6
7 #ifndef __WINE_WINE_OBJ_OLEFONT_H
8 #define __WINE_WINE_OBJ_OLEFONT_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif /* defined(__cplusplus) */
13
14 /*****************************************************************************
15  * Predeclare the interfaces
16  */
17 DEFINE_GUID(IID_IFont, 0xBEF6E002, 0xA874, 0x101A, 0x8B, 0xBA, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB);
18 typedef struct IFont IFont,*LPFONT;
19
20 DEFINE_GUID(IID_IFontDisp, 0xBEF6E003, 0xA874, 0x101A, 0x8B, 0xBA, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB);
21 typedef struct IFontDisp IFontDisp,*LPFONTDISP;
22
23 typedef TEXTMETRICW TEXTMETRICOLE;
24
25 /*****************************************************************************
26  * IFont interface
27  */
28 #define ICOM_INTERFACE IFont
29 #define IFont_METHODS \
30   ICOM_METHOD1(HRESULT, get_Name, BSTR*, pname) \
31   ICOM_METHOD1(HRESULT, put_Name, BSTR, name) \
32   ICOM_METHOD1(HRESULT, get_Size, CY*, psize) \
33   ICOM_METHOD1(HRESULT, put_Size, CY, size) \
34   ICOM_METHOD1(HRESULT, get_Bold, BOOL*, pbold) \
35   ICOM_METHOD1(HRESULT, put_Bold, BOOL, bold) \
36   ICOM_METHOD1(HRESULT, get_Italic, BOOL*, pitalic) \
37   ICOM_METHOD1(HRESULT, put_Italic, BOOL, italic) \
38   ICOM_METHOD1(HRESULT, get_Underline, BOOL*, punderline) \
39   ICOM_METHOD1(HRESULT, put_Underline, BOOL, underline) \
40   ICOM_METHOD1(HRESULT, get_Strikethrough, BOOL*, pstrikethrough) \
41   ICOM_METHOD1(HRESULT, put_Strikethrough, BOOL, strikethrough) \
42   ICOM_METHOD1(HRESULT, get_Weight, short*, pweight) \
43   ICOM_METHOD1(HRESULT, put_Weight, short, weight) \
44   ICOM_METHOD1(HRESULT, get_Charset, short*, pcharset) \
45   ICOM_METHOD1(HRESULT, put_Charset, short, charset) \
46   ICOM_METHOD1(HRESULT, get_hFont, HFONT*, phfont) \
47   ICOM_METHOD1(HRESULT, Clone, IFont**, ppfont) \
48   ICOM_METHOD1(HRESULT, IsEqual, IFont*, pFontOther) \
49   ICOM_METHOD2(HRESULT, SetRatio, long, cyLogical, long, cyHimetric) \
50   ICOM_METHOD1(HRESULT, QueryTextMetrics, TEXTMETRICOLE*, ptm) \
51   ICOM_METHOD1(HRESULT, AddRefHfont, HFONT, hfont) \
52   ICOM_METHOD1(HRESULT, ReleaseHfont, HFONT, hfont) \
53   ICOM_METHOD1(HRESULT, SetHdc, HDC, hdc)     
54 #define IFont_IMETHODS \
55         IUnknown_IMEHTODS \
56         IFont_METHODS
57 ICOM_DEFINE(IFont,IUnknown)
58 #undef ICOM_INTERFACE
59
60 /*** IUnknown methods ***/
61 #define IFont_QueryInterface(p,a,b)  ICOM_CALL2(QueryInterface,p,a,b)
62 #define IFont_AddRef(p)              ICOM_CALL (AddRef,p)
63 #define IFont_Release(p)             ICOM_CALL (Release,p)
64 /*** IFont methods ***/
65 #define IFont_getName(p,a)           ICOM_CALL1(get_Name,p,a)
66 #define IFont_putName(p,a)           ICOM_CALL1(put_Name,p,a)
67 #define IFont_get_Size(p,a)          ICOM_CALL1(get_Size,p,a)
68 #define IFont_put_Size(p,a)          ICOM_CALL1(put_Size,p,a)
69 #define IFont_get_Bold(p,a)          ICOM_CALL1(get_Bold,a)
70 #define IFont_put_Bold(p,a)          ICOM_CALL1(put_Bold,a)
71 #define IFont_get_Italic(p,a)        ICOM_CALL1(get_Italic,a)
72 #define IFont_put_Italic(p,a)        ICOM_CALL1(put_Italic,a)
73 #define IFont_get_Underline(p,a)     ICOM_CALL1(get_Underline,a)
74 #define IFont_put_Underline(p,a)     ICOM_CALL1(put_Underline,a)
75 #define IFont_get_Strikethrough(p,a) ICOM_CALL1(get_Strikethrough,a)
76 #define IFont_put_Strikethrough(p,a) ICOM_CALL1(put_Strikethrough,a)
77 #define IFont_get_Weight(p,a)        ICOM_CALL1(get_Weight,a)
78 #define IFont_put_Weight(p,a)        ICOM_CALL1(put_Weight,a)
79 #define IFont_get_Charset(p,a)       ICOM_CALL1(get_Charset,a)
80 #define IFont_put_Charset(p,a)       ICOM_CALL1(put_Charset,a)
81 #define IFont_get_hFont(p,a)         ICOM_CALL1(get_hFont,a)
82 #define IFont_put_hFont(p,a)         ICOM_CALL1(put_hFont,a)
83 #define IFont_Clone(p,a)             ICOM_CALL1(Clone,a)
84 #define IFont_IsEqual(p,a)           ICOM_CALL1(IsEqual,a)
85 #define IFont_SetRatio(p,a,b)        ICOM_CALL2(SetRatio,a,b)
86 #define IFont_QueryTextMetrics(p,a)  ICOM_CALL1(QueryTextMetrics,a)
87 #define IFont_AddRefHfont(p,a)       ICOM_CALL1(AddRefHfont,a)
88 #define IFont_ReleaseHfont(p,a)      ICOM_CALL1(ReleaseHfont,a)
89 #define IFont_SetHdc(p,a)            ICOM_CALL1(SetHdc,a)
90
91 /*****************************************************************************
92  * IFont interface
93  */
94 #define ICOM_INTERFACE IFontDisp
95 #define IFontDisp_METHODS 
96 #define IFontDisp_IMETHODS \
97   IUnknown_IMETHODS \
98         IFontDisp_METHODS
99 ICOM_DEFINE(IFontDisp,IDispatch)
100 #undef ICOM_INTERFACE
101
102 /*** IUnknown methods ***/
103 #define IFontDisp_QueryInterface(p,a,b)  ICOM_CALL2(QueryInterface,p,a,b)
104 #define IFontDisp_AddRef(p)              ICOM_CALL (AddRef,p)
105 #define IFontDisp_Release(p)             ICOM_CALL (Release,p)
106 /*** IDispatch methods ***/
107 #define IFontDisp_GetTypeInfoCount(p,a)      ICOM_CALL1 (GetTypeInfoCount,p,a)
108 #define IFontDisp_GetTypeInfo(p,a,b,c)       ICOM_CALL3 (GetTypeInfo,p,b,c)
109 #define IFontDisp_GetIDsOfNames(p,a,b,c,d,e) ICOM_CALL5 (GetIDsOfNames,p,a,b,c,d,e)
110 #define IFontDisp_Invoke(p,a,b,c,d,e,f,g,h)  ICOM_CALL8 (Invoke,p,a,b,c,d,e,f,g,h)
111 /*** IFontDisp methods ***/
112
113 #ifdef __cplusplus
114 } /* extern "C" */
115 #endif /* defined(__cplusplus) */
116
117 #endif /* __WINE_WINE_OBJ_OLEFONT_H */
118
119