Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
461a0102
Commit
461a0102
authored
Feb 08, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added IHlinkFrame stub implementation.
parent
5d854158
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
0 deletions
+113
-0
Makefile.in
dlls/shdocvw/Makefile.in
+1
-0
navigate.c
dlls/shdocvw/navigate.c
+104
-0
shdocvw.h
dlls/shdocvw/shdocvw.h
+4
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+4
-0
No files found.
dlls/shdocvw/Makefile.in
View file @
461a0102
...
...
@@ -16,6 +16,7 @@ C_SRCS = \
events.c
\
factory.c
\
frame.c
\
navigate.c
\
oleobject.c
\
persist.c
\
regsvr.c
\
...
...
dlls/shdocvw/navigate.c
0 → 100644
View file @
461a0102
/*
* Copyright 2005 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "wine/debug.h"
#include "wine/unicode.h"
#include "shdocvw.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
shdocvw
);
#define HLINKFRAME_THIS(iface) DEFINE_THIS(WebBrowser, HlinkFrame, iface)
static
HRESULT
WINAPI
HlinkFrame_QueryInterface
(
IHlinkFrame
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
return
IWebBrowser2_QueryInterface
(
WEBBROWSER2
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
HlinkFrame_AddRef
(
IHlinkFrame
*
iface
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
return
IWebBrowser2_AddRef
(
WEBBROWSER2
(
This
));
}
static
ULONG
WINAPI
HlinkFrame_Release
(
IHlinkFrame
*
iface
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
return
IWebBrowser2_Release
(
WEBBROWSER2
(
This
));
}
static
HRESULT
WINAPI
HlinkFrame_SetBrowseContext
(
IHlinkFrame
*
iface
,
IHlinkBrowseContext
*
pihlbc
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pihlbc
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HlinkFrame_GetBrowseContext
(
IHlinkFrame
*
iface
,
IHlinkBrowseContext
**
ppihlbc
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppihlbc
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HlinkFrame_Navigate
(
IHlinkFrame
*
iface
,
DWORD
grfHLNF
,
LPBC
pbc
,
IBindStatusCallback
*
pibsc
,
IHlink
*
pihlNavigate
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
FIXME
(
"(%p)->(%08lx %p %p %p)
\n
"
,
This
,
grfHLNF
,
pbc
,
pibsc
,
pihlNavigate
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HlinkFrame_OnNavigate
(
IHlinkFrame
*
iface
,
DWORD
grfHLNF
,
IMoniker
*
pimkTarget
,
LPCWSTR
pwzLocation
,
LPCWSTR
pwzFriendlyName
,
DWORD
dwreserved
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
FIXME
(
"(%p)->(%08lx %p %s %s %ld)
\n
"
,
This
,
grfHLNF
,
pimkTarget
,
debugstr_w
(
pwzLocation
),
debugstr_w
(
pwzFriendlyName
),
dwreserved
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HlinkFrame_UpdateHlink
(
IHlinkFrame
*
iface
,
ULONG
uHLID
,
IMoniker
*
pimkTarget
,
LPCWSTR
pwzLocation
,
LPCWSTR
pwzFriendlyName
)
{
WebBrowser
*
This
=
HLINKFRAME_THIS
(
iface
);
FIXME
(
"(%p)->(%lu %p %s %s)
\n
"
,
This
,
uHLID
,
pimkTarget
,
debugstr_w
(
pwzLocation
),
debugstr_w
(
pwzFriendlyName
));
return
E_NOTIMPL
;
}
#undef HLINKFRAME_THIS
static
const
IHlinkFrameVtbl
HlinkFrameVtbl
=
{
HlinkFrame_QueryInterface
,
HlinkFrame_AddRef
,
HlinkFrame_Release
,
HlinkFrame_SetBrowseContext
,
HlinkFrame_GetBrowseContext
,
HlinkFrame_Navigate
,
HlinkFrame_OnNavigate
,
HlinkFrame_UpdateHlink
};
void
WebBrowser_HlinkFrame_Init
(
WebBrowser
*
This
)
{
This
->
lpHlinkFrameVtbl
=
&
HlinkFrameVtbl
;
}
dlls/shdocvw/shdocvw.h
View file @
461a0102
...
...
@@ -37,6 +37,7 @@
#include "shlobj.h"
#include "exdisp.h"
#include "mshtmhst.h"
#include "hlink.h"
/**********************************************************************
* IClassFactory declaration for SHDOCVW.DLL
...
...
@@ -76,6 +77,7 @@ typedef struct {
const
IViewObject2Vtbl
*
lpViewObjectVtbl
;
const
IOleInPlaceActiveObjectVtbl
*
lpOleInPlaceActiveObjectVtbl
;
const
IOleCommandTargetVtbl
*
lpWBOleCommandTargetVtbl
;
const
IHlinkFrameVtbl
*
lpHlinkFrameVtbl
;
/* Interfaces available for embeded document */
...
...
@@ -134,6 +136,7 @@ typedef struct {
#define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
#define ACTIVEOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
#define WBOLECMD(x) ((IOleCommandTarget*) &(x)->lpWBOleCommandTargetVtbl)
#define HLINKFRAME(x) ((IHlinkFrame*) &(x)->lpHlinkFrameVtbl)
#define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
#define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
...
...
@@ -150,6 +153,7 @@ void WebBrowser_ViewObject_Init(WebBrowser*);
void
WebBrowser_Persist_Init
(
WebBrowser
*
);
void
WebBrowser_ClassInfo_Init
(
WebBrowser
*
);
void
WebBrowser_Events_Init
(
WebBrowser
*
);
void
WebBrowser_HlinkFrame_Init
(
WebBrowser
*
);
void
WebBrowser_ClientSite_Init
(
WebBrowser
*
);
void
WebBrowser_DocHost_Init
(
WebBrowser
*
);
...
...
dlls/shdocvw/webbrowser.c
View file @
461a0102
...
...
@@ -97,6 +97,9 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}
else
if
(
IsEqualGUID
(
&
IID_IOleCommandTarget
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleCommandTarget %p)
\n
"
,
This
,
ppv
);
*
ppv
=
WBOLECMD
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IHlinkFrame
,
riid
))
{
TRACE
(
"(%p)->(IID_IHlinkFrame %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HLINKFRAME
(
This
);
}
if
(
*
ppv
)
{
...
...
@@ -807,6 +810,7 @@ HRESULT WebBrowser_Create(IUnknown *pOuter, REFIID riid, void **ppv)
WebBrowser_ClientSite_Init
(
ret
);
WebBrowser_DocHost_Init
(
ret
);
WebBrowser_Frame_Init
(
ret
);
WebBrowser_HlinkFrame_Init
(
ret
);
hres
=
IWebBrowser_QueryInterface
(
WEBBROWSER
(
ret
),
riid
,
ppv
);
if
(
SUCCEEDED
(
hres
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment