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
78b7286e
Commit
78b7286e
authored
May 23, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
May 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added stub implementation of IPersistStreamInit.
parent
5c932f96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
0 deletions
+84
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
persist.c
dlls/mshtml/persist.c
+79
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
78b7286e
...
...
@@ -110,6 +110,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
}
else
if
(
IsEqualGUID
(
&
IID_IConnectionPointContainer
,
riid
))
{
TRACE
(
"(%p)->(IID_IConnectionPointContainer %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
CONPTCONT
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
))
{
TRACE
(
"(%p)->(IID_IPersistStreamInit %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
PERSTRINIT
(
This
);
}
if
(
*
ppvObject
)
{
...
...
dlls/mshtml/mshtml_private.h
View file @
78b7286e
...
...
@@ -64,6 +64,7 @@ typedef struct {
const
IOleControlVtbl
*
lpOleControlVtbl
;
const
IHlinkTargetVtbl
*
lpHlinkTargetVtbl
;
const
IConnectionPointContainerVtbl
*
lpConnectionPointContainerVtbl
;
const
IPersistStreamInitVtbl
*
lpPersistStreamInitVtbl
;
LONG
ref
;
...
...
@@ -177,6 +178,7 @@ typedef struct {
#define STATUSCLB(x) ((IBindStatusCallback*) &(x)->lpBindStatusCallbackVtbl)
#define HLNKTARGET(x) ((IHlinkTarget*) &(x)->lpHlinkTargetVtbl)
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
#define NSWBCHROME(x) ((nsIWebBrowserChrome*) &(x)->lpWebBrowserChromeVtbl)
#define NSCML(x) ((nsIContextMenuListener*) &(x)->lpContextMenuListenerVtbl)
...
...
dlls/mshtml/persist.c
View file @
78b7286e
...
...
@@ -643,11 +643,90 @@ static const IPersistFileVtbl PersistFileVtbl = {
PersistFile_GetCurFile
};
#define PERSTRINIT_THIS(iface) DEFINE_THIS(HTMLDocument, PersistStreamInit, iface);
static
HRESULT
WINAPI
PersistStreamInit_QueryInterface
(
IPersistStreamInit
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
PersistStreamInit_AddRef
(
IPersistStreamInit
*
iface
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
ULONG
WINAPI
PersistStreamInit_Release
(
IPersistStreamInit
*
iface
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
HRESULT
WINAPI
PersistStreamInit_GetClassID
(
IPersistStreamInit
*
iface
,
CLSID
*
pClassID
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
return
IPersist_GetClassID
(
PERSIST
(
This
),
pClassID
);
}
static
HRESULT
WINAPI
PersistStreamInit_IsDirty
(
IPersistStreamInit
*
iface
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStreamInit_Load
(
IPersistStreamInit
*
iface
,
LPSTREAM
pStm
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pStm
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStreamInit_Save
(
IPersistStreamInit
*
iface
,
LPSTREAM
pStm
,
BOOL
fClearDirty
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
FIXME
(
"(%p)->(%p %x)
\n
"
,
This
,
pStm
,
fClearDirty
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStreamInit_GetSizeMax
(
IPersistStreamInit
*
iface
,
ULARGE_INTEGER
*
pcbSize
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pcbSize
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStreamInit_InitNew
(
IPersistStreamInit
*
iface
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
#undef PERSTRINIT_THIS
static
const
IPersistStreamInitVtbl
PersistStreamInitVtbl
=
{
PersistStreamInit_QueryInterface
,
PersistStreamInit_AddRef
,
PersistStreamInit_Release
,
PersistStreamInit_GetClassID
,
PersistStreamInit_IsDirty
,
PersistStreamInit_Load
,
PersistStreamInit_Save
,
PersistStreamInit_GetSizeMax
,
PersistStreamInit_InitNew
};
void
HTMLDocument_Persist_Init
(
HTMLDocument
*
This
)
{
This
->
lpPersistMonikerVtbl
=
&
PersistMonikerVtbl
;
This
->
lpPersistFileVtbl
=
&
PersistFileVtbl
;
This
->
lpMonikerPropVtbl
=
&
MonikerPropVtbl
;
This
->
lpPersistStreamInitVtbl
=
&
PersistStreamInitVtbl
;
This
->
status_callback
=
NULL
;
}
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