2 * Copyright 2005 Jacek Caban
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 #define NONAMELESSUNION
26 #define NONAMELESSSTRUCT
35 #include "wine/debug.h"
36 #include "wine/unicode.h"
38 #include "mshtml_private.h"
39 #include "htmlevent.h"
42 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
49 } download_proc_task_t;
51 static BOOL use_gecko_script(LPCWSTR url)
53 static const WCHAR fileW[] = {'f','i','l','e',':'};
54 static const WCHAR aboutW[] = {'a','b','o','u','t',':'};
55 static const WCHAR resW[] = {'r','e','s',':'};
57 return strncmpiW(fileW, url, sizeof(fileW)/sizeof(WCHAR))
58 && strncmpiW(aboutW, url, sizeof(aboutW)/sizeof(WCHAR))
59 && strncmpiW(resW, url, sizeof(resW)/sizeof(WCHAR));
62 void set_current_mon(HTMLWindow *This, IMoniker *mon)
67 IMoniker_Release(This->mon);
72 CoTaskMemFree(This->url);
82 hres = IMoniker_GetDisplayName(mon, NULL, NULL, &This->url);
84 WARN("GetDisplayName failed: %08x\n", hres);
86 set_script_mode(This, use_gecko_script(This->url) ? SCRIPTMODE_GECKO : SCRIPTMODE_ACTIVESCRIPT);
89 static void set_progress_proc(task_t *_task)
91 docobj_task_t *task = (docobj_task_t*)_task;
92 IOleCommandTarget *olecmd = NULL;
93 HTMLDocumentObj *doc = task->doc;
99 IOleClientSite_QueryInterface(doc->client, &IID_IOleCommandTarget, (void**)&olecmd);
102 VARIANT progress_max, progress;
104 V_VT(&progress_max) = VT_I4;
105 V_I4(&progress_max) = 0; /* FIXME */
106 IOleCommandTarget_Exec(olecmd, NULL, OLECMDID_SETPROGRESSMAX, OLECMDEXECOPT_DONTPROMPTUSER,
107 &progress_max, NULL);
109 V_VT(&progress) = VT_I4;
110 V_I4(&progress) = 0; /* FIXME */
111 IOleCommandTarget_Exec(olecmd, NULL, OLECMDID_SETPROGRESSPOS, OLECMDEXECOPT_DONTPROMPTUSER,
113 IOleCommandTarget_Release(olecmd);
116 if(doc->usermode == EDITMODE && doc->hostui) {
117 DOCHOSTUIINFO hostinfo;
119 memset(&hostinfo, 0, sizeof(DOCHOSTUIINFO));
120 hostinfo.cbSize = sizeof(DOCHOSTUIINFO);
121 hres = IDocHostUIHandler_GetHostInfo(doc->hostui, &hostinfo);
123 /* FIXME: use hostinfo */
124 TRACE("hostinfo = {%u %08x %08x %s %s}\n",
125 hostinfo.cbSize, hostinfo.dwFlags, hostinfo.dwDoubleClick,
126 debugstr_w(hostinfo.pchHostCss), debugstr_w(hostinfo.pchHostNS));
130 static void set_downloading_proc(task_t *_task)
132 download_proc_task_t *task = (download_proc_task_t*)_task;
133 HTMLDocumentObj *doc = task->doc;
134 IOleCommandTarget *olecmd;
137 TRACE("(%p)\n", doc);
139 set_statustext(doc, IDS_STATUS_DOWNLOADINGFROM, task->url);
140 CoTaskMemFree(task->url);
145 if(task->set_download) {
146 hres = IOleClientSite_QueryInterface(doc->client, &IID_IOleCommandTarget, (void**)&olecmd);
147 if(SUCCEEDED(hres)) {
153 IOleCommandTarget_Exec(olecmd, NULL, OLECMDID_SETDOWNLOADSTATE,
154 OLECMDEXECOPT_DONTPROMPTUSER, &var, NULL);
155 IOleCommandTarget_Release(olecmd);
158 doc->download_state = 1;
162 IAdviseSink_OnViewChange(doc->view_sink, DVASPECT_CONTENT, -1);
165 IDropTarget *drop_target = NULL;
167 hres = IDocHostUIHandler_GetDropTarget(doc->hostui, NULL /* FIXME */, &drop_target);
169 FIXME("Use IDropTarget\n");
170 IDropTarget_Release(drop_target);
175 HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, nsChannelBSC *async_bsc, BOOL set_download)
177 nsChannelBSC *bscallback;
179 download_proc_task_t *download_task;
184 hres = IMoniker_GetDisplayName(mon, pibc, NULL, &url);
186 WARN("GetDiaplayName failed: %08x\n", hres);
190 TRACE("got url: %s\n", debugstr_w(url));
192 if(This->doc_obj->client) {
193 VARIANT silent, offline;
195 hres = get_client_disp_property(This->doc_obj->client, DISPID_AMBIENT_SILENT, &silent);
196 if(SUCCEEDED(hres)) {
197 if(V_VT(&silent) != VT_BOOL)
198 WARN("V_VT(silent) = %d\n", V_VT(&silent));
199 else if(V_BOOL(&silent))
200 FIXME("silent == true\n");
203 hres = get_client_disp_property(This->doc_obj->client,
204 DISPID_AMBIENT_OFFLINEIFNOTCONNECTED, &offline);
205 if(SUCCEEDED(hres)) {
206 if(V_VT(&silent) != VT_BOOL)
207 WARN("V_VT(offline) = %d\n", V_VT(&silent));
208 else if(V_BOOL(&silent))
209 FIXME("offline == true\n");
213 if(This->window->mon) {
214 update_doc(This, UPDATE_TITLE|UPDATE_UI);
216 update_doc(This, UPDATE_TITLE);
217 set_current_mon(This->window, mon);
220 set_ready_state(This->window, READYSTATE_LOADING);
222 if(This->doc_obj->client) {
223 IOleCommandTarget *cmdtrg = NULL;
225 hres = IOleClientSite_QueryInterface(This->doc_obj->client, &IID_IOleCommandTarget,
227 if(SUCCEEDED(hres)) {
233 IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &var, NULL);
235 V_VT(&var) = VT_UNKNOWN;
236 V_UNKNOWN(&var) = (IUnknown*)HTMLWINDOW2(This->window);
237 V_VT(&out) = VT_EMPTY;
238 hres = IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 63, 0, &var, &out);
243 IOleCommandTarget_Release(cmdtrg);
247 hres = create_doc_uri(This->window, url, &nsuri);
252 bscallback = async_bsc;
254 hres = create_channelbsc(mon, NULL, NULL, 0, &bscallback);
260 hres = load_nsuri(This->window, nsuri, bscallback, LOAD_INITIAL_DOCUMENT_URI);
261 nsISupports_Release((nsISupports*)nsuri); /* FIXME */
263 set_window_bscallback(This->window, bscallback);
264 if(bscallback != async_bsc)
265 IUnknown_Release((IUnknown*)bscallback);
274 HTMLDocument_LockContainer(This->doc_obj, TRUE);
276 if(This->doc_obj->frame) {
277 task = heap_alloc(sizeof(docobj_task_t));
278 task->doc = This->doc_obj;
279 push_task(&task->header, set_progress_proc, This->doc_obj->basedoc.task_magic);
282 download_task = heap_alloc(sizeof(download_proc_task_t));
283 download_task->doc = This->doc_obj;
284 download_task->set_download = set_download;
285 download_task->url = url;
286 push_task(&download_task->header, set_downloading_proc, This->doc_obj->basedoc.task_magic);
291 void set_ready_state(HTMLWindow *window, READYSTATE readystate)
293 window->readystate = readystate;
295 if(window->doc_obj && window->doc_obj->basedoc.window == window)
296 call_property_onchanged(&window->doc_obj->basedoc.cp_propnotif, DISPID_READYSTATE);
298 fire_event(window->doc, EVENTID_READYSTATECHANGE, FALSE, window->doc->node.nsnode, NULL);
300 if(window->frame_element)
301 fire_event(window->frame_element->element.node.doc, EVENTID_READYSTATECHANGE,
302 TRUE, window->frame_element->element.node.nsnode, NULL);
305 static HRESULT get_doc_string(HTMLDocumentNode *This, char **str)
313 WARN("NULL nsdoc\n");
317 nsres = nsIDOMHTMLDocument_QueryInterface(This->nsdoc, &IID_nsIDOMNode, (void**)&nsnode);
318 if(NS_FAILED(nsres)) {
319 ERR("Could not get nsIDOMNode failed: %08x\n", nsres);
323 nsAString_Init(&nsstr, NULL);
324 nsnode_to_nsstring(nsnode, &nsstr);
325 nsIDOMNode_Release(nsnode);
327 nsAString_GetData(&nsstr, &strw);
328 TRACE("%s\n", debugstr_w(strw));
330 *str = heap_strdupWtoA(strw);
332 nsAString_Finish(&nsstr);
338 /**********************************************************
339 * IPersistMoniker implementation
342 #define PERSISTMON_THIS(iface) DEFINE_THIS(HTMLDocument, PersistMoniker, iface)
344 static HRESULT WINAPI PersistMoniker_QueryInterface(IPersistMoniker *iface, REFIID riid, void **ppv)
346 HTMLDocument *This = PERSISTMON_THIS(iface);
347 return htmldoc_query_interface(This, riid, ppv);
350 static ULONG WINAPI PersistMoniker_AddRef(IPersistMoniker *iface)
352 HTMLDocument *This = PERSISTMON_THIS(iface);
353 return htmldoc_addref(This);
356 static ULONG WINAPI PersistMoniker_Release(IPersistMoniker *iface)
358 HTMLDocument *This = PERSISTMON_THIS(iface);
359 return htmldoc_release(This);
362 static HRESULT WINAPI PersistMoniker_GetClassID(IPersistMoniker *iface, CLSID *pClassID)
364 HTMLDocument *This = PERSISTMON_THIS(iface);
365 return IPersist_GetClassID(PERSIST(This), pClassID);
368 static HRESULT WINAPI PersistMoniker_IsDirty(IPersistMoniker *iface)
370 HTMLDocument *This = PERSISTMON_THIS(iface);
372 TRACE("(%p)\n", This);
374 return IPersistStreamInit_IsDirty(PERSTRINIT(This));
377 static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAvailable,
378 IMoniker *pimkName, LPBC pibc, DWORD grfMode)
380 HTMLDocument *This = PERSISTMON_THIS(iface);
383 TRACE("(%p)->(%x %p %p %08x)\n", This, fFullyAvailable, pimkName, pibc, grfMode);
386 IUnknown *unk = NULL;
390 * "__PrecreatedObject"
391 * "BIND_CONTEXT_PARAM"
392 * "__HTMLLOADOPTIONS"
395 * "_ITransData_Object_"
399 IBindCtx_GetObjectParam(pibc, (LPOLESTR)SZ_HTML_CLIENTSITE_OBJECTPARAM, &unk);
401 IOleClientSite *client = NULL;
403 hres = IUnknown_QueryInterface(unk, &IID_IOleClientSite, (void**)&client);
404 if(SUCCEEDED(hres)) {
405 TRACE("Got client site %p\n", client);
406 IOleObject_SetClientSite(OLEOBJ(This), client);
407 IOleClientSite_Release(client);
410 IUnknown_Release(unk);
414 hres = set_moniker(This, pimkName, pibc, NULL, TRUE);
418 return start_binding(This->window, NULL, (BSCallback*)This->window->bscallback, pibc);
421 static HRESULT WINAPI PersistMoniker_Save(IPersistMoniker *iface, IMoniker *pimkName,
422 LPBC pbc, BOOL fRemember)
424 HTMLDocument *This = PERSISTMON_THIS(iface);
425 FIXME("(%p)->(%p %p %x)\n", This, pimkName, pbc, fRemember);
429 static HRESULT WINAPI PersistMoniker_SaveCompleted(IPersistMoniker *iface, IMoniker *pimkName, LPBC pibc)
431 HTMLDocument *This = PERSISTMON_THIS(iface);
432 FIXME("(%p)->(%p %p)\n", This, pimkName, pibc);
436 static HRESULT WINAPI PersistMoniker_GetCurMoniker(IPersistMoniker *iface, IMoniker **ppimkName)
438 HTMLDocument *This = PERSISTMON_THIS(iface);
440 TRACE("(%p)->(%p)\n", This, ppimkName);
442 if(!This->window || !This->window->mon)
445 IMoniker_AddRef(This->window->mon);
446 *ppimkName = This->window->mon;
450 static const IPersistMonikerVtbl PersistMonikerVtbl = {
451 PersistMoniker_QueryInterface,
452 PersistMoniker_AddRef,
453 PersistMoniker_Release,
454 PersistMoniker_GetClassID,
455 PersistMoniker_IsDirty,
458 PersistMoniker_SaveCompleted,
459 PersistMoniker_GetCurMoniker
462 /**********************************************************
463 * IMonikerProp implementation
466 #define MONPROP_THIS(iface) DEFINE_THIS(HTMLDocument, MonikerProp, iface)
468 static HRESULT WINAPI MonikerProp_QueryInterface(IMonikerProp *iface, REFIID riid, void **ppv)
470 HTMLDocument *This = MONPROP_THIS(iface);
471 return htmldoc_query_interface(This, riid, ppv);
474 static ULONG WINAPI MonikerProp_AddRef(IMonikerProp *iface)
476 HTMLDocument *This = MONPROP_THIS(iface);
477 return htmldoc_addref(This);
480 static ULONG WINAPI MonikerProp_Release(IMonikerProp *iface)
482 HTMLDocument *This = MONPROP_THIS(iface);
483 return htmldoc_release(This);
486 static HRESULT WINAPI MonikerProp_PutProperty(IMonikerProp *iface, MONIKERPROPERTY mkp, LPCWSTR val)
488 HTMLDocument *This = MONPROP_THIS(iface);
490 TRACE("(%p)->(%d %s)\n", This, mkp, debugstr_w(val));
494 heap_free(This->doc_obj->mime);
495 This->doc_obj->mime = heap_strdupW(val);
502 FIXME("mkp %d\n", mkp);
509 static const IMonikerPropVtbl MonikerPropVtbl = {
510 MonikerProp_QueryInterface,
513 MonikerProp_PutProperty
516 /**********************************************************
517 * IPersistFile implementation
520 #define PERSISTFILE_THIS(iface) DEFINE_THIS(HTMLDocument, PersistFile, iface)
522 static HRESULT WINAPI PersistFile_QueryInterface(IPersistFile *iface, REFIID riid, void **ppv)
524 HTMLDocument *This = PERSISTFILE_THIS(iface);
525 return htmldoc_query_interface(This, riid, ppv);
528 static ULONG WINAPI PersistFile_AddRef(IPersistFile *iface)
530 HTMLDocument *This = PERSISTFILE_THIS(iface);
531 return htmldoc_addref(This);
534 static ULONG WINAPI PersistFile_Release(IPersistFile *iface)
536 HTMLDocument *This = PERSISTFILE_THIS(iface);
537 return htmldoc_release(This);
540 static HRESULT WINAPI PersistFile_GetClassID(IPersistFile *iface, CLSID *pClassID)
542 HTMLDocument *This = PERSISTFILE_THIS(iface);
544 TRACE("(%p)->(%p)\n", This, pClassID);
549 *pClassID = CLSID_HTMLDocument;
553 static HRESULT WINAPI PersistFile_IsDirty(IPersistFile *iface)
555 HTMLDocument *This = PERSISTFILE_THIS(iface);
557 TRACE("(%p)\n", This);
559 return IPersistStreamInit_IsDirty(PERSTRINIT(This));
562 static HRESULT WINAPI PersistFile_Load(IPersistFile *iface, LPCOLESTR pszFileName, DWORD dwMode)
564 HTMLDocument *This = PERSISTFILE_THIS(iface);
565 FIXME("(%p)->(%s %08x)\n", This, debugstr_w(pszFileName), dwMode);
569 static HRESULT WINAPI PersistFile_Save(IPersistFile *iface, LPCOLESTR pszFileName, BOOL fRemember)
571 HTMLDocument *This = PERSISTFILE_THIS(iface);
577 TRACE("(%p)->(%s %x)\n", This, debugstr_w(pszFileName), fRemember);
579 file = CreateFileW(pszFileName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
580 FILE_ATTRIBUTE_NORMAL, NULL);
581 if(file == INVALID_HANDLE_VALUE) {
582 WARN("Could not create file: %u\n", GetLastError());
586 hres = get_doc_string(This->doc_node, &str);
588 WriteFile(file, str, strlen(str), &written, NULL);
594 static HRESULT WINAPI PersistFile_SaveCompleted(IPersistFile *iface, LPCOLESTR pszFileName)
596 HTMLDocument *This = PERSISTFILE_THIS(iface);
597 FIXME("(%p)->(%s)\n", This, debugstr_w(pszFileName));
601 static HRESULT WINAPI PersistFile_GetCurFile(IPersistFile *iface, LPOLESTR *pszFileName)
603 HTMLDocument *This = PERSISTFILE_THIS(iface);
604 FIXME("(%p)->(%p)\n", This, pszFileName);
608 static const IPersistFileVtbl PersistFileVtbl = {
609 PersistFile_QueryInterface,
612 PersistFile_GetClassID,
616 PersistFile_SaveCompleted,
617 PersistFile_GetCurFile
620 #define PERSTRINIT_THIS(iface) DEFINE_THIS(HTMLDocument, PersistStreamInit, iface)
622 static HRESULT WINAPI PersistStreamInit_QueryInterface(IPersistStreamInit *iface,
623 REFIID riid, void **ppv)
625 HTMLDocument *This = PERSTRINIT_THIS(iface);
626 return htmldoc_query_interface(This, riid, ppv);
629 static ULONG WINAPI PersistStreamInit_AddRef(IPersistStreamInit *iface)
631 HTMLDocument *This = PERSTRINIT_THIS(iface);
632 return htmldoc_addref(This);
635 static ULONG WINAPI PersistStreamInit_Release(IPersistStreamInit *iface)
637 HTMLDocument *This = PERSTRINIT_THIS(iface);
638 return htmldoc_release(This);
641 static HRESULT WINAPI PersistStreamInit_GetClassID(IPersistStreamInit *iface, CLSID *pClassID)
643 HTMLDocument *This = PERSTRINIT_THIS(iface);
644 return IPersist_GetClassID(PERSIST(This), pClassID);
647 static HRESULT WINAPI PersistStreamInit_IsDirty(IPersistStreamInit *iface)
649 HTMLDocument *This = PERSTRINIT_THIS(iface);
651 TRACE("(%p)\n", This);
653 if(This->doc_obj->usermode == EDITMODE)
654 return editor_is_dirty(This);
659 static HRESULT WINAPI PersistStreamInit_Load(IPersistStreamInit *iface, LPSTREAM pStm)
661 HTMLDocument *This = PERSTRINIT_THIS(iface);
665 static const WCHAR about_blankW[] = {'a','b','o','u','t',':','b','l','a','n','k',0};
667 TRACE("(%p)->(%p)\n", This, pStm);
669 hres = CreateURLMoniker(NULL, about_blankW, &mon);
671 WARN("CreateURLMoniker failed: %08x\n", hres);
675 hres = set_moniker(This, mon, NULL, NULL, TRUE);
676 IMoniker_Release(mon);
680 return channelbsc_load_stream(This->window->bscallback, pStm);
683 static HRESULT WINAPI PersistStreamInit_Save(IPersistStreamInit *iface, LPSTREAM pStm,
686 HTMLDocument *This = PERSTRINIT_THIS(iface);
691 TRACE("(%p)->(%p %x)\n", This, pStm, fClearDirty);
693 hres = get_doc_string(This->doc_node, &str);
697 hres = IStream_Write(pStm, str, strlen(str), &written);
699 FIXME("Write failed: %08x\n", hres);
704 set_dirty(This, VARIANT_FALSE);
709 static HRESULT WINAPI PersistStreamInit_GetSizeMax(IPersistStreamInit *iface,
710 ULARGE_INTEGER *pcbSize)
712 HTMLDocument *This = PERSTRINIT_THIS(iface);
713 FIXME("(%p)->(%p)\n", This, pcbSize);
717 static HRESULT WINAPI PersistStreamInit_InitNew(IPersistStreamInit *iface)
719 HTMLDocument *This = PERSTRINIT_THIS(iface);
723 static const WCHAR about_blankW[] = {'a','b','o','u','t',':','b','l','a','n','k',0};
725 TRACE("(%p)\n", This);
727 hres = CreateURLMoniker(NULL, about_blankW, &mon);
729 WARN("CreateURLMoniker failed: %08x\n", hres);
733 hres = set_moniker(This, mon, NULL, NULL, FALSE);
734 IMoniker_Release(mon);
738 return channelbsc_load_stream(This->window->bscallback, NULL);
741 #undef PERSTRINIT_THIS
743 static const IPersistStreamInitVtbl PersistStreamInitVtbl = {
744 PersistStreamInit_QueryInterface,
745 PersistStreamInit_AddRef,
746 PersistStreamInit_Release,
747 PersistStreamInit_GetClassID,
748 PersistStreamInit_IsDirty,
749 PersistStreamInit_Load,
750 PersistStreamInit_Save,
751 PersistStreamInit_GetSizeMax,
752 PersistStreamInit_InitNew
755 /**********************************************************
756 * IPersistHistory implementation
759 #define PERSISTHIST_THIS(iface) DEFINE_THIS(HTMLDocument, PersistHistory, iface)
761 static HRESULT WINAPI PersistHistory_QueryInterface(IPersistHistory *iface, REFIID riid, void **ppv)
763 HTMLDocument *This = PERSISTHIST_THIS(iface);
764 return htmldoc_query_interface(This, riid, ppv);
767 static ULONG WINAPI PersistHistory_AddRef(IPersistHistory *iface)
769 HTMLDocument *This = PERSISTHIST_THIS(iface);
770 return htmldoc_addref(This);
773 static ULONG WINAPI PersistHistory_Release(IPersistHistory *iface)
775 HTMLDocument *This = PERSISTHIST_THIS(iface);
776 return htmldoc_release(This);
779 static HRESULT WINAPI PersistHistory_GetClassID(IPersistHistory *iface, CLSID *pClassID)
781 HTMLDocument *This = PERSISTHIST_THIS(iface);
782 return IPersist_GetClassID(PERSIST(This), pClassID);
785 static HRESULT WINAPI PersistHistory_LoadHistory(IPersistHistory *iface, IStream *pStream, IBindCtx *pbc)
787 HTMLDocument *This = PERSISTHIST_THIS(iface);
788 FIXME("(%p)->(%p %p)\n", This, pStream, pbc);
792 static HRESULT WINAPI PersistHistory_SaveHistory(IPersistHistory *iface, IStream *pStream)
794 HTMLDocument *This = PERSISTHIST_THIS(iface);
795 FIXME("(%p)->(%p)\n", This, pStream);
799 static HRESULT WINAPI PersistHistory_SetPositionCookie(IPersistHistory *iface, DWORD dwPositioncookie)
801 HTMLDocument *This = PERSISTHIST_THIS(iface);
802 FIXME("(%p)->(%x)\n", This, dwPositioncookie);
806 static HRESULT WINAPI PersistHistory_GetPositionCookie(IPersistHistory *iface, DWORD *pdwPositioncookie)
808 HTMLDocument *This = PERSISTHIST_THIS(iface);
809 FIXME("(%p)->(%p)\n", This, pdwPositioncookie);
813 #undef PERSISTHIST_THIS
815 static const IPersistHistoryVtbl PersistHistoryVtbl = {
816 PersistHistory_QueryInterface,
817 PersistHistory_AddRef,
818 PersistHistory_Release,
819 PersistHistory_GetClassID,
820 PersistHistory_LoadHistory,
821 PersistHistory_SaveHistory,
822 PersistHistory_SetPositionCookie,
823 PersistHistory_GetPositionCookie
826 void HTMLDocument_Persist_Init(HTMLDocument *This)
828 This->lpPersistMonikerVtbl = &PersistMonikerVtbl;
829 This->lpPersistFileVtbl = &PersistFileVtbl;
830 This->lpMonikerPropVtbl = &MonikerPropVtbl;
831 This->lpPersistStreamInitVtbl = &PersistStreamInitVtbl;
832 This->lpPersistHistoryVtbl = &PersistHistoryVtbl;