[Wine-patches] mshtml: Implement IMarkupServices interface

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Пт Дек 12 20:16:17 MSK 2008


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 08a3d6c347688590ebb3963b3eb1eef42f4d2e2e Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Fri, 12 Dec 2008 20:13:02 +0300
Subject: [PATCH] mshtml: Implement IMarkupServices interface

---
 dlls/mshtml/Makefile.in      |    1 +
 dlls/mshtml/htmldoc.c        |    4 ++++
 dlls/mshtml/mshtml_private.h |    3 +++
 3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/Makefile.in b/dlls/mshtml/Makefile.in
index 016a75f..5a26669 100644
--- a/dlls/mshtml/Makefile.in
+++ b/dlls/mshtml/Makefile.in
@@ -46,6 +46,7 @@ C_SRCS = \
 	install.c \
 	loadopts.c \
 	main.c \
+	markup.c \
 	navigate.c \
 	nsembed.c \
 	nsevents.c \
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 63e2f3b..5e205a4 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -138,6 +138,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
     }else if(IsEqualGUID(&IID_IProvideClassInfo, riid)) {
         TRACE("(%p)->(IID_IProvideClassInfo %p)\n", This, ppvObject);
         *ppvObject = CLASSINFO1(This);
+    }else if(IsEqualGUID(&IID_IMarkupServices, riid)) {
+        TRACE("(%p)->(IID_IMarkupServices %p)\n", This, ppvObject);
+        *ppvObject = MRKUPSRV(This);
     }else if(IsEqualGUID(&IID_IPersistPropertyBag, riid)) {
         TRACE("(%p)->(IID_IPersistPropertyBag %p) returning NULL\n", This, ppvObject);
         *ppvObject = PERPROPBAG(This);
@@ -1761,6 +1764,7 @@ static HRESULT alloc_doc(HTMLDocument **ret)
     HTMLDocument_Window_Init(doc);
     HTMLDocument_Service_Init(doc);
     HTMLDocument_Hlink_Init(doc);
+    HTMLDocument_Markup_Init(doc);
 
     ConnectionPointContainer_Init(&doc->cp_container, (IUnknown*)HTMLDOC(doc));
     ConnectionPoint_Init(&doc->cp_propnotif, &doc->cp_container, &IID_IPropertyNotifySink);
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
index 09d3e13..f8a0294 100644
--- a/dlls/mshtml/mshtml_private.h
+++ b/dlls/mshtml/mshtml_private.h
@@ -238,6 +238,7 @@ struct HTMLDocument {
     const IDispatchExVtbl                 *lpIDispatchExVtbl;
     const IProvideClassInfoVtbl           *lpInfoVtbl;
     const IPersistPropertyBagVtbl         *lpPersistPropertyBagVtbl;
+    const IMarkupServicesVtbl             *lpMarkupServicesVtbl;
 
     LONG ref;
 
@@ -459,6 +460,7 @@ typedef struct {
 
 #define DISPATCHEX(x)    ((IDispatchEx*) &(x)->lpIDispatchExVtbl)
 #define PERPROPBAG(x)    ((IPersistPropertyBag*) &(x)->lpPersistPropertyBagVtbl)
+#define MRKUPSRV(x)      ((IMarkupServices*)  &(x)->lpMarkupServicesVtbl)
 
 #define DEFINE_THIS2(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,ifc)))
 #define DEFINE_THIS(cls,ifc,iface) DEFINE_THIS2(cls,lp ## ifc ## Vtbl,iface)
@@ -483,6 +485,7 @@ void HTMLDocument_View_Init(HTMLDocument*);
 void HTMLDocument_Window_Init(HTMLDocument*);
 void HTMLDocument_Service_Init(HTMLDocument*);
 void HTMLDocument_Hlink_Init(HTMLDocument*);
+void HTMLDocument_Markup_Init(HTMLDocument*);
 
 HRESULT HTMLCurrentStyle_Create(HTMLElement*,IHTMLCurrentStyle**);
 
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches