summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/HTMLParserMS.h
blob: 2a2673e7205e9391626ed2b7f4534fcac92a5994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __3c99e3f7_ecd9_4d9b_8f86_fe293c5fc8e6_HTMLParserMS_h__
#define __3c99e3f7_ecd9_4d9b_8f86_fe293c5fc8e6_HTMLParserMS_h__

class CHTMLParserMS : public IHTMLParser
{
public:
	CHTMLParserMS();
	~CHTMLParserMS();

	virtual THTMLNodePtr ParseString(const tstring& rsHTML);

	static bool IsInstalled();

private:
	bool m_bCallUninit;
	CComPtr<IHTMLDocument2> m_pDoc;
	CComPtr<IMarkupServices>  m_pMS;
	CComPtr<IMarkupPointer>  m_pMkStart;
	CComPtr<IMarkupPointer>  m_pMkFinish;
	mutable CLightMutex m_cs;
};

class CHTMLEngineMS : public IHTMLEngine
{
public:
	CHTMLEngineMS();
	~CHTMLEngineMS();

	virtual THTMLParserPtr GetParserPtr()const;
};

#endif //__3c99e3f7_ecd9_4d9b_8f86_fe293c5fc8e6_HTMLParserMS_h__