#pragma once
|
|
#include "wobject/xcontrol.hpp"
|
#include "kobject/khtml.hpp"
|
|
using khtml = Hxsoft::XFrame::xcOleControlContain;
|
|
class xhtml : public xcontrol
|
{
|
public:
|
xhtml(void* impl = nullptr) :xcontrol(impl) {}
|
public:
|
khtml* GetKHtml()
|
{
|
return (khtml*)this->GetNativePtr();
|
}
|
int LoadHtml(xstring content)
|
{
|
return GetKHtml()->LoadHtml((LPTSTR)content.c_str());
|
}
|
int ExecWB(int cmdID, int cmdexecopt)
|
{
|
return GetKHtml()->ExecWB(cmdID, cmdexecopt);
|
}
|
int LoadText(xstring content)
|
{
|
return GetKHtml()->LoadText((LPTSTR)content.c_str());
|
}
|
IHTMLDocument2* GetHtmlDocument()
|
{
|
return GetKHtml()->GetHtmlDocument();
|
}
|
int innerHTML(KXMLDOMDocument srcTree, KXMLDOMDocument xsltTree, KXMLDOMDocument resTree)
|
{
|
return 1;
|
}
|
};
|