CSSStyleSheet.h 861 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSStyleSheet
  3. interface CSSStyleSheet : stylesheets::StyleSheet {
  4. readonly attribute CSSRule ownerRule;
  5. readonly attribute CSSRuleList cssRules;
  6. unsigned long insertRule(in DOMString rule,
  7. in unsigned long index)
  8. raises(DOMException);
  9. void deleteRule(in unsigned long index)
  10. raises(DOMException);
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import "CSSRule.h"
  14. #import "CSSRuleList.h"
  15. @interface CSSStyleSheet : NSObject
  16. @property(nonatomic,strong) CSSRule* ownerRule;
  17. @property(nonatomic,strong) CSSRuleList* cssRules;
  18. -(long) insertRule:(NSString*) rule index:(unsigned long) index;
  19. -(void) deleteRule:(unsigned long) index;
  20. #pragma mark - methods needed for ObjectiveC implementation
  21. - (id)initWithString:(NSString*) styleSheetBody;
  22. @end