27#ifndef _CSS_css_rule_h_
28#define _CSS_css_rule_h_
30#include <dom/dom_string.h>
31#include <dom/css_stylesheet.h>
32#include <dom/css_value.h>
52class TDEHTML_EXPORT CSSRule
56 CSSRule(
const CSSRule &other);
57 CSSRule(CSSRuleImpl *impl);
60 CSSRule & operator = (
const CSSRule &other);
85 unsigned short type()
const;
132 CSSRuleImpl *handle()
const;
138 void assignOther(
const CSSRule &other, RuleType thisType );
141class CSSCharsetRuleImpl;
149class TDEHTML_EXPORT CSSCharsetRule :
public CSSRule
153 CSSCharsetRule(
const CSSCharsetRule &other);
154 CSSCharsetRule(
const CSSRule &other);
155 CSSCharsetRule(CSSCharsetRuleImpl *impl);
158 CSSCharsetRule & operator = (
const CSSCharsetRule &other);
159 CSSCharsetRule & operator = (
const CSSRule &other);
185class CSSFontFaceRuleImpl;
193class TDEHTML_EXPORT CSSFontFaceRule :
public CSSRule
197 CSSFontFaceRule(
const CSSFontFaceRule &other);
198 CSSFontFaceRule(
const CSSRule &other);
199 CSSFontFaceRule(CSSFontFaceRuleImpl *impl);
202 CSSFontFaceRule & operator = (
const CSSFontFaceRule &other);
203 CSSFontFaceRule & operator = (
const CSSRule &other);
215class CSSImportRuleImpl;
223class TDEHTML_EXPORT CSSImportRule :
public CSSRule
227 CSSImportRule(
const CSSImportRule &other);
228 CSSImportRule(
const CSSRule &other);
229 CSSImportRule(CSSImportRuleImpl *impl);
232 CSSImportRule & operator = (
const CSSImportRule &other);
233 CSSImportRule & operator = (
const CSSRule &other);
262class CSSMediaRuleImpl;
270class TDEHTML_EXPORT CSSMediaRule :
public CSSRule
274 CSSMediaRule(
const CSSMediaRule &other);
275 CSSMediaRule(
const CSSRule &other);
276 CSSMediaRule(CSSMediaRuleImpl *impl);
279 CSSMediaRule & operator = (
const CSSMediaRule &other);
280 CSSMediaRule & operator = (
const CSSRule &other);
353class CSSPageRuleImpl;
362class TDEHTML_EXPORT CSSPageRule :
public CSSRule
366 CSSPageRule(
const CSSPageRule &other);
367 CSSPageRule(
const CSSRule &other);
368 CSSPageRule(CSSPageRuleImpl *impl);
371 CSSPageRule & operator = (
const CSSPageRule &other);
372 CSSPageRule & operator = (
const CSSRule &other);
404class CSSStyleRuleImpl;
411class TDEHTML_EXPORT CSSStyleRule :
public CSSRule
415 CSSStyleRule(
const CSSStyleRule &other);
416 CSSStyleRule(
const CSSRule &other);
417 CSSStyleRule(CSSStyleRuleImpl *impl);
420 CSSStyleRule & operator = (
const CSSStyleRule &other);
421 CSSStyleRule & operator = (
const CSSRule &other);
455class CSSUnknownRuleImpl;
461class TDEHTML_EXPORT CSSUnknownRule :
public CSSRule
465 CSSUnknownRule(
const CSSUnknownRule &other);
466 CSSUnknownRule(
const CSSRule &other);
467 CSSUnknownRule(CSSUnknownRuleImpl *impl);
470 CSSUnknownRule & operator = (
const CSSUnknownRule &other);
471 CSSUnknownRule & operator = (
const CSSRule &other);
477class CSSRuleListImpl;
484class TDEHTML_EXPORT CSSRuleList
488 CSSRuleList(
const CSSRuleList &other);
489 CSSRuleList(CSSRuleListImpl *i);
490 CSSRuleList(StyleListImpl *i);
493 CSSRuleList & operator = (
const CSSRuleList &other);
503 unsigned long length()
const;
523 CSSRuleListImpl *handle()
const;
528 CSSRuleListImpl *impl;
void setEncoding(const DOM::DOMString &)
see encoding
DOM::DOMString encoding() const
The encoding information used in this @charset rule.
CSSStyleDeclaration style() const
The declaration-block of this rule.
DOM::DOMString href() const
The location of the style sheet to be imported.
MediaList media() const
A list of media types for which this style sheet may be used.
CSSStyleSheet styleSheet() const
The style sheet referred to by this rule, if it has been loaded.
The CSSRuleList interface provides the abstraction of an ordered collection of CSS rules.
unsigned long length() const
The number of CSSRule s in the list.
CSSRule item(unsigned long index)
Used to retrieve a CSS rule by ordinal index.
The CSSRule interface is the abstract base interface for any type of CSS statement .
RuleType
An integer indicating which type of rule this is.
The CSSStyleDeclaration interface represents a single CSS declaration block .
DOM::DOMString selectorText() const
The textual representation of the selector for the rule set.
void setSelectorText(const DOM::DOMString &)
see selectorText
CSSStyleDeclaration style() const
The declaration-block of this rule set.
The CSSStyleSheet interface is a concrete interface used to represent a CSS style sheet i....
This class implements the basic string we use in the DOM.
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...