Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenview.c
Go to the documentation of this file.
00001 /* 00002 * Copyright 2005 Jacek Caban 00003 * Copyright 2010 Ilya Shpigor 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00018 */ 00019 00020 #include "wine/debug.h" 00021 #include "shdocvw.h" 00022 00023 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw); 00024 00025 /********************************************************************** 00026 * Implement the IViewObject interface 00027 */ 00028 00029 #define VIEWOBJ_THIS(iface) DEFINE_THIS(WebBrowser, ViewObject, iface) 00030 00031 static HRESULT WINAPI ViewObject_QueryInterface(IViewObject2 *iface, REFIID riid, void **ppv) 00032 { 00033 WebBrowser *This = VIEWOBJ_THIS(iface); 00034 return IWebBrowser2_QueryInterface(WEBBROWSER(This), riid, ppv); 00035 } 00036 00037 static ULONG WINAPI ViewObject_AddRef(IViewObject2 *iface) 00038 { 00039 WebBrowser *This = VIEWOBJ_THIS(iface); 00040 return IWebBrowser2_AddRef(WEBBROWSER(This)); 00041 } 00042 00043 static ULONG WINAPI ViewObject_Release(IViewObject2 *iface) 00044 { 00045 WebBrowser *This = VIEWOBJ_THIS(iface); 00046 return IWebBrowser2_Release(WEBBROWSER(This)); 00047 } 00048 00049 static HRESULT WINAPI ViewObject_Draw(IViewObject2 *iface, DWORD dwDrawAspect, 00050 LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcTargetDev, 00051 HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, 00052 BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR), 00053 ULONG_PTR dwContinue) 00054 { 00055 WebBrowser *This = VIEWOBJ_THIS(iface); 00056 FIXME("(%p)->(%d %d %p %p %p %p %p %p %p %08lx)\n", This, dwDrawAspect, lindex, 00057 pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds, lprcWBounds, pfnContinue, 00058 dwContinue); 00059 return E_NOTIMPL; 00060 } 00061 00062 static HRESULT WINAPI ViewObject_GetColorSet(IViewObject2 *iface, DWORD dwAspect, 00063 LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hicTargetDev, 00064 LOGPALETTE **ppColorSet) 00065 { 00066 WebBrowser *This = VIEWOBJ_THIS(iface); 00067 FIXME("(%p)->(%d %d %p %p %p %p)\n", This, dwAspect, lindex, pvAspect, ptd, 00068 hicTargetDev, ppColorSet); 00069 return E_NOTIMPL; 00070 } 00071 00072 static HRESULT WINAPI ViewObject_Freeze(IViewObject2 *iface, DWORD dwDrawAspect, LONG lindex, 00073 void *pvAspect, DWORD *pdwFreeze) 00074 { 00075 WebBrowser *This = VIEWOBJ_THIS(iface); 00076 FIXME("(%p)->(%d %d %p %p)\n", This, dwDrawAspect, lindex, pvAspect, pdwFreeze); 00077 return E_NOTIMPL; 00078 } 00079 00080 static HRESULT WINAPI ViewObject_Unfreeze(IViewObject2 *iface, DWORD dwFreeze) 00081 { 00082 WebBrowser *This = VIEWOBJ_THIS(iface); 00083 FIXME("(%p)->(%d)\n", This, dwFreeze); 00084 return E_NOTIMPL; 00085 } 00086 00087 static HRESULT WINAPI ViewObject_SetAdvise(IViewObject2 *iface, DWORD aspects, DWORD advf, 00088 IAdviseSink *pAdvSink) 00089 { 00090 WebBrowser *This = VIEWOBJ_THIS(iface); 00091 FIXME("(%p)->(%d %08x %p)\n", This, aspects, advf, pAdvSink); 00092 return E_NOTIMPL; 00093 } 00094 00095 static HRESULT WINAPI ViewObject_GetAdvise(IViewObject2 *iface, DWORD *pAspects, 00096 DWORD *pAdvf, IAdviseSink **ppAdvSink) 00097 { 00098 WebBrowser *This = VIEWOBJ_THIS(iface); 00099 FIXME("(%p)->(%p %p %p)\n", This, pAspects, pAdvf, ppAdvSink); 00100 return E_NOTIMPL; 00101 } 00102 00103 static HRESULT WINAPI ViewObject_GetExtent(IViewObject2 *iface, DWORD dwAspect, LONG lindex, 00104 DVTARGETDEVICE *ptd, LPSIZEL lpsizel) 00105 { 00106 WebBrowser *This = VIEWOBJ_THIS(iface); 00107 FIXME("(%p)->(%d %d %p %p)\n", This, dwAspect, lindex, ptd, lpsizel); 00108 return E_NOTIMPL; 00109 } 00110 00111 static const IViewObject2Vtbl ViewObjectVtbl = { 00112 ViewObject_QueryInterface, 00113 ViewObject_AddRef, 00114 ViewObject_Release, 00115 ViewObject_Draw, 00116 ViewObject_GetColorSet, 00117 ViewObject_Freeze, 00118 ViewObject_Unfreeze, 00119 ViewObject_SetAdvise, 00120 ViewObject_GetAdvise, 00121 ViewObject_GetExtent 00122 }; 00123 00124 #undef VIEWOBJ_THIS 00125 00126 void WebBrowser_ViewObject_Init(WebBrowser *This) 00127 { 00128 This->lpViewObjectVtbl = &ViewObjectVtbl; 00129 } 00130 00131 /********************************************************************** 00132 * Implement the IDataObject interface 00133 */ 00134 00135 #define DATAOBJ_THIS(iface) DEFINE_THIS(WebBrowser, DataObject, iface) 00136 00137 static HRESULT WINAPI DataObject_QueryInterface(LPDATAOBJECT iface, REFIID riid, LPVOID * ppvObj) 00138 { 00139 WebBrowser *This = DATAOBJ_THIS(iface); 00140 return IWebBrowser2_QueryInterface(WEBBROWSER(This), riid, ppvObj); 00141 } 00142 00143 static ULONG WINAPI DataObject_AddRef(LPDATAOBJECT iface) 00144 { 00145 WebBrowser *This = DATAOBJ_THIS(iface); 00146 return IWebBrowser2_AddRef(WEBBROWSER(This)); 00147 } 00148 00149 static ULONG WINAPI DataObject_Release(LPDATAOBJECT iface) 00150 { 00151 WebBrowser *This = DATAOBJ_THIS(iface); 00152 return IWebBrowser2_Release(WEBBROWSER(This)); 00153 } 00154 00155 static HRESULT WINAPI DataObject_GetData(LPDATAOBJECT iface, LPFORMATETC pformatetcIn, STGMEDIUM *pmedium) 00156 { 00157 WebBrowser *This = DATAOBJ_THIS(iface); 00158 FIXME("(%p)->()\n", This); 00159 return E_NOTIMPL; 00160 } 00161 00162 static HRESULT WINAPI DataObject_GetDataHere(LPDATAOBJECT iface, LPFORMATETC pformatetc, STGMEDIUM *pmedium) 00163 { 00164 WebBrowser *This = DATAOBJ_THIS(iface); 00165 FIXME("(%p)->()\n", This); 00166 return E_NOTIMPL; 00167 } 00168 00169 static HRESULT WINAPI DataObject_QueryGetData(LPDATAOBJECT iface, LPFORMATETC pformatetc) 00170 { 00171 WebBrowser *This = DATAOBJ_THIS(iface); 00172 FIXME("(%p)->()\n", This); 00173 return E_NOTIMPL; 00174 } 00175 00176 static HRESULT WINAPI DataObject_GetCanonicalFormatEtc(LPDATAOBJECT iface, LPFORMATETC pformatectIn, LPFORMATETC pformatetcOut) 00177 { 00178 WebBrowser *This = DATAOBJ_THIS(iface); 00179 FIXME("(%p)->()\n", This); 00180 return E_NOTIMPL; 00181 } 00182 00183 static HRESULT WINAPI DataObject_SetData(LPDATAOBJECT iface, LPFORMATETC pformatetc, STGMEDIUM *pmedium, BOOL fRelease) 00184 { 00185 WebBrowser *This = DATAOBJ_THIS(iface); 00186 FIXME("(%p)->()\n", This); 00187 return E_NOTIMPL; 00188 } 00189 00190 static HRESULT WINAPI DataObject_EnumFormatEtc(LPDATAOBJECT iface, DWORD dwDirection, IEnumFORMATETC **ppenumFormatEtc) 00191 { 00192 WebBrowser *This = DATAOBJ_THIS(iface); 00193 FIXME("(%p)->()\n", This); 00194 return E_NOTIMPL; 00195 } 00196 00197 static HRESULT WINAPI DataObject_DAdvise(LPDATAOBJECT iface, FORMATETC *pformatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection) 00198 { 00199 WebBrowser *This = DATAOBJ_THIS(iface); 00200 FIXME("(%p)->()\n", This); 00201 return E_NOTIMPL; 00202 } 00203 00204 static HRESULT WINAPI DataObject_DUnadvise(LPDATAOBJECT iface, DWORD dwConnection) 00205 { 00206 WebBrowser *This = DATAOBJ_THIS(iface); 00207 FIXME("(%p)->()\n", This); 00208 return E_NOTIMPL; 00209 } 00210 00211 static HRESULT WINAPI DataObject_EnumDAdvise(LPDATAOBJECT iface, IEnumSTATDATA **ppenumAdvise) 00212 { 00213 WebBrowser *This = DATAOBJ_THIS(iface); 00214 FIXME("(%p)->()\n", This); 00215 return E_NOTIMPL; 00216 } 00217 00218 static const IDataObjectVtbl DataObjectVtbl = { 00219 DataObject_QueryInterface, 00220 DataObject_AddRef, 00221 DataObject_Release, 00222 DataObject_GetData, 00223 DataObject_GetDataHere, 00224 DataObject_QueryGetData, 00225 DataObject_GetCanonicalFormatEtc, 00226 DataObject_SetData, 00227 DataObject_EnumFormatEtc, 00228 DataObject_DAdvise, 00229 DataObject_DUnadvise, 00230 DataObject_EnumDAdvise 00231 }; 00232 00233 #undef DATAOBJ_THIS 00234 00235 void WebBrowser_DataObject_Init(WebBrowser *This) 00236 { 00237 This->lpDataObjectVtbl = &DataObjectVtbl; 00238 } Generated on Wed May 23 2012 04:20:16 for ReactOS by
1.7.6.1
|