Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
9a7b9710
Commit
9a7b9710
authored
19 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added IOleInPlaceSite stub implementation.
parent
00775829
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/shdocvw/client.c
+136
-1
136 additions, 1 deletion
dlls/shdocvw/client.c
dlls/shdocvw/shdocvw.h
+2
-0
2 additions, 0 deletions
dlls/shdocvw/shdocvw.h
with
138 additions
and
1 deletion
dlls/shdocvw/client.c
+
136
−
1
View file @
9a7b9710
...
...
@@ -35,6 +35,12 @@ static HRESULT WINAPI ClientSite_QueryInterface(IOleClientSite *iface, REFIID ri
}
else
if
(
IsEqualGUID
(
&
IID_IOleClientSite
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleClientSite %p)
\n
"
,
This
,
ppv
);
*
ppv
=
CLIENTSITE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleWindow
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleWindow %p)
\n
"
,
This
,
ppv
);
*
ppv
=
INPLACESITE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleInPlaceSite
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleInPlaceSite %p)
\n
"
,
This
,
ppv
);
*
ppv
=
INPLACESITE
(
This
);
}
if
(
*
ppv
)
{
...
...
@@ -116,7 +122,136 @@ static const IOleClientSiteVtbl OleClientSiteVtbl = {
ClientSite_RequestNewObjectLayout
};
#define INPLACESITE_THIS(iface) DEFINE_THIS(WebBrowser, OleInPlaceSite, iface)
static
HRESULT
WINAPI
InPlaceSite_QueryInterface
(
IOleInPlaceSite
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
return
IOleClientSite_QueryInterface
(
CLIENTSITE
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
InPlaceSite_AddRef
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
return
IOleClientSite_AddRef
(
CLIENTSITE
(
This
));
}
static
ULONG
WINAPI
InPlaceSite_Release
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
return
IOleClientSite_Release
(
CLIENTSITE
(
This
));
}
static
HRESULT
WINAPI
InPlaceSite_GetWindow
(
IOleInPlaceSite
*
iface
,
HWND
*
phwnd
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
phwnd
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_ContextSensitiveHelp
(
IOleInPlaceSite
*
iface
,
BOOL
fEnterMode
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
fEnterMode
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_CanInPlaceActivate
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_OnInPlaceActivate
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_OnUIActivate
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_GetWindowContext
(
IOleInPlaceSite
*
iface
,
IOleInPlaceFrame
**
ppFrame
,
IOleInPlaceUIWindow
**
ppDoc
,
LPRECT
lprcPosRect
,
LPRECT
lprcClipRect
,
LPOLEINPLACEFRAMEINFO
lpFrameInfo
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)->(%p %p %p %p %p)
\n
"
,
This
,
ppFrame
,
ppDoc
,
lprcPosRect
,
lprcClipRect
,
lpFrameInfo
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_Scroll
(
IOleInPlaceSite
*
iface
,
SIZE
scrollExtent
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)->({%ld %ld})
\n
"
,
This
,
scrollExtent
.
cx
,
scrollExtent
.
cy
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_OnUIDeactivate
(
IOleInPlaceSite
*
iface
,
BOOL
fUndoable
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
fUndoable
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_OnInPlaceDeactivate
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_DiscardUndoState
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_DeactivateAndUndo
(
IOleInPlaceSite
*
iface
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceSite_OnPosRectChange
(
IOleInPlaceSite
*
iface
,
LPCRECT
lprcPosRect
)
{
WebBrowser
*
This
=
INPLACESITE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
lprcPosRect
);
return
E_NOTIMPL
;
}
#undef INPLACESITE_THIS
static
const
IOleInPlaceSiteVtbl
OleInPlaceSiteVtbl
=
{
InPlaceSite_QueryInterface
,
InPlaceSite_AddRef
,
InPlaceSite_Release
,
InPlaceSite_GetWindow
,
InPlaceSite_ContextSensitiveHelp
,
InPlaceSite_CanInPlaceActivate
,
InPlaceSite_OnInPlaceActivate
,
InPlaceSite_OnUIActivate
,
InPlaceSite_GetWindowContext
,
InPlaceSite_Scroll
,
InPlaceSite_OnUIDeactivate
,
InPlaceSite_OnInPlaceDeactivate
,
InPlaceSite_DiscardUndoState
,
InPlaceSite_DeactivateAndUndo
,
InPlaceSite_OnPosRectChange
};
void
WebBrowser_ClientSite_Init
(
WebBrowser
*
This
)
{
This
->
lpOleClientSiteVtbl
=
&
OleClientSiteVtbl
;
This
->
lpOleClientSiteVtbl
=
&
OleClientSiteVtbl
;
This
->
lpOleInPlaceSiteVtbl
=
&
OleInPlaceSiteVtbl
;
}
This diff is collapsed.
Click to expand it.
dlls/shdocvw/shdocvw.h
+
2
−
0
View file @
9a7b9710
...
...
@@ -74,6 +74,7 @@ typedef struct {
/* Interfaces available for embeded document */
const
IOleClientSiteVtbl
*
lpOleClientSiteVtbl
;
const
IOleInPlaceSiteVtbl
*
lpOleInPlaceSiteVtbl
;
LONG
ref
;
...
...
@@ -96,6 +97,7 @@ typedef struct {
#define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
#define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
#define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
void
WebBrowser_OleObject_Init
(
WebBrowser
*
);
void
WebBrowser_ViewObject_Init
(
WebBrowser
*
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment