mshtml: Added get_type implementation.

This commit is contained in:
Jacek Caban 2006-07-05 22:38:04 +02:00 committed by Alexandre Julliard
parent 489b0f50d5
commit ce7c941510
1 changed files with 12 additions and 2 deletions

View File

@ -160,8 +160,18 @@ static HRESULT WINAPI HTMLSelectionObject_clear(IHTMLSelectionObject *iface)
static HRESULT WINAPI HTMLSelectionObject_get_type(IHTMLSelectionObject *iface, BSTR *p)
{
HTMLSelectionObject *This = HTMLSELOBJ_THIS(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
PRInt32 range_cnt = 0;
static const WCHAR wszNone[] = {'N','o','n','e',0};
static const WCHAR wszText[] = {'T','e','x','t',0};
TRACE("(%p)->(%p)\n", This, p);
if(This->nsselection)
nsISelection_GetRangeCount(This->nsselection, &range_cnt);
*p = SysAllocString(range_cnt ? wszText : wszNone); /* FIXME: control */
return S_OK;
}
#undef HTMLSELOBJ_THIS