123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- /*
- * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- #ifndef DO_NO_IMPORTS
- import "oaidl.idl";
- import "ocidl.idl";
- import "DOMCore.idl";
- import "IWebScriptObject.idl";
- #endif
- interface IDOMObject;
- interface IDOMCSSValue;
- interface IDOMCSSStyleDeclaration;
- interface IDOMCSSStyleSheet;
- interface IDOMCSSRule;
- interface IDOMElement;
- /*
- @interface DOMDocument (DOMViewCSS)
- */
- [
- object,
- oleautomation,
- uuid(43EFE238-A4DF-400a-983D-FCE0C0F56BCD),
- pointer_default(unique)
- ]
- interface IDOMViewCSS : IUnknown
- {
- /*
- - (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
- */
- HRESULT getComputedStyle([in] IDOMElement* elt, [in] BSTR pseudoElt, [out, retval] IDOMCSSStyleDeclaration** result);
- }
- /*
- @interface DOMCSSRuleList : DOMObject
- */
- [
- object,
- oleautomation,
- uuid(D45DA43D-5EDB-4315-A097-3ED3FA089193),
- pointer_default(unique)
- ]
- interface IDOMCSSRuleList : IDOMObject
- {
- /*
- - (unsigned)length;
- */
- HRESULT length([out, retval] UINT* result);
- /*
- - (DOMCSSRule *)item:(unsigned)index;
- */
- HRESULT item([in] UINT index, [out, retval] IDOMCSSRule** result);
- }
- /*
- @interface DOMCSSRule : DOMObject
- */
- [
- object,
- oleautomation,
- uuid(05947A31-9E1C-4c98-8608-6688959D6542),
- pointer_default(unique)
- ]
- interface IDOMCSSRule : IDOMObject
- {
- /*
- - (unsigned short)type;
- */
- HRESULT type([out, retval] unsigned short* result);
- /*
- - (NSString *)cssText;
- */
- HRESULT cssText([out, retval] BSTR* text);
- /*
- - (void)setCssText:(NSString *)cssText;
- */
- HRESULT setCssText([in] BSTR cssText);
- /*
- - (DOMCSSStyleSheet *)parentStyleSheet;
- */
- HRESULT parentStyleSheet([out, retval] IDOMCSSStyleSheet** sheet);
- /*
- - (DOMCSSRule *)parentRule;
- */
- HRESULT parentRule([out, retval] IDOMCSSRule** rule);
- }
- /*
- @interface DOMCSSStyleDeclaration : DOMObject
- */
- [
- object,
- oleautomation,
- uuid(DBBE9A6B-D505-4647-B4AB-40A7CF3EE63E),
- pointer_default(unique)
- ]
- interface IDOMCSSStyleDeclaration : IDOMObject
- {
- /*
- - (NSString *)cssText;
- */
- HRESULT cssText([out, retval] BSTR* result);
- /*
- - (void)setCssText:(NSString *)cssText;
- */
- HRESULT setCssText([in] BSTR cssText);
- /*
- - (NSString *)getPropertyValue:(NSString *)propertyName;
- */
- HRESULT getPropertyValue([in] BSTR propertyName, [out, retval] BSTR* result);
- /*
- - (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName;
- */
- HRESULT getPropertyCSSValue([in] BSTR propertyName, [out, retval] IDOMCSSValue** result);
- /*
- - (NSString *)removeProperty:(NSString *)propertyName;
- */
- HRESULT removeProperty([in] BSTR propertyName, [out, retval] BSTR* result);
- /*
- - (NSString *)getPropertyPriority:(NSString *)propertyName;
- */
- HRESULT getPropertyPriority([in] BSTR propertyName, [out, retval] BSTR* result);
- /*
- - (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority;
- */
- HRESULT setProperty([in] BSTR propertyName, [in] BSTR value, [in] BSTR priority);
- /*
- - (unsigned)length;
- */
- HRESULT length([out, retval] UINT* result);
- /*
- - (NSString *)item:(unsigned)index;
- */
- HRESULT item([in] UINT index, [out, retval] BSTR* result);
- /*
- - (DOMCSSRule *)parentRule;
- */
- HRESULT parentRule([out, retval] IDOMCSSRule** result);
- }
- /*
- @interface DOMCSSValue : DOMObject
- */
- [
- object,
- oleautomation,
- uuid(51D29553-2AF7-4f52-AFE6-3C59196A8BAA),
- pointer_default(unique)
- ]
- interface IDOMCSSValue : IDOMObject
- {
- /*
- - (NSString *)cssText;
- */
- HRESULT cssText([out, retval] BSTR* text);
- /*
- - (void)setCssText:(NSString *)cssText;
- */
- HRESULT setCssText([in] BSTR text);
- /*
- - (unsigned short)cssValueType;
- */
- HRESULT cssValueType([out, retval] unsigned short *valueType);
- }
- /*
- @interface DOMCSSStyleSheet : DOMStyleSheet
- */
- [
- object,
- oleautomation,
- uuid(14B1C213-1458-48a1-AD8F-54BFE64F9ECF),
- pointer_default(unique)
- ]
- interface IDOMCSSStyleSheet : IDOMObject
- {
- /*
- - (DOMCSSRule *)ownerRule;
- */
- HRESULT ownerRule([out, retval] IDOMCSSRule** rule);
- /*
- - (DOMCSSRuleList *)cssRules;
- */
- HRESULT cssRules([out, retval] IDOMCSSRuleList** ruleList);
- /*
- - (unsigned)insertRule:(NSString *)rule :(unsigned)index;
- */
- HRESULT insertRule([in] BSTR rule, [in] UINT index, [out, retval] UINT* result);
- /*
- - (void)deleteRule:(unsigned)index;
- */
- HRESULT deleteRule([in] UINT index);
- }
- /*
- @interface DOMElement (DOMElementCSSInlineStyle)
- */
- [
- object,
- oleautomation,
- uuid(585127E2-D698-44c4-83EC-4D1E6E07E90D),
- pointer_default(unique)
- ]
- interface IDOMElementCSSInlineStyle : IUnknown
- {
- /*
- - (DOMCSSStyleDeclaration *)style;
- */
- HRESULT style([out, retval] IDOMCSSStyleDeclaration** result);
- }
|