Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bffa74a1
Commit
bffa74a1
authored
Dec 15, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added ViewObjectEx stub implementation.
parent
8eeb513b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
17 deletions
+66
-17
htmldoc.c
dlls/mshtml/htmldoc.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+4
-3
view.c
dlls/mshtml/view.c
+59
-14
No files found.
dlls/mshtml/htmldoc.c
View file @
bffa74a1
...
...
@@ -1697,6 +1697,9 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
}
else
if
(
IsEqualGUID
(
&
IID_IViewObject2
,
riid
))
{
TRACE
(
"(%p)->(IID_IViewObject2, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
VIEWOBJ2
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IViewObjectEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IViewObjectEx, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
VIEWOBJEX
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleWindow
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleWindow, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
OLEWIN
(
This
);
...
...
dlls/mshtml/mshtml_private.h
View file @
bffa74a1
...
...
@@ -314,7 +314,7 @@ struct HTMLDocument {
const
IOleDocumentVtbl
*
lpOleDocumentVtbl
;
const
IOleDocumentViewVtbl
*
lpOleDocumentViewVtbl
;
const
IOleInPlaceActiveObjectVtbl
*
lpOleInPlaceActiveObjectVtbl
;
const
IViewObject
2Vtbl
*
lpViewObject2
Vtbl
;
const
IViewObject
ExVtbl
*
lpViewObjectEx
Vtbl
;
const
IOleInPlaceObjectWindowlessVtbl
*
lpOleInPlaceObjectWindowlessVtbl
;
const
IServiceProviderVtbl
*
lpServiceProviderVtbl
;
const
IOleCommandTargetVtbl
*
lpOleCommandTargetVtbl
;
...
...
@@ -564,8 +564,9 @@ struct HTMLDocumentNode {
#define DOCVIEW(x) ((IOleDocumentView*) &(x)->lpOleDocumentViewVtbl)
#define OLEWIN(x) ((IOleWindow*) &(x)->lpOleInPlaceActiveObjectVtbl)
#define ACTOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
#define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObject2Vtbl)
#define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObject2Vtbl)
#define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectExVtbl)
#define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectExVtbl)
#define VIEWOBJEX(x) ((IViewObjectEx*) &(x)->lpViewObjectExVtbl)
#define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectWindowlessVtbl)
#define INPLACEWIN(x) ((IOleInPlaceObjectWindowless*) &(x)->lpOleInPlaceObjectWindowlessVtbl)
#define SERVPROV(x) ((IServiceProvider*) &(x)->lpServiceProviderVtbl)
...
...
dlls/mshtml/view.c
View file @
bffa74a1
...
...
@@ -751,27 +751,27 @@ static const IOleDocumentViewVtbl OleDocumentViewVtbl = {
* IViewObject implementation
*/
#define VIEWOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, ViewObject
2
, iface)
#define VIEWOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, ViewObject
Ex
, iface)
static
HRESULT
WINAPI
ViewObject_QueryInterface
(
IViewObject
2
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
static
HRESULT
WINAPI
ViewObject_QueryInterface
(
IViewObject
Ex
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
}
static
ULONG
WINAPI
ViewObject_AddRef
(
IViewObject
2
*
iface
)
static
ULONG
WINAPI
ViewObject_AddRef
(
IViewObject
Ex
*
iface
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
ULONG
WINAPI
ViewObject_Release
(
IViewObject
2
*
iface
)
static
ULONG
WINAPI
ViewObject_Release
(
IViewObject
Ex
*
iface
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
));
}
static
HRESULT
WINAPI
ViewObject_Draw
(
IViewObject
2
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
static
HRESULT
WINAPI
ViewObject_Draw
(
IViewObject
Ex
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
DVTARGETDEVICE
*
ptd
,
HDC
hdcTargetDev
,
HDC
hdcDraw
,
LPCRECTL
lprcBounds
,
LPCRECTL
lprcWBounds
,
BOOL
(
CALLBACK
*
pfnContinue
)(
ULONG_PTR
dwContinue
),
ULONG_PTR
dwContinue
)
{
...
...
@@ -781,7 +781,7 @@ static HRESULT WINAPI ViewObject_Draw(IViewObject2 *iface, DWORD dwDrawAspect, L
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetColorSet
(
IViewObject
2
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
static
HRESULT
WINAPI
ViewObject_GetColorSet
(
IViewObject
Ex
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
DVTARGETDEVICE
*
ptd
,
HDC
hicTargetDev
,
LOGPALETTE
**
ppColorSet
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
...
...
@@ -789,7 +789,7 @@ static HRESULT WINAPI ViewObject_GetColorSet(IViewObject2 *iface, DWORD dwDrawAs
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_Freeze
(
IViewObject
2
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
static
HRESULT
WINAPI
ViewObject_Freeze
(
IViewObject
Ex
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
DWORD
*
pdwFreeze
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
...
...
@@ -797,28 +797,28 @@ static HRESULT WINAPI ViewObject_Freeze(IViewObject2 *iface, DWORD dwDrawAspect,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_Unfreeze
(
IViewObject
2
*
iface
,
DWORD
dwFreeze
)
static
HRESULT
WINAPI
ViewObject_Unfreeze
(
IViewObject
Ex
*
iface
,
DWORD
dwFreeze
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
dwFreeze
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_SetAdvise
(
IViewObject
2
*
iface
,
DWORD
aspects
,
DWORD
advf
,
IAdviseSink
*
pAdvSink
)
static
HRESULT
WINAPI
ViewObject_SetAdvise
(
IViewObject
Ex
*
iface
,
DWORD
aspects
,
DWORD
advf
,
IAdviseSink
*
pAdvSink
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %d %p)
\n
"
,
This
,
aspects
,
advf
,
pAdvSink
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetAdvise
(
IViewObject
2
*
iface
,
DWORD
*
pAspects
,
DWORD
*
pAdvf
,
IAdviseSink
**
ppAdvSink
)
static
HRESULT
WINAPI
ViewObject_GetAdvise
(
IViewObject
Ex
*
iface
,
DWORD
*
pAspects
,
DWORD
*
pAdvf
,
IAdviseSink
**
ppAdvSink
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%p %p %p)
\n
"
,
This
,
pAspects
,
pAdvf
,
ppAdvSink
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetExtent
(
IViewObject
2
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
static
HRESULT
WINAPI
ViewObject_GetExtent
(
IViewObject
Ex
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
DVTARGETDEVICE
*
ptd
,
LPSIZEL
lpsizel
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
...
...
@@ -826,9 +826,49 @@ static HRESULT WINAPI ViewObject_GetExtent(IViewObject2 *iface, DWORD dwDrawAspe
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetRect
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LPRECTL
pRect
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %p)
\n
"
,
This
,
dwAspect
,
pRect
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetViewStatus
(
IViewObjectEx
*
iface
,
DWORD
*
pdwStatus
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pdwStatus
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_QueryHitPoint
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LPCRECT
pRectBounds
,
POINT
ptlLoc
,
LONG
lCloseHint
,
DWORD
*
pHitResult
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %p (%d %d) %d %p)
\n
"
,
This
,
dwAspect
,
pRectBounds
,
ptlLoc
.
x
,
ptlLoc
.
y
,
lCloseHint
,
pHitResult
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_QueryHitRect
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LPCRECT
pRectBounds
,
LPCRECT
pRectLoc
,
LONG
lCloseHint
,
DWORD
*
pHitResult
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %p %p %d %p)
\n
"
,
This
,
dwAspect
,
pRectBounds
,
pRectLoc
,
lCloseHint
,
pHitResult
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetNaturalExtent
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LONG
lindex
,
DVTARGETDEVICE
*
ptd
,
HDC
hicTargetDev
,
DVEXTENTINFO
*
pExtentInfo
,
LPSIZEL
pSizel
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %d %p %p %p %p
\n
"
,
This
,
dwAspect
,
lindex
,
ptd
,
hicTargetDev
,
pExtentInfo
,
pSizel
);
return
E_NOTIMPL
;
}
#undef VIEWOBJ_THIS
static
const
IViewObject
2
Vtbl
ViewObjectVtbl
=
{
static
const
IViewObject
Ex
Vtbl
ViewObjectVtbl
=
{
ViewObject_QueryInterface
,
ViewObject_AddRef
,
ViewObject_Release
,
...
...
@@ -838,11 +878,16 @@ static const IViewObject2Vtbl ViewObjectVtbl = {
ViewObject_Unfreeze
,
ViewObject_SetAdvise
,
ViewObject_GetAdvise
,
ViewObject_GetExtent
ViewObject_GetExtent
,
ViewObject_GetRect
,
ViewObject_GetViewStatus
,
ViewObject_QueryHitPoint
,
ViewObject_QueryHitRect
,
ViewObject_GetNaturalExtent
};
void
HTMLDocument_View_Init
(
HTMLDocument
*
This
)
{
This
->
lpOleDocumentViewVtbl
=
&
OleDocumentViewVtbl
;
This
->
lpViewObject
2
Vtbl
=
&
ViewObjectVtbl
;
This
->
lpViewObject
Ex
Vtbl
=
&
ViewObjectVtbl
;
}
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