Removed more code at Hidenori's request.
[wine] / include / wine / obj_webbrowser.h
1 /*
2  * Defines the COM interfaces and APIs related to the IE Web browser control
3  *
4  * Copyright 2001 John R. Sheets (for CodeWeavers)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_WINE_OBJ_WEBBROWSER_H
22 #define __WINE_WINE_OBJ_WEBBROWSER_H
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* defined(__cplusplus) */
27
28
29 /*****************************************************************************
30  * Predeclare the interfaces and class IDs
31  */
32 DEFINE_GUID(IID_IWebBrowser, 0xeab22ac1, 0x30c1, 0x11cf, 0xa7, 0xeb, 0x00, 0x00, 0xc0, 0x5b, 0xae, 0x0b);
33 typedef struct IWebBrowser IWebBrowser, *LPWEBBROWSER;
34
35 DEFINE_GUID(CLSID_WebBrowser, 0x8856f961, 0x340a, 0x11d0, 0xa9, 0x6b, 0x00, 0xc0, 0x4f, 0xd7, 0x05, 0xa2);
36
37 /*****************************************************************************
38  * IWebBrowser interface
39  */
40 #define ICOM_INTERFACE IWebBrowser
41 #define IWebBrowser_METHODS \
42         ICOM_METHOD(HRESULT,GoBack) \
43         ICOM_METHOD(HRESULT,GoForward) \
44         ICOM_METHOD(HRESULT,GoHome) \
45         ICOM_METHOD(HRESULT,GoSearch) \
46         ICOM_METHOD5(HRESULT,Navigate, BSTR*,URL, VARIANT*,Flags, VARIANT*,TargetFrameName, \
47                                        VARIANT*,PostData, VARIANT*,Headers) \
48         ICOM_METHOD(HRESULT,Refresh) \
49         ICOM_METHOD1(HRESULT,Refresh2, VARIANT*,Level) \
50         ICOM_METHOD(HRESULT,Stop) \
51         ICOM_METHOD1(HRESULT,get_Application, void**,ppDisp) \
52         ICOM_METHOD1(HRESULT,get_Parent, void**,ppDisp) \
53         ICOM_METHOD1(HRESULT,get_Container, void**,ppDisp) \
54         ICOM_METHOD1(HRESULT,get_Document, void**,ppDisp) \
55         ICOM_METHOD1(HRESULT,get_TopLevelContainer, VARIANT*,pBool) \
56         ICOM_METHOD1(HRESULT,get_Type, BSTR*,Type) \
57         ICOM_METHOD1(HRESULT,get_Left, long*,pl) \
58         ICOM_METHOD1(HRESULT,put_Left, long,Left) \
59         ICOM_METHOD1(HRESULT,get_Top, long*,pl) \
60         ICOM_METHOD1(HRESULT,put_Top, long,Top) \
61         ICOM_METHOD1(HRESULT,get_Width, long*,pl) \
62         ICOM_METHOD1(HRESULT,put_Width, long,Width) \
63         ICOM_METHOD1(HRESULT,get_Height, long*,pl) \
64         ICOM_METHOD1(HRESULT,put_Height, long,Height) \
65         ICOM_METHOD1(HRESULT,get_LocationName, BSTR*,LocationName) \
66         ICOM_METHOD1(HRESULT,get_LocationURL, BSTR*,LocationURL) \
67         ICOM_METHOD1(HRESULT,get_Busy, VARIANT*,pBool)
68 #define IWebBrowser_IMETHODS \
69         IDispatch_METHODS \
70         IWebBrowser_METHODS
71 ICOM_DEFINE(IWebBrowser,IDispatch)
72 #undef ICOM_INTERFACE
73
74 /*** IUnknown methods ***/
75 #define IWebBrowser_QueryInterface(p,a,b)      ICOM_CALL2(QueryInterface,p,a,b)
76 #define IWebBrowser_AddRef(p)                  ICOM_CALL (AddRef,p)
77 #define IWebBrowser_Release(p)                 ICOM_CALL (Release,p)
78 /*** IDispatch methods ***/
79 #define IWebBrowser_GetTypeInfoCount(p,a)      ICOM_CALL1 (GetTypeInfoCount,p,a)
80 #define IWebBrowser_GetTypeInfo(p,a,b,c)       ICOM_CALL3 (GetTypeInfo,p,a,b,c)
81 #define IWebBrowser_GetIDsOfNames(p,a,b,c,d,e) ICOM_CALL5 (GetIDsOfNames,p,a,b,c,d,e)
82 #define IWebBrowser_Invoke(p,a,b,c,d,e,f,g,h)  ICOM_CALL8 (Invoke,p,a,b,c,d,e,f,g,h)
83 /*** IWebBrowserContainer methods ***/
84 #define IWebBrowser_GoBack(p,a)      ICOM_CALL1(GoBack,p,a)
85 #define IWebBrowser_GoForward(p,a)      ICOM_CALL1(GoForward,p,a)
86 #define IWebBrowser_GoHome(p,a)      ICOM_CALL1(GoHome,p,a)
87 #define IWebBrowser_GoSearch(p,a)      ICOM_CALL1(GoSearch,p,a)
88 #define IWebBrowser_Navigate(p,a)      ICOM_CALL1(Navigate,p,a)
89 #define IWebBrowser_Refresh(p,a)      ICOM_CALL1(Refresh,p,a)
90 #define IWebBrowser_Refresh2(p,a)      ICOM_CALL1(Refresh2,p,a)
91 #define IWebBrowser_Stop(p,a)      ICOM_CALL1(Stop,p,a)
92 #define IWebBrowser_get_Application(p,a)      ICOM_CALL1(get_Application,p,a)
93 #define IWebBrowser_get_Parent(p,a)      ICOM_CALL1(get_Parent,p,a)
94 #define IWebBrowser_get_Container(p,a)      ICOM_CALL1(get_Container,p,a)
95 #define IWebBrowser_get_Document(p,a)      ICOM_CALL1(get_Document,p,a)
96 #define IWebBrowser_get_TopLevelContainer(p,a)      ICOM_CALL1(get_TopLevelContainer,p,a)
97 #define IWebBrowser_get_Type(p,a)      ICOM_CALL1(get_Type,p,a)
98 #define IWebBrowser_get_Left(p,a)      ICOM_CALL1(get_Left,p,a)
99 #define IWebBrowser_put_Left(p,a)      ICOM_CALL1(put_Left,p,a)
100 #define IWebBrowser_get_Top(p,a)      ICOM_CALL1(get_Top,p,a)
101 #define IWebBrowser_put_Top(p,a)      ICOM_CALL1(put_Top,p,a)
102 #define IWebBrowser_get_Width(p,a)      ICOM_CALL1(get_Width,p,a)
103 #define IWebBrowser_put_Width(p,a)      ICOM_CALL1(put_Width,p,a)
104 #define IWebBrowser_get_Height(p,a)      ICOM_CALL1(get_Height,p,a)
105 #define IWebBrowser_put_Height(p,a)      ICOM_CALL1(put_Height,p,a)
106 #define IWebBrowser_get_LocationName(p,a)      ICOM_CALL1(get_LocationName,p,a)
107 #define IWebBrowser_get_LocationURL(p,a)      ICOM_CALL1(get_LocationURL,p,a)
108 #define IWebBrowser_get_Busy(p,a)      ICOM_CALL1(get_Busy,p,a)
109
110 #ifdef __cplusplus
111 } /* extern "C" */
112 #endif /* defined(__cplusplus) */
113
114 #endif /* __WINE_WINE_OBJ_WEBBROWSER_H */