Cleanup API
Added support for other rule types Added namespace support git-svn-id: svn://10.0.0.236/trunk@34563 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9465779a16
commit
bf9b5f28c1
@ -21,8 +21,9 @@
|
||||
#include "nslayout.h"
|
||||
#include "nsIStyleSheet.h"
|
||||
|
||||
class nsICSSStyleRule;
|
||||
class nsICSSRule;
|
||||
class nsIDOMNode;
|
||||
class nsINameSpace;
|
||||
|
||||
// IID for the nsICSSStyleSheet interface {8f83b0f0-b21a-11d1-8031-006008159b5a}
|
||||
#define NS_ICSS_STYLE_SHEET_IID \
|
||||
@ -32,19 +33,19 @@ class nsICSSStyleSheet : public nsIStyleSheet {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ICSS_STYLE_SHEET_IID; return iid; }
|
||||
|
||||
virtual PRBool ContainsStyleSheet(nsIURL* aURL) const = 0;
|
||||
NS_IMETHOD ContainsStyleSheet(nsIURL* aURL) const = 0;
|
||||
|
||||
virtual void AppendStyleSheet(nsICSSStyleSheet* aSheet) = 0;
|
||||
NS_IMETHOD AppendStyleSheet(nsICSSStyleSheet* aSheet) = 0;
|
||||
NS_IMETHOD InsertStyleSheetAt(nsICSSStyleSheet* aSheet, PRInt32 aIndex) = 0;
|
||||
|
||||
virtual void PrependStyleRule(nsICSSStyleRule* aRule) = 0;
|
||||
virtual void AppendStyleRule(nsICSSStyleRule* aRule) = 0;
|
||||
NS_IMETHOD PrependStyleRule(nsICSSRule* aRule) = 0;
|
||||
NS_IMETHOD AppendStyleRule(nsICSSRule* aRule) = 0;
|
||||
|
||||
virtual PRInt32 StyleRuleCount(void) const = 0;
|
||||
virtual nsresult GetStyleRuleAt(PRInt32 aIndex, nsICSSStyleRule*& aRule) const = 0;
|
||||
NS_IMETHOD StyleRuleCount(PRInt32& aCount) const = 0;
|
||||
NS_IMETHOD GetStyleRuleAt(PRInt32 aIndex, nsICSSRule*& aRule) const = 0;
|
||||
|
||||
virtual PRInt32 StyleSheetCount(void) const = 0;
|
||||
virtual nsresult GetStyleSheetAt(PRInt32 aIndex, nsICSSStyleSheet*& aSheet) const = 0;
|
||||
NS_IMETHOD StyleSheetCount(PRInt32& aCount) const = 0;
|
||||
NS_IMETHOD GetStyleSheetAt(PRInt32 aIndex, nsICSSStyleSheet*& aSheet) const = 0;
|
||||
|
||||
NS_IMETHOD Init(nsIURL* aURL) = 0;
|
||||
NS_IMETHOD SetTitle(const nsString& aTitle) = 0;
|
||||
@ -52,6 +53,9 @@ public:
|
||||
NS_IMETHOD ClearMedia(void) = 0;
|
||||
NS_IMETHOD SetOwningNode(nsIDOMNode* aOwningNode) = 0;
|
||||
|
||||
// get head of namespace chain for sheet
|
||||
NS_IMETHOD GetNameSpace(nsINameSpace*& aNameSpace) const = 0;
|
||||
|
||||
NS_IMETHOD Clone(nsICSSStyleSheet*& aClone) const = 0;
|
||||
|
||||
NS_IMETHOD IsUnmodified(void) const = 0; // NS_OK if not modified since construct/last reset, NS_COMFALSE otherwise
|
||||
|
||||
@ -21,8 +21,9 @@
|
||||
#include "nslayout.h"
|
||||
#include "nsIStyleSheet.h"
|
||||
|
||||
class nsICSSStyleRule;
|
||||
class nsICSSRule;
|
||||
class nsIDOMNode;
|
||||
class nsINameSpace;
|
||||
|
||||
// IID for the nsICSSStyleSheet interface {8f83b0f0-b21a-11d1-8031-006008159b5a}
|
||||
#define NS_ICSS_STYLE_SHEET_IID \
|
||||
@ -32,19 +33,19 @@ class nsICSSStyleSheet : public nsIStyleSheet {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ICSS_STYLE_SHEET_IID; return iid; }
|
||||
|
||||
virtual PRBool ContainsStyleSheet(nsIURL* aURL) const = 0;
|
||||
NS_IMETHOD ContainsStyleSheet(nsIURL* aURL) const = 0;
|
||||
|
||||
virtual void AppendStyleSheet(nsICSSStyleSheet* aSheet) = 0;
|
||||
NS_IMETHOD AppendStyleSheet(nsICSSStyleSheet* aSheet) = 0;
|
||||
NS_IMETHOD InsertStyleSheetAt(nsICSSStyleSheet* aSheet, PRInt32 aIndex) = 0;
|
||||
|
||||
virtual void PrependStyleRule(nsICSSStyleRule* aRule) = 0;
|
||||
virtual void AppendStyleRule(nsICSSStyleRule* aRule) = 0;
|
||||
NS_IMETHOD PrependStyleRule(nsICSSRule* aRule) = 0;
|
||||
NS_IMETHOD AppendStyleRule(nsICSSRule* aRule) = 0;
|
||||
|
||||
virtual PRInt32 StyleRuleCount(void) const = 0;
|
||||
virtual nsresult GetStyleRuleAt(PRInt32 aIndex, nsICSSStyleRule*& aRule) const = 0;
|
||||
NS_IMETHOD StyleRuleCount(PRInt32& aCount) const = 0;
|
||||
NS_IMETHOD GetStyleRuleAt(PRInt32 aIndex, nsICSSRule*& aRule) const = 0;
|
||||
|
||||
virtual PRInt32 StyleSheetCount(void) const = 0;
|
||||
virtual nsresult GetStyleSheetAt(PRInt32 aIndex, nsICSSStyleSheet*& aSheet) const = 0;
|
||||
NS_IMETHOD StyleSheetCount(PRInt32& aCount) const = 0;
|
||||
NS_IMETHOD GetStyleSheetAt(PRInt32 aIndex, nsICSSStyleSheet*& aSheet) const = 0;
|
||||
|
||||
NS_IMETHOD Init(nsIURL* aURL) = 0;
|
||||
NS_IMETHOD SetTitle(const nsString& aTitle) = 0;
|
||||
@ -52,6 +53,9 @@ public:
|
||||
NS_IMETHOD ClearMedia(void) = 0;
|
||||
NS_IMETHOD SetOwningNode(nsIDOMNode* aOwningNode) = 0;
|
||||
|
||||
// get head of namespace chain for sheet
|
||||
NS_IMETHOD GetNameSpace(nsINameSpace*& aNameSpace) const = 0;
|
||||
|
||||
NS_IMETHOD Clone(nsICSSStyleSheet*& aClone) const = 0;
|
||||
|
||||
NS_IMETHOD IsUnmodified(void) const = 0; // NS_OK if not modified since construct/last reset, NS_COMFALSE otherwise
|
||||
|
||||
@ -21,8 +21,9 @@
|
||||
#include "nslayout.h"
|
||||
#include "nsIStyleSheet.h"
|
||||
|
||||
class nsICSSStyleRule;
|
||||
class nsICSSRule;
|
||||
class nsIDOMNode;
|
||||
class nsINameSpace;
|
||||
|
||||
// IID for the nsICSSStyleSheet interface {8f83b0f0-b21a-11d1-8031-006008159b5a}
|
||||
#define NS_ICSS_STYLE_SHEET_IID \
|
||||
@ -32,19 +33,19 @@ class nsICSSStyleSheet : public nsIStyleSheet {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ICSS_STYLE_SHEET_IID; return iid; }
|
||||
|
||||
virtual PRBool ContainsStyleSheet(nsIURL* aURL) const = 0;
|
||||
NS_IMETHOD ContainsStyleSheet(nsIURL* aURL) const = 0;
|
||||
|
||||
virtual void AppendStyleSheet(nsICSSStyleSheet* aSheet) = 0;
|
||||
NS_IMETHOD AppendStyleSheet(nsICSSStyleSheet* aSheet) = 0;
|
||||
NS_IMETHOD InsertStyleSheetAt(nsICSSStyleSheet* aSheet, PRInt32 aIndex) = 0;
|
||||
|
||||
virtual void PrependStyleRule(nsICSSStyleRule* aRule) = 0;
|
||||
virtual void AppendStyleRule(nsICSSStyleRule* aRule) = 0;
|
||||
NS_IMETHOD PrependStyleRule(nsICSSRule* aRule) = 0;
|
||||
NS_IMETHOD AppendStyleRule(nsICSSRule* aRule) = 0;
|
||||
|
||||
virtual PRInt32 StyleRuleCount(void) const = 0;
|
||||
virtual nsresult GetStyleRuleAt(PRInt32 aIndex, nsICSSStyleRule*& aRule) const = 0;
|
||||
NS_IMETHOD StyleRuleCount(PRInt32& aCount) const = 0;
|
||||
NS_IMETHOD GetStyleRuleAt(PRInt32 aIndex, nsICSSRule*& aRule) const = 0;
|
||||
|
||||
virtual PRInt32 StyleSheetCount(void) const = 0;
|
||||
virtual nsresult GetStyleSheetAt(PRInt32 aIndex, nsICSSStyleSheet*& aSheet) const = 0;
|
||||
NS_IMETHOD StyleSheetCount(PRInt32& aCount) const = 0;
|
||||
NS_IMETHOD GetStyleSheetAt(PRInt32 aIndex, nsICSSStyleSheet*& aSheet) const = 0;
|
||||
|
||||
NS_IMETHOD Init(nsIURL* aURL) = 0;
|
||||
NS_IMETHOD SetTitle(const nsString& aTitle) = 0;
|
||||
@ -52,6 +53,9 @@ public:
|
||||
NS_IMETHOD ClearMedia(void) = 0;
|
||||
NS_IMETHOD SetOwningNode(nsIDOMNode* aOwningNode) = 0;
|
||||
|
||||
// get head of namespace chain for sheet
|
||||
NS_IMETHOD GetNameSpace(nsINameSpace*& aNameSpace) const = 0;
|
||||
|
||||
NS_IMETHOD Clone(nsICSSStyleSheet*& aClone) const = 0;
|
||||
|
||||
NS_IMETHOD IsUnmodified(void) const = 0; // NS_OK if not modified since construct/last reset, NS_COMFALSE otherwise
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user