Commit b80388fa authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msxml3: Added XMLView class stub.

parent e562623a
......@@ -35,7 +35,8 @@ C_SRCS = \
xdr.c \
xmldoc.c \
xmlelem.c \
xmlparser.c
xmlparser.c \
xmlview.c
LEX_SRCS = xslpattern.l
......
......@@ -91,7 +91,9 @@ static const struct clsid_version_t clsid_versions_table[] =
{ &CLSID_SAXAttributes, MSXML_DEFAULT },
{ &CLSID_SAXAttributes30, MSXML3 },
{ &CLSID_SAXAttributes40, MSXML4 },
{ &CLSID_SAXAttributes60, MSXML6 }
{ &CLSID_SAXAttributes60, MSXML6 },
{ &CLSID_XMLView, MSXML_DEFAULT }
};
static MSXML_VERSION get_msxml_version(const GUID *clsid)
......@@ -281,6 +283,7 @@ static ClassFactory httpreqcf = { { &ClassFactoryVtbl }, XMLHTTPRequest_create }
static ClassFactory xsltemplatecf = { { &ClassFactoryVtbl }, XSLTemplate_create };
static ClassFactory mxnsmanagercf = { {&ClassFactoryVtbl }, MXNamespaceManager_create };
static ClassFactory xmlparsercf = { { &ClassFactoryVtbl }, XMLParser_create };
static ClassFactory xmlviewcf = { { &ClassFactoryVtbl }, XMLView_create };
/******************************************************************
* DllGetClassObject (MSXML3.@)
......@@ -371,6 +374,10 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID riid, void **ppv )
{
cf = &xmlparsercf.IClassFactory_iface;
}
else if( IsEqualCLSID( rclsid, &CLSID_XMLView ) )
{
cf = &xmlviewcf.IClassFactory_iface;
}
if ( !cf )
return CLASS_E_CLASSNOTAVAILABLE;
......
......@@ -459,6 +459,7 @@ extern HRESULT XSLTemplate_create(IUnknown*, void**) DECLSPEC_HIDDEN;
extern HRESULT MXWriter_create(MSXML_VERSION, IUnknown*, void**) DECLSPEC_HIDDEN;
extern HRESULT MXNamespaceManager_create(IUnknown*,void**) DECLSPEC_HIDDEN;
extern HRESULT XMLParser_create(IUnknown*,void**) DECLSPEC_HIDDEN;
extern HRESULT XMLView_create(IUnknown*,void**) DECLSPEC_HIDDEN;
static inline const CLSID* DOMDocument_version(MSXML_VERSION v)
{
......
......@@ -364,3 +364,18 @@ coclass XMLParser30
{
[default] interface IXMLParser;
};
[
helpstring("XML Document"),
threading(apartment),
uuid(48123bc4-99d9-11d1-a6b3-00c04fd91555),
progid("xmlfile"),
version(1.0)
]
coclass XMLView
{
interface IPersistMoniker;
interface IPersistHistory;
interface IOleCommandTarget;
interface IOleObject;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment