2 * Implementation of IPersist interfaces for IE Web Browser control
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
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.
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.
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
21 #include "wine/debug.h"
24 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
26 /**********************************************************************
27 * Implement the IPersistStorage interface
30 static HRESULT WINAPI WBPS_QueryInterface(LPPERSISTSTORAGE iface,
31 REFIID riid, LPVOID *ppobj)
33 ICOM_THIS(IPersistStorageImpl, iface);
35 FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
39 static ULONG WINAPI WBPS_AddRef(LPPERSISTSTORAGE iface)
41 ICOM_THIS(IPersistStorageImpl, iface);
47 static ULONG WINAPI WBPS_Release(LPPERSISTSTORAGE iface)
49 ICOM_THIS(IPersistStorageImpl, iface);
51 /* static class, won't be freed */
56 static HRESULT WINAPI WBPS_GetClassID(LPPERSISTSTORAGE iface, CLSID *pClassID)
58 FIXME("stub: CLSID = %s\n", debugstr_guid(pClassID));
62 static HRESULT WINAPI WBPS_IsDirty(LPPERSISTSTORAGE iface)
68 static HRESULT WINAPI WBPS_InitNew(LPPERSISTSTORAGE iface, LPSTORAGE pStg)
70 FIXME("stub: LPSTORAGE = %p\n", pStg);
74 static HRESULT WINAPI WBPS_Load(LPPERSISTSTORAGE iface, LPSTORAGE pStg)
76 FIXME("stub: LPSTORAGE = %p\n", pStg);
80 static HRESULT WINAPI WBPS_Save(LPPERSISTSTORAGE iface, LPSTORAGE pStg,
83 FIXME("stub: LPSTORAGE = %p, fSameAsLoad = %d\n", pStg, fSameAsLoad);
87 static HRESULT WINAPI WBPS_SaveCompleted(LPPERSISTSTORAGE iface, LPSTORAGE pStgNew)
89 FIXME("stub: LPSTORAGE = %p\n", pStgNew);
93 /**********************************************************************
94 * IPersistStorage virtual function table for IE Web Browser component
97 static ICOM_VTABLE(IPersistStorage) WBPS_Vtbl =
99 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
111 IPersistStorageImpl SHDOCVW_PersistStorage = { &WBPS_Vtbl, 1 };
114 /**********************************************************************
115 * Implement the IPersistStreamInit interface
118 static HRESULT WINAPI WBPSI_QueryInterface(LPPERSISTSTREAMINIT iface,
119 REFIID riid, LPVOID *ppobj)
121 ICOM_THIS(IPersistStreamInitImpl, iface);
123 FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
124 return E_NOINTERFACE;
127 static ULONG WINAPI WBPSI_AddRef(LPPERSISTSTREAMINIT iface)
129 ICOM_THIS(IPersistStreamInitImpl, iface);
132 return ++(This->ref);
135 static ULONG WINAPI WBPSI_Release(LPPERSISTSTREAMINIT iface)
137 ICOM_THIS(IPersistStreamInitImpl, iface);
139 /* static class, won't be freed */
141 return --(This->ref);
144 static HRESULT WINAPI WBPSI_GetClassID(LPPERSISTSTREAMINIT iface, CLSID *pClassID)
146 FIXME("stub: CLSID = %s\n", debugstr_guid(pClassID));
150 static HRESULT WINAPI WBPSI_IsDirty(LPPERSISTSTREAMINIT iface)
156 static HRESULT WINAPI WBPSI_Load(LPPERSISTSTREAMINIT iface, LPSTREAM pStg)
158 FIXME("stub: LPSTORAGE = %p\n", pStg);
162 static HRESULT WINAPI WBPSI_Save(LPPERSISTSTREAMINIT iface, LPSTREAM pStg,
165 FIXME("stub: LPSTORAGE = %p, fSameAsLoad = %d\n", pStg, fSameAsLoad);
169 static HRESULT WINAPI WBPSI_GetSizeMax(LPPERSISTSTREAMINIT iface,
170 ULARGE_INTEGER *pcbSize)
172 FIXME("stub: ULARGE_INTEGER = %p\n", pcbSize);
176 static HRESULT WINAPI WBPSI_InitNew(LPPERSISTSTREAMINIT iface)
182 /**********************************************************************
183 * IPersistStreamInit virtual function table for IE Web Browser component
186 static ICOM_VTABLE(IPersistStreamInit) WBPSI_Vtbl =
188 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
189 WBPSI_QueryInterface,
200 IPersistStreamInitImpl SHDOCVW_PersistStreamInit = { &WBPSI_Vtbl, 1 };