ReactOS 0.4.15-dev-7942-gd23573b
htmlstylesheet.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlstylesheet.c:

Go to the source code of this file.

Classes

struct  HTMLStyleSheet
 
struct  HTMLStyleSheetsCollection
 
struct  HTMLStyleSheetRulesCollection
 

Functions

static HTMLStyleSheetRulesCollectionimpl_from_IHTMLStyleSheetRulesCollection (IHTMLStyleSheetRulesCollection *iface)
 
static HRESULT WINAPI HTMLStyleSheetRulesCollection_QueryInterface (IHTMLStyleSheetRulesCollection *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLStyleSheetRulesCollection_AddRef (IHTMLStyleSheetRulesCollection *iface)
 
static ULONG WINAPI HTMLStyleSheetRulesCollection_Release (IHTMLStyleSheetRulesCollection *iface)
 
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfoCount (IHTMLStyleSheetRulesCollection *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfo (IHTMLStyleSheetRulesCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetIDsOfNames (IHTMLStyleSheetRulesCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLStyleSheetRulesCollection_Invoke (IHTMLStyleSheetRulesCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length (IHTMLStyleSheetRulesCollection *iface, LONG *p)
 
static HRESULT WINAPI HTMLStyleSheetRulesCollection_item (IHTMLStyleSheetRulesCollection *iface, LONG index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule)
 
static IHTMLStyleSheetRulesCollection * HTMLStyleSheetRulesCollection_Create (nsIDOMCSSRuleList *nslist)
 
static HTMLStyleSheetsCollectionimpl_from_IHTMLStyleSheetsCollection (IHTMLStyleSheetsCollection *iface)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_QueryInterface (IHTMLStyleSheetsCollection *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLStyleSheetsCollection_AddRef (IHTMLStyleSheetsCollection *iface)
 
static ULONG WINAPI HTMLStyleSheetsCollection_Release (IHTMLStyleSheetsCollection *iface)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfoCount (IHTMLStyleSheetsCollection *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfo (IHTMLStyleSheetsCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_GetIDsOfNames (IHTMLStyleSheetsCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_Invoke (IHTMLStyleSheetsCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_get_length (IHTMLStyleSheetsCollection *iface, LONG *p)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_get__newEnum (IHTMLStyleSheetsCollection *iface, IUnknown **p)
 
static HRESULT WINAPI HTMLStyleSheetsCollection_item (IHTMLStyleSheetsCollection *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
 
IHTMLStyleSheetsCollection * HTMLStyleSheetsCollection_Create (nsIDOMStyleSheetList *nslist)
 
static HTMLStyleSheetimpl_from_IHTMLStyleSheet (IHTMLStyleSheet *iface)
 
static HRESULT WINAPI HTMLStyleSheet_QueryInterface (IHTMLStyleSheet *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLStyleSheet_AddRef (IHTMLStyleSheet *iface)
 
static ULONG WINAPI HTMLStyleSheet_Release (IHTMLStyleSheet *iface)
 
static HRESULT WINAPI HTMLStyleSheet_GetTypeInfoCount (IHTMLStyleSheet *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLStyleSheet_GetTypeInfo (IHTMLStyleSheet *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLStyleSheet_GetIDsOfNames (IHTMLStyleSheet *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLStyleSheet_Invoke (IHTMLStyleSheet *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLStyleSheet_put_title (IHTMLStyleSheet *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyleSheet_get_title (IHTMLStyleSheet *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleSheet_get_parentStyleSheet (IHTMLStyleSheet *iface, IHTMLStyleSheet **p)
 
static HRESULT WINAPI HTMLStyleSheet_get_owningElement (IHTMLStyleSheet *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLStyleSheet_put_disabled (IHTMLStyleSheet *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLStyleSheet_get_disabled (IHTMLStyleSheet *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyleSheet_get_readOnly (IHTMLStyleSheet *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyleSheet_get_imports (IHTMLStyleSheet *iface, IHTMLStyleSheetsCollection **p)
 
static HRESULT WINAPI HTMLStyleSheet_put_href (IHTMLStyleSheet *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyleSheet_get_href (IHTMLStyleSheet *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleSheet_get_type (IHTMLStyleSheet *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleSheet_get_id (IHTMLStyleSheet *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleSheet_addImport (IHTMLStyleSheet *iface, BSTR bstrURL, LONG lIndex, LONG *plIndex)
 
static HRESULT WINAPI HTMLStyleSheet_addRule (IHTMLStyleSheet *iface, BSTR bstrSelector, BSTR bstrStyle, LONG lIndex, LONG *plIndex)
 
static HRESULT WINAPI HTMLStyleSheet_removeImport (IHTMLStyleSheet *iface, LONG lIndex)
 
static HRESULT WINAPI HTMLStyleSheet_removeRule (IHTMLStyleSheet *iface, LONG lIndex)
 
static HRESULT WINAPI HTMLStyleSheet_put_media (IHTMLStyleSheet *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyleSheet_get_media (IHTMLStyleSheet *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleSheet_put_cssText (IHTMLStyleSheet *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyleSheet_get_cssText (IHTMLStyleSheet *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleSheet_get_rules (IHTMLStyleSheet *iface, IHTMLStyleSheetRulesCollection **p)
 
IHTMLStyleSheet * HTMLStyleSheet_Create (nsIDOMStyleSheet *nsstylesheet)
 

Variables

static const IHTMLStyleSheetRulesCollectionVtbl HTMLStyleSheetRulesCollectionVtbl
 
static const tid_t HTMLStyleSheetRulesCollection_iface_tids []
 
static dispex_static_data_t HTMLStyleSheetRulesCollection_dispex
 
static const IHTMLStyleSheetsCollectionVtbl HTMLStyleSheetsCollectionVtbl
 
static const tid_t HTMLStyleSheetsCollection_iface_tids []
 
static dispex_static_data_t HTMLStyleSheetsCollection_dispex
 
static const IHTMLStyleSheetVtbl HTMLStyleSheetVtbl
 
static const tid_t HTMLStyleSheet_iface_tids []
 
static dispex_static_data_t HTMLStyleSheet_dispex
 

Function Documentation

◆ HTMLStyleSheet_addImport()

static HRESULT WINAPI HTMLStyleSheet_addImport ( IHTMLStyleSheet *  iface,
BSTR  bstrURL,
LONG  lIndex,
LONG plIndex 
)
static

Definition at line 571 of file htmlstylesheet.c.

573{
575 FIXME("(%p)->(%s %d %p)\n", This, debugstr_w(bstrURL), lIndex, plIndex);
576 return E_NOTIMPL;
577}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLStyleSheet * impl_from_IHTMLStyleSheet(IHTMLStyleSheet *iface)
#define debugstr_w
Definition: kernel32.h:32

◆ HTMLStyleSheet_AddRef()

static ULONG WINAPI HTMLStyleSheet_AddRef ( IHTMLStyleSheet *  iface)
static

Definition at line 421 of file htmlstylesheet.c.

422{
425
426 TRACE("(%p) ref=%d\n", This, ref);
427
428 return ref;
429}
#define InterlockedIncrement
Definition: armddk.h:53
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
Definition: send.c:48

◆ HTMLStyleSheet_addRule()

static HRESULT WINAPI HTMLStyleSheet_addRule ( IHTMLStyleSheet *  iface,
BSTR  bstrSelector,
BSTR  bstrStyle,
LONG  lIndex,
LONG plIndex 
)
static

Definition at line 579 of file htmlstylesheet.c.

581{
583 FIXME("(%p)->(%s %s %d %p)\n", This, debugstr_w(bstrSelector), debugstr_w(bstrStyle),
584 lIndex, plIndex);
585 return E_NOTIMPL;
586}

◆ HTMLStyleSheet_Create()

IHTMLStyleSheet * HTMLStyleSheet_Create ( nsIDOMStyleSheet nsstylesheet)

Definition at line 746 of file htmlstylesheet.c.

747{
749 nsresult nsres;
750
751 ret->IHTMLStyleSheet_iface.lpVtbl = &HTMLStyleSheetVtbl;
752 ret->ref = 1;
753 ret->nsstylesheet = NULL;
754
755 init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLStyleSheet_iface, &HTMLStyleSheet_dispex);
756
757 if(nsstylesheet) {
758 nsres = nsIDOMStyleSheet_QueryInterface(nsstylesheet, &IID_nsIDOMCSSStyleSheet,
759 (void**)&ret->nsstylesheet);
760 if(NS_FAILED(nsres))
761 ERR("Could not get nsICSSStyleSheet interface: %08x\n", nsres);
762 }
763
764 return &ret->IHTMLStyleSheet_iface;
765}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
#define ERR(fmt,...)
Definition: debug.h:110
#define NULL
Definition: types.h:112
static const IHTMLStyleSheetVtbl HTMLStyleSheetVtbl
static dispex_static_data_t HTMLStyleSheet_dispex
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
#define NS_FAILED(res)
int ret

Referenced by HTMLDocument_createStyleSheet(), HTMLStyleElement_get_styleSheet(), and HTMLStyleSheetsCollection_item().

◆ HTMLStyleSheet_get_cssText()

static HRESULT WINAPI HTMLStyleSheet_get_cssText ( IHTMLStyleSheet *  iface,
BSTR p 
)
static

Definition at line 644 of file htmlstylesheet.c.

645{
647 nsIDOMCSSRuleList *nslist = NULL;
648 nsIDOMCSSRule *nsrule;
649 nsAString nsstr;
650 UINT32 len;
651 nsresult nsres;
652
653 TRACE("(%p)->(%p)\n", This, p);
654
655 nsres = nsIDOMCSSStyleSheet_GetCssRules(This->nsstylesheet, &nslist);
656 if(NS_FAILED(nsres)) {
657 ERR("GetCssRules failed: %08x\n", nsres);
658 return E_FAIL;
659 }
660
661 nsres = nsIDOMCSSRuleList_GetLength(nslist, &len);
662 assert(nsres == NS_OK);
663
664 if(len) {
665 nsres = nsIDOMCSSRuleList_Item(nslist, 0, &nsrule);
666 if(NS_FAILED(nsres))
667 ERR("Item failed: %08x\n", nsres);
668 }
669
670 nsIDOMCSSRuleList_Release(nslist);
671 if(NS_FAILED(nsres))
672 return E_FAIL;
673
674 if(!len) {
675 *p = NULL;
676 return S_OK;
677 }
678
679 nsAString_Init(&nsstr, NULL);
680 nsres = nsIDOMCSSRule_GetCssText(nsrule, &nsstr);
681 nsIDOMCSSRule_Release(nsrule);
682 return return_nsstr(nsres, &nsstr, p);
683}
unsigned int UINT32
#define E_FAIL
Definition: ddrawi.h:102
#define assert(x)
Definition: debug.h:53
GLfloat GLfloat p
Definition: glext.h:8902
GLenum GLsizei len
Definition: glext.h:6722
#define S_OK
Definition: intsafe.h:52
#define NS_OK
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841

◆ HTMLStyleSheet_get_disabled()

static HRESULT WINAPI HTMLStyleSheet_get_disabled ( IHTMLStyleSheet *  iface,
VARIANT_BOOL p 
)
static

Definition at line 515 of file htmlstylesheet.c.

516{
518 FIXME("(%p)->(%p)\n", This, p);
519 return E_NOTIMPL;
520}

◆ HTMLStyleSheet_get_href()

static HRESULT WINAPI HTMLStyleSheet_get_href ( IHTMLStyleSheet *  iface,
BSTR p 
)
static

Definition at line 544 of file htmlstylesheet.c.

545{
547 nsAString href_str;
548 nsresult nsres;
549
550 TRACE("(%p)->(%p)\n", This, p);
551
552 nsAString_Init(&href_str, NULL);
553 nsres = nsIDOMCSSStyleSheet_GetHref(This->nsstylesheet, &href_str);
554 return return_nsstr(nsres, &href_str, p);
555}

◆ HTMLStyleSheet_get_id()

static HRESULT WINAPI HTMLStyleSheet_get_id ( IHTMLStyleSheet *  iface,
BSTR p 
)
static

Definition at line 564 of file htmlstylesheet.c.

565{
567 FIXME("(%p)->(%p)\n", This, p);
568 return E_NOTIMPL;
569}

◆ HTMLStyleSheet_get_imports()

static HRESULT WINAPI HTMLStyleSheet_get_imports ( IHTMLStyleSheet *  iface,
IHTMLStyleSheetsCollection **  p 
)
static

Definition at line 529 of file htmlstylesheet.c.

531{
533 FIXME("(%p)->(%p)\n", This, p);
534 return E_NOTIMPL;
535}

◆ HTMLStyleSheet_get_media()

static HRESULT WINAPI HTMLStyleSheet_get_media ( IHTMLStyleSheet *  iface,
BSTR p 
)
static

Definition at line 609 of file htmlstylesheet.c.

610{
612 FIXME("(%p)->(%p)\n", This, p);
613 return E_NOTIMPL;
614}

◆ HTMLStyleSheet_get_owningElement()

static HRESULT WINAPI HTMLStyleSheet_get_owningElement ( IHTMLStyleSheet *  iface,
IHTMLElement **  p 
)
static

Definition at line 501 of file htmlstylesheet.c.

502{
504 FIXME("(%p)->(%p)\n", This, p);
505 return E_NOTIMPL;
506}

◆ HTMLStyleSheet_get_parentStyleSheet()

static HRESULT WINAPI HTMLStyleSheet_get_parentStyleSheet ( IHTMLStyleSheet *  iface,
IHTMLStyleSheet **  p 
)
static

Definition at line 493 of file htmlstylesheet.c.

495{
497 FIXME("(%p)->(%p)\n", This, p);
498 return E_NOTIMPL;
499}

◆ HTMLStyleSheet_get_readOnly()

static HRESULT WINAPI HTMLStyleSheet_get_readOnly ( IHTMLStyleSheet *  iface,
VARIANT_BOOL p 
)
static

Definition at line 522 of file htmlstylesheet.c.

523{
525 FIXME("(%p)->(%p)\n", This, p);
526 return E_NOTIMPL;
527}

◆ HTMLStyleSheet_get_rules()

static HRESULT WINAPI HTMLStyleSheet_get_rules ( IHTMLStyleSheet *  iface,
IHTMLStyleSheetRulesCollection **  p 
)
static

Definition at line 685 of file htmlstylesheet.c.

687{
689 nsIDOMCSSRuleList *nslist = NULL;
690 nsresult nsres;
691
692 TRACE("(%p)->(%p)\n", This, p);
693
694 nsres = nsIDOMCSSStyleSheet_GetCssRules(This->nsstylesheet, &nslist);
695 if(NS_FAILED(nsres)) {
696 ERR("GetCssRules failed: %08x\n", nsres);
697 return E_FAIL;
698 }
699
701 return S_OK;
702}
static IHTMLStyleSheetRulesCollection * HTMLStyleSheetRulesCollection_Create(nsIDOMCSSRuleList *nslist)

◆ HTMLStyleSheet_get_title()

static HRESULT WINAPI HTMLStyleSheet_get_title ( IHTMLStyleSheet *  iface,
BSTR p 
)
static

Definition at line 486 of file htmlstylesheet.c.

487{
489 FIXME("(%p)->(%p)\n", This, p);
490 return E_NOTIMPL;
491}

◆ HTMLStyleSheet_get_type()

static HRESULT WINAPI HTMLStyleSheet_get_type ( IHTMLStyleSheet *  iface,
BSTR p 
)
static

Definition at line 557 of file htmlstylesheet.c.

558{
560 FIXME("(%p)->(%p)\n", This, p);
561 return E_NOTIMPL;
562}

◆ HTMLStyleSheet_GetIDsOfNames()

static HRESULT WINAPI HTMLStyleSheet_GetIDsOfNames ( IHTMLStyleSheet *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 462 of file htmlstylesheet.c.

465{
467 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames, lcid, rgDispId);
468}
REFIID riid
Definition: atlbase.h:39

◆ HTMLStyleSheet_GetTypeInfo()

static HRESULT WINAPI HTMLStyleSheet_GetTypeInfo ( IHTMLStyleSheet *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 455 of file htmlstylesheet.c.

457{
459 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
460}

◆ HTMLStyleSheet_GetTypeInfoCount()

static HRESULT WINAPI HTMLStyleSheet_GetTypeInfoCount ( IHTMLStyleSheet *  iface,
UINT pctinfo 
)
static

Definition at line 448 of file htmlstylesheet.c.

449{
451 TRACE("(%p)->(%p)\n", This, pctinfo);
452 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
453}

◆ HTMLStyleSheet_Invoke()

static HRESULT WINAPI HTMLStyleSheet_Invoke ( IHTMLStyleSheet *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 470 of file htmlstylesheet.c.

473{
475 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags, pDispParams,
476 pVarResult, pExcepInfo, puArgErr);
477}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLStyleSheet_put_cssText()

static HRESULT WINAPI HTMLStyleSheet_put_cssText ( IHTMLStyleSheet *  iface,
BSTR  v 
)
static

Definition at line 616 of file htmlstylesheet.c.

617{
619 nsresult nsres;
620
621 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
622
623 do {
624 nsres = nsIDOMCSSStyleSheet_DeleteRule(This->nsstylesheet, 0);
625 }while(NS_SUCCEEDED(nsres));
626
627 if(v && *v) {
628 nsAString nsstr;
629 UINT32 idx;
630
631 /* FIXME: This won't work for multiple rules in the string. */
632 nsAString_InitDepend(&nsstr, v);
633 nsres = nsIDOMCSSStyleSheet_InsertRule(This->nsstylesheet, &nsstr, 0, &idx);
634 nsAString_Finish(&nsstr);
635 if(NS_FAILED(nsres)) {
636 FIXME("InsertRule failed for string %s. Probably multiple rules passed.\n", debugstr_w(v));
637 return E_FAIL;
638 }
639 }
640
641 return S_OK;
642}
unsigned int idx
Definition: utils.c:41
const GLdouble * v
Definition: gl.h:2040
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
#define NS_SUCCEEDED(res)

◆ HTMLStyleSheet_put_disabled()

static HRESULT WINAPI HTMLStyleSheet_put_disabled ( IHTMLStyleSheet *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 508 of file htmlstylesheet.c.

509{
511 FIXME("(%p)->(%x)\n", This, v);
512 return E_NOTIMPL;
513}

◆ HTMLStyleSheet_put_href()

static HRESULT WINAPI HTMLStyleSheet_put_href ( IHTMLStyleSheet *  iface,
BSTR  v 
)
static

Definition at line 537 of file htmlstylesheet.c.

538{
540 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
541 return E_NOTIMPL;
542}

◆ HTMLStyleSheet_put_media()

static HRESULT WINAPI HTMLStyleSheet_put_media ( IHTMLStyleSheet *  iface,
BSTR  v 
)
static

Definition at line 602 of file htmlstylesheet.c.

603{
605 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
606 return E_NOTIMPL;
607}

◆ HTMLStyleSheet_put_title()

static HRESULT WINAPI HTMLStyleSheet_put_title ( IHTMLStyleSheet *  iface,
BSTR  v 
)
static

Definition at line 479 of file htmlstylesheet.c.

480{
482 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
483 return E_NOTIMPL;
484}

◆ HTMLStyleSheet_QueryInterface()

static HRESULT WINAPI HTMLStyleSheet_QueryInterface ( IHTMLStyleSheet *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 397 of file htmlstylesheet.c.

398{
400
401 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
402
404 *ppv = &This->IHTMLStyleSheet_iface;
405 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
406 *ppv = &This->IHTMLStyleSheet_iface;
407 }else if(IsEqualGUID(&IID_IHTMLStyleSheet, riid)) {
408 *ppv = &This->IHTMLStyleSheet_iface;
409 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
410 return *ppv ? S_OK : E_NOINTERFACE;
411 }else {
412 *ppv = NULL;
413 WARN("unsupported %s\n", debugstr_mshtml_guid(riid));
414 return E_NOINTERFACE;
415 }
416
417 IUnknown_AddRef((IUnknown*)*ppv);
418 return S_OK;
419}
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:112
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:542
REFIID LPVOID * ppv
Definition: atlbase.h:39
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ HTMLStyleSheet_Release()

static ULONG WINAPI HTMLStyleSheet_Release ( IHTMLStyleSheet *  iface)
static

Definition at line 431 of file htmlstylesheet.c.

432{
435
436 TRACE("(%p) ref=%d\n", This, ref);
437
438 if(!ref) {
439 release_dispex(&This->dispex);
440 if(This->nsstylesheet)
441 nsIDOMCSSStyleSheet_Release(This->nsstylesheet);
443 }
444
445 return ref;
446}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706

◆ HTMLStyleSheet_removeImport()

static HRESULT WINAPI HTMLStyleSheet_removeImport ( IHTMLStyleSheet *  iface,
LONG  lIndex 
)
static

Definition at line 588 of file htmlstylesheet.c.

589{
591 FIXME("(%p)->(%d)\n", This, lIndex);
592 return E_NOTIMPL;
593}

◆ HTMLStyleSheet_removeRule()

static HRESULT WINAPI HTMLStyleSheet_removeRule ( IHTMLStyleSheet *  iface,
LONG  lIndex 
)
static

Definition at line 595 of file htmlstylesheet.c.

596{
598 FIXME("(%p)->(%d)\n", This, lIndex);
599 return E_NOTIMPL;
600}

◆ HTMLStyleSheetRulesCollection_AddRef()

static ULONG WINAPI HTMLStyleSheetRulesCollection_AddRef ( IHTMLStyleSheetRulesCollection *  iface)
static

Definition at line 76 of file htmlstylesheet.c.

77{
80
81 TRACE("(%p) ref=%d\n", This, ref);
82
83 return ref;
84}
static HTMLStyleSheetRulesCollection * impl_from_IHTMLStyleSheetRulesCollection(IHTMLStyleSheetRulesCollection *iface)

◆ HTMLStyleSheetRulesCollection_Create()

static IHTMLStyleSheetRulesCollection * HTMLStyleSheetRulesCollection_Create ( nsIDOMCSSRuleList nslist)
static

Definition at line 185 of file htmlstylesheet.c.

186{
188
189 ret = heap_alloc(sizeof(*ret));
190 ret->IHTMLStyleSheetRulesCollection_iface.lpVtbl = &HTMLStyleSheetRulesCollectionVtbl;
191 ret->ref = 1;
192 ret->nslist = nslist;
193
194 init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLStyleSheetRulesCollection_iface, &HTMLStyleSheetRulesCollection_dispex);
195
196 if(nslist)
197 nsIDOMCSSRuleList_AddRef(nslist);
198
199 return &ret->IHTMLStyleSheetRulesCollection_iface;
200}
static const IHTMLStyleSheetRulesCollectionVtbl HTMLStyleSheetRulesCollectionVtbl
static dispex_static_data_t HTMLStyleSheetRulesCollection_dispex

Referenced by HTMLStyleSheet_get_rules().

◆ HTMLStyleSheetRulesCollection_get_length()

static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length ( IHTMLStyleSheetRulesCollection *  iface,
LONG p 
)
static

Definition at line 134 of file htmlstylesheet.c.

136{
138 UINT32 len = 0;
139
140 TRACE("(%p)->(%p)\n", This, p);
141
142 if(This->nslist) {
143 nsresult nsres;
144
145 nsres = nsIDOMCSSRuleList_GetLength(This->nslist, &len);
146 if(NS_FAILED(nsres))
147 ERR("GetLength failed: %08x\n", nsres);
148 }
149
150 *p = len;
151 return S_OK;
152}

◆ HTMLStyleSheetRulesCollection_GetIDsOfNames()

static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetIDsOfNames ( IHTMLStyleSheetRulesCollection *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 117 of file htmlstylesheet.c.

119{
121 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
122 lcid, rgDispId);
123}

◆ HTMLStyleSheetRulesCollection_GetTypeInfo()

static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfo ( IHTMLStyleSheetRulesCollection *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 110 of file htmlstylesheet.c.

112{
114 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
115}

◆ HTMLStyleSheetRulesCollection_GetTypeInfoCount()

static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfoCount ( IHTMLStyleSheetRulesCollection *  iface,
UINT pctinfo 
)
static

Definition at line 103 of file htmlstylesheet.c.

105{
107 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
108}

◆ HTMLStyleSheetRulesCollection_Invoke()

static HRESULT WINAPI HTMLStyleSheetRulesCollection_Invoke ( IHTMLStyleSheetRulesCollection *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 125 of file htmlstylesheet.c.

128{
130 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
131 pDispParams, pVarResult, pExcepInfo, puArgErr);
132}

◆ HTMLStyleSheetRulesCollection_item()

static HRESULT WINAPI HTMLStyleSheetRulesCollection_item ( IHTMLStyleSheetRulesCollection *  iface,
LONG  index,
IHTMLStyleSheetRule **  ppHTMLStyleSheetRule 
)
static

Definition at line 154 of file htmlstylesheet.c.

156{
158 FIXME("(%p)->(%d %p)\n", This, index, ppHTMLStyleSheetRule);
159 return E_NOTIMPL;
160}
GLuint index
Definition: glext.h:6031

◆ HTMLStyleSheetRulesCollection_QueryInterface()

static HRESULT WINAPI HTMLStyleSheetRulesCollection_QueryInterface ( IHTMLStyleSheetRulesCollection *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 53 of file htmlstylesheet.c.

55{
57
58 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
59
61 *ppv = &This->IHTMLStyleSheetRulesCollection_iface;
62 }else if(IsEqualGUID(&IID_IHTMLStyleSheetRulesCollection, riid)) {
63 *ppv = &This->IHTMLStyleSheetRulesCollection_iface;
64 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
65 return *ppv ? S_OK : E_NOINTERFACE;
66 }else {
67 *ppv = NULL;
68 FIXME("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
69 return E_NOINTERFACE;
70 }
71
72 IUnknown_AddRef((IUnknown*)*ppv);
73 return S_OK;
74}

◆ HTMLStyleSheetRulesCollection_Release()

static ULONG WINAPI HTMLStyleSheetRulesCollection_Release ( IHTMLStyleSheetRulesCollection *  iface)
static

Definition at line 86 of file htmlstylesheet.c.

87{
90
91 TRACE("(%p) ref=%d\n", This, ref);
92
93 if(!ref) {
94 release_dispex(&This->dispex);
95 if(This->nslist)
96 nsIDOMCSSRuleList_Release(This->nslist);
98 }
99
100 return ref;
101}

◆ HTMLStyleSheetsCollection_AddRef()

static ULONG WINAPI HTMLStyleSheetsCollection_AddRef ( IHTMLStyleSheetsCollection *  iface)
static

Definition at line 232 of file htmlstylesheet.c.

233{
236
237 TRACE("(%p) ref=%d\n", This, ref);
238
239 return ref;
240}
static HTMLStyleSheetsCollection * impl_from_IHTMLStyleSheetsCollection(IHTMLStyleSheetsCollection *iface)

◆ HTMLStyleSheetsCollection_Create()

IHTMLStyleSheetsCollection * HTMLStyleSheetsCollection_Create ( nsIDOMStyleSheetList nslist)

Definition at line 375 of file htmlstylesheet.c.

376{
378
379 ret->IHTMLStyleSheetsCollection_iface.lpVtbl = &HTMLStyleSheetsCollectionVtbl;
380 ret->ref = 1;
381
382 if(nslist)
383 nsIDOMStyleSheetList_AddRef(nslist);
384 ret->nslist = nslist;
385
386 init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLStyleSheetsCollection_iface,
388
389 return &ret->IHTMLStyleSheetsCollection_iface;
390}
static const IHTMLStyleSheetsCollectionVtbl HTMLStyleSheetsCollectionVtbl
static dispex_static_data_t HTMLStyleSheetsCollection_dispex

Referenced by HTMLDocument_get_styleSheets().

◆ HTMLStyleSheetsCollection_get__newEnum()

static HRESULT WINAPI HTMLStyleSheetsCollection_get__newEnum ( IHTMLStyleSheetsCollection *  iface,
IUnknown **  p 
)
static

Definition at line 305 of file htmlstylesheet.c.

307{
309 FIXME("(%p)->(%p)\n", This, p);
310 return E_NOTIMPL;
311}

◆ HTMLStyleSheetsCollection_get_length()

static HRESULT WINAPI HTMLStyleSheetsCollection_get_length ( IHTMLStyleSheetsCollection *  iface,
LONG p 
)
static

Definition at line 290 of file htmlstylesheet.c.

292{
294 UINT32 len = 0;
295
296 TRACE("(%p)->(%p)\n", This, p);
297
298 if(This->nslist)
299 nsIDOMStyleSheetList_GetLength(This->nslist, &len);
300
301 *p = len;
302 return S_OK;
303}

◆ HTMLStyleSheetsCollection_GetIDsOfNames()

static HRESULT WINAPI HTMLStyleSheetsCollection_GetIDsOfNames ( IHTMLStyleSheetsCollection *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 273 of file htmlstylesheet.c.

275{
277 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
278 lcid, rgDispId);
279}

◆ HTMLStyleSheetsCollection_GetTypeInfo()

static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfo ( IHTMLStyleSheetsCollection *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 266 of file htmlstylesheet.c.

268{
270 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
271}

◆ HTMLStyleSheetsCollection_GetTypeInfoCount()

static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfoCount ( IHTMLStyleSheetsCollection *  iface,
UINT pctinfo 
)
static

Definition at line 259 of file htmlstylesheet.c.

261{
263 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
264}

◆ HTMLStyleSheetsCollection_Invoke()

static HRESULT WINAPI HTMLStyleSheetsCollection_Invoke ( IHTMLStyleSheetsCollection *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 281 of file htmlstylesheet.c.

284{
286 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
287 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
288}

◆ HTMLStyleSheetsCollection_item()

static HRESULT WINAPI HTMLStyleSheetsCollection_item ( IHTMLStyleSheetsCollection *  iface,
VARIANT pvarIndex,
VARIANT pvarResult 
)
static

Definition at line 313 of file htmlstylesheet.c.

315{
317
318 TRACE("(%p)->(%s %p)\n", This, debugstr_variant(pvarIndex), pvarResult);
319
320 switch(V_VT(pvarIndex)) {
321 case VT_I4: {
322 nsIDOMStyleSheet *nsstylesheet;
323 nsresult nsres;
324
325 TRACE("index=%d\n", V_I4(pvarIndex));
326
327 nsres = nsIDOMStyleSheetList_Item(This->nslist, V_I4(pvarIndex), &nsstylesheet);
328 if(NS_FAILED(nsres) || !nsstylesheet) {
329 WARN("Item failed: %08x\n", nsres);
330 V_VT(pvarResult) = VT_EMPTY;
331 return E_INVALIDARG;
332 }
333
334 V_VT(pvarResult) = VT_DISPATCH;
335 V_DISPATCH(pvarResult) = (IDispatch*)HTMLStyleSheet_Create(nsstylesheet);
336
337 return S_OK;
338 }
339
340 case VT_BSTR:
341 FIXME("id=%s not implemented\n", debugstr_w(V_BSTR(pvarResult)));
342 return E_NOTIMPL;
343
344 default:
345 WARN("Invalid index %s\n", debugstr_variant(pvarIndex));
346 }
347
348 return E_INVALIDARG;
349}
#define E_INVALIDARG
Definition: ddrawi.h:101
@ VT_BSTR
Definition: compat.h:2303
@ VT_I4
Definition: compat.h:2298
@ VT_EMPTY
Definition: compat.h:2295
@ VT_DISPATCH
Definition: compat.h:2304
IHTMLStyleSheet * HTMLStyleSheet_Create(nsIDOMStyleSheet *nsstylesheet)
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#define V_I4(A)
Definition: oleauto.h:247
#define V_DISPATCH(A)
Definition: oleauto.h:239

◆ HTMLStyleSheetsCollection_QueryInterface()

static HRESULT WINAPI HTMLStyleSheetsCollection_QueryInterface ( IHTMLStyleSheetsCollection *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 207 of file htmlstylesheet.c.

209{
211
212 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
213
215 *ppv = &This->IHTMLStyleSheetsCollection_iface;
216 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
217 *ppv = &This->IHTMLStyleSheetsCollection_iface;
218 }else if(IsEqualGUID(&IID_IHTMLStyleSheetsCollection, riid)) {
219 *ppv = &This->IHTMLStyleSheetsCollection_iface;
220 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
221 return *ppv ? S_OK : E_NOINTERFACE;
222 }else {
223 *ppv = NULL;
224 WARN("unsupported %s\n", debugstr_mshtml_guid(riid));
225 return E_NOINTERFACE;
226 }
227
228 IUnknown_AddRef((IUnknown*)*ppv);
229 return S_OK;
230}

◆ HTMLStyleSheetsCollection_Release()

static ULONG WINAPI HTMLStyleSheetsCollection_Release ( IHTMLStyleSheetsCollection *  iface)
static

Definition at line 242 of file htmlstylesheet.c.

243{
246
247 TRACE("(%p) ref=%d\n", This, ref);
248
249 if(!ref) {
250 release_dispex(&This->dispex);
251 if(This->nslist)
252 nsIDOMStyleSheetList_Release(This->nslist);
254 }
255
256 return ref;
257}

◆ impl_from_IHTMLStyleSheet()

◆ impl_from_IHTMLStyleSheetRulesCollection()

◆ impl_from_IHTMLStyleSheetsCollection()

Variable Documentation

◆ HTMLStyleSheet_dispex

dispex_static_data_t HTMLStyleSheet_dispex
static
Initial value:
= {
DispHTMLStyleSheet_tid,
}
static const tid_t HTMLStyleSheet_iface_tids[]

Definition at line 739 of file htmlstylesheet.c.

Referenced by HTMLStyleSheet_Create().

◆ HTMLStyleSheet_iface_tids

const tid_t HTMLStyleSheet_iface_tids[]
static
Initial value:
= {
IHTMLStyleSheet_tid,
0
}

Definition at line 735 of file htmlstylesheet.c.

◆ HTMLStyleSheetRulesCollection_dispex

dispex_static_data_t HTMLStyleSheetRulesCollection_dispex
static
Initial value:
= {
DispHTMLStyleSheetRulesCollection_tid,
}
static const tid_t HTMLStyleSheetRulesCollection_iface_tids[]

Definition at line 178 of file htmlstylesheet.c.

Referenced by HTMLStyleSheetRulesCollection_Create().

◆ HTMLStyleSheetRulesCollection_iface_tids

const tid_t HTMLStyleSheetRulesCollection_iface_tids[]
static
Initial value:
= {
IHTMLStyleSheetRulesCollection_tid,
0
}

Definition at line 174 of file htmlstylesheet.c.

◆ HTMLStyleSheetRulesCollectionVtbl

const IHTMLStyleSheetRulesCollectionVtbl HTMLStyleSheetRulesCollectionVtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLStyleSheetRulesCollection_Release(IHTMLStyleSheetRulesCollection *iface)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetIDsOfNames(IHTMLStyleSheetRulesCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_Invoke(IHTMLStyleSheetRulesCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static ULONG WINAPI HTMLStyleSheetRulesCollection_AddRef(IHTMLStyleSheetRulesCollection *iface)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfoCount(IHTMLStyleSheetRulesCollection *iface, UINT *pctinfo)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_QueryInterface(IHTMLStyleSheetRulesCollection *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length(IHTMLStyleSheetRulesCollection *iface, LONG *p)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_item(IHTMLStyleSheetRulesCollection *iface, LONG index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfo(IHTMLStyleSheetRulesCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)

Definition at line 162 of file htmlstylesheet.c.

Referenced by HTMLStyleSheetRulesCollection_Create().

◆ HTMLStyleSheetsCollection_dispex

dispex_static_data_t HTMLStyleSheetsCollection_dispex
static
Initial value:
= {
DispHTMLStyleSheetsCollection_tid,
}
static const tid_t HTMLStyleSheetsCollection_iface_tids[]

Definition at line 368 of file htmlstylesheet.c.

Referenced by HTMLStyleSheetsCollection_Create().

◆ HTMLStyleSheetsCollection_iface_tids

const tid_t HTMLStyleSheetsCollection_iface_tids[]
static
Initial value:
= {
IHTMLStyleSheetsCollection_tid,
0
}

Definition at line 364 of file htmlstylesheet.c.

◆ HTMLStyleSheetsCollectionVtbl

const IHTMLStyleSheetsCollectionVtbl HTMLStyleSheetsCollectionVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLStyleSheetsCollection_get__newEnum(IHTMLStyleSheetsCollection *iface, IUnknown **p)
static HRESULT WINAPI HTMLStyleSheetsCollection_QueryInterface(IHTMLStyleSheetsCollection *iface, REFIID riid, void **ppv)
static ULONG WINAPI HTMLStyleSheetsCollection_AddRef(IHTMLStyleSheetsCollection *iface)
static HRESULT WINAPI HTMLStyleSheetsCollection_get_length(IHTMLStyleSheetsCollection *iface, LONG *p)
static HRESULT WINAPI HTMLStyleSheetsCollection_Invoke(IHTMLStyleSheetsCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLStyleSheetsCollection_GetIDsOfNames(IHTMLStyleSheetsCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfoCount(IHTMLStyleSheetsCollection *iface, UINT *pctinfo)
static HRESULT WINAPI HTMLStyleSheetsCollection_item(IHTMLStyleSheetsCollection *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfo(IHTMLStyleSheetsCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static ULONG WINAPI HTMLStyleSheetsCollection_Release(IHTMLStyleSheetsCollection *iface)

Definition at line 351 of file htmlstylesheet.c.

Referenced by HTMLStyleSheetsCollection_Create().

◆ HTMLStyleSheetVtbl

const IHTMLStyleSheetVtbl HTMLStyleSheetVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLStyleSheet_GetTypeInfo(IHTMLStyleSheet *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI HTMLStyleSheet_get_href(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_get_cssText(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_put_cssText(IHTMLStyleSheet *iface, BSTR v)
static HRESULT WINAPI HTMLStyleSheet_addImport(IHTMLStyleSheet *iface, BSTR bstrURL, LONG lIndex, LONG *plIndex)
static HRESULT WINAPI HTMLStyleSheet_QueryInterface(IHTMLStyleSheet *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLStyleSheet_addRule(IHTMLStyleSheet *iface, BSTR bstrSelector, BSTR bstrStyle, LONG lIndex, LONG *plIndex)
static HRESULT WINAPI HTMLStyleSheet_get_id(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_get_type(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_get_title(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_GetIDsOfNames(IHTMLStyleSheet *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI HTMLStyleSheet_put_title(IHTMLStyleSheet *iface, BSTR v)
static HRESULT WINAPI HTMLStyleSheet_removeImport(IHTMLStyleSheet *iface, LONG lIndex)
static HRESULT WINAPI HTMLStyleSheet_Invoke(IHTMLStyleSheet *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLStyleSheet_get_owningElement(IHTMLStyleSheet *iface, IHTMLElement **p)
static HRESULT WINAPI HTMLStyleSheet_GetTypeInfoCount(IHTMLStyleSheet *iface, UINT *pctinfo)
static HRESULT WINAPI HTMLStyleSheet_get_media(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_put_href(IHTMLStyleSheet *iface, BSTR v)
static HRESULT WINAPI HTMLStyleSheet_put_disabled(IHTMLStyleSheet *iface, VARIANT_BOOL v)
static HRESULT WINAPI HTMLStyleSheet_get_imports(IHTMLStyleSheet *iface, IHTMLStyleSheetsCollection **p)
static ULONG WINAPI HTMLStyleSheet_AddRef(IHTMLStyleSheet *iface)
static HRESULT WINAPI HTMLStyleSheet_get_disabled(IHTMLStyleSheet *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLStyleSheet_removeRule(IHTMLStyleSheet *iface, LONG lIndex)
static HRESULT WINAPI HTMLStyleSheet_put_media(IHTMLStyleSheet *iface, BSTR v)
static HRESULT WINAPI HTMLStyleSheet_get_parentStyleSheet(IHTMLStyleSheet *iface, IHTMLStyleSheet **p)
static ULONG WINAPI HTMLStyleSheet_Release(IHTMLStyleSheet *iface)
static HRESULT WINAPI HTMLStyleSheet_get_readOnly(IHTMLStyleSheet *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLStyleSheet_get_rules(IHTMLStyleSheet *iface, IHTMLStyleSheetRulesCollection **p)

Definition at line 704 of file htmlstylesheet.c.

Referenced by HTMLStyleSheet_Create().