~ubuntu-branches/ubuntu/vivid/wine/vivid

« back to all changes in this revision

Viewing changes to dlls/mshtml/task.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2008-05-30 08:48:53 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20080530084853-eoabeo8m5ai49vb5
Tags: 1.0-rc3-1ubuntu1
* New upstream release
  - Bugfixes only due to feature freeze pending 1.0 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "winuser.h"
29
29
#include "ole2.h"
30
30
#include "mshtmcid.h"
 
31
#include "shlguid.h"
31
32
 
32
33
#include "wine/debug.h"
33
34
 
196
197
    }
197
198
}
198
199
 
 
200
/* Calls undocumented 69 cmd of CGID_Explorer */
 
201
static void call_explorer_69(HTMLDocument *doc)
 
202
{
 
203
    IOleCommandTarget *olecmd;
 
204
    VARIANT var;
 
205
    HRESULT hres;
 
206
 
 
207
    if(!doc->client)
 
208
        return;
 
209
 
 
210
    hres = IOleClientSite_QueryInterface(doc->client, &IID_IOleCommandTarget, (void**)&olecmd);
 
211
    if(FAILED(hres))
 
212
        return;
 
213
 
 
214
    VariantInit(&var);
 
215
    hres = IOleCommandTarget_Exec(olecmd, &CGID_Explorer, 69, 0, NULL, &var);
 
216
    IOleCommandTarget_Release(olecmd);
 
217
    if(SUCCEEDED(hres) && V_VT(&var) != VT_NULL)
 
218
        FIXME("handle result\n");
 
219
}
 
220
 
199
221
static void set_parsecomplete(HTMLDocument *doc)
200
222
{
201
223
    IOleCommandTarget *olecmd = NULL;
205
227
    if(doc->usermode == EDITMODE)
206
228
        init_editor(doc);
207
229
 
 
230
    call_explorer_69(doc);
208
231
    call_property_onchanged(&doc->cp_propnotif, 1005);
 
232
    call_explorer_69(doc);
209
233
 
210
234
    doc->readystate = READYSTATE_INTERACTIVE;
211
235
    call_property_onchanged(&doc->cp_propnotif, DISPID_READYSTATE);
226
250
        IOleCommandTarget_Exec(olecmd, NULL, OLECMDID_SETDOWNLOADSTATE, OLECMDEXECOPT_DONTPROMPTUSER,
227
251
                               &state, NULL);
228
252
 
 
253
        IOleCommandTarget_Exec(olecmd, &CGID_ShellDocView, 103, 0, NULL, NULL);
229
254
        IOleCommandTarget_Exec(olecmd, &CGID_MSHTML, IDM_PARSECOMPLETE, 0, NULL, NULL);
230
255
        IOleCommandTarget_Exec(olecmd, NULL, OLECMDID_HTTPEQUIV_DONE, 0, NULL, NULL);
231
256