summaryrefslogtreecommitdiff
path: root/protocols/CurrencyRates/src/HTMLParserMS.h
blob: 6b2ceb26d8a763b47e665854235fe58a44c84f2c (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 mir_cs m_cs;
};

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

	virtual THTMLParserPtr GetParserPtr() const;
};

#endif //__3c99e3f7_ecd9_4d9b_8f86_fe293c5fc8e6_HTMLParserMS_h__