From 6c90c991c053012e67d5af319f2cb3e23f02f6bd Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Thu, 26 Nov 1998 01:24:32 +0000 Subject: [PATCH] added style sheet properties --- content/base/public/nsIStyleSheet.h | 17 ++++++++++++++++- layout/base/public/nsIStyleSheet.h | 17 ++++++++++++++++- layout/style/nsIStyleSheet.h | 17 ++++++++++++++++- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/content/base/public/nsIStyleSheet.h b/content/base/public/nsIStyleSheet.h index 838dc2b79f4a..23d34671f225 100644 --- a/content/base/public/nsIStyleSheet.h +++ b/content/base/public/nsIStyleSheet.h @@ -21,11 +21,13 @@ #include #include "nsISupports.h" class nsIAtom; +class nsString; class nsIURL; class nsIStyleRule; class nsISupportsArray; class nsIPresContext; class nsIContent; +class nsIDocument; class nsIStyleContext; // IID for the nsIStyleSheet interface {8c4a80a0-ad6a-11d1-8031-006008159b5a} @@ -34,7 +36,20 @@ class nsIStyleContext; class nsIStyleSheet : public nsISupports { public: - virtual nsIURL* GetURL(void) = 0; + // basic style sheet data + NS_IMETHOD GetURL(nsIURL*& aURL) const = 0; + NS_IMETHOD GetTitle(nsString& aTitle) const = 0; + NS_IMETHOD GetType(nsString& aType) const = 0; + NS_IMETHOD GetMediumCount(PRInt32& aCount) const = 0; + NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsString& aMedium) const = 0; + + NS_IMETHOD GetEnabled(PRBool& aEnabled) const = 0; + NS_IMETHOD SetEnabled(PRBool aEnabled) = 0; + + // style sheet owner info + NS_IMETHOD GetParentSheet(nsIStyleSheet*& aParent) const = 0; // may be null + NS_IMETHOD GetOwningDocument(nsIDocument*& aDocument) const = 0; // may be null + NS_IMETHOD SetOwningDocument(nsIDocument* aDocument) = 0; // populate supports array with nsIStyleRule* // rules are ordered, those with higher precedence come last diff --git a/layout/base/public/nsIStyleSheet.h b/layout/base/public/nsIStyleSheet.h index 838dc2b79f4a..23d34671f225 100644 --- a/layout/base/public/nsIStyleSheet.h +++ b/layout/base/public/nsIStyleSheet.h @@ -21,11 +21,13 @@ #include #include "nsISupports.h" class nsIAtom; +class nsString; class nsIURL; class nsIStyleRule; class nsISupportsArray; class nsIPresContext; class nsIContent; +class nsIDocument; class nsIStyleContext; // IID for the nsIStyleSheet interface {8c4a80a0-ad6a-11d1-8031-006008159b5a} @@ -34,7 +36,20 @@ class nsIStyleContext; class nsIStyleSheet : public nsISupports { public: - virtual nsIURL* GetURL(void) = 0; + // basic style sheet data + NS_IMETHOD GetURL(nsIURL*& aURL) const = 0; + NS_IMETHOD GetTitle(nsString& aTitle) const = 0; + NS_IMETHOD GetType(nsString& aType) const = 0; + NS_IMETHOD GetMediumCount(PRInt32& aCount) const = 0; + NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsString& aMedium) const = 0; + + NS_IMETHOD GetEnabled(PRBool& aEnabled) const = 0; + NS_IMETHOD SetEnabled(PRBool aEnabled) = 0; + + // style sheet owner info + NS_IMETHOD GetParentSheet(nsIStyleSheet*& aParent) const = 0; // may be null + NS_IMETHOD GetOwningDocument(nsIDocument*& aDocument) const = 0; // may be null + NS_IMETHOD SetOwningDocument(nsIDocument* aDocument) = 0; // populate supports array with nsIStyleRule* // rules are ordered, those with higher precedence come last diff --git a/layout/style/nsIStyleSheet.h b/layout/style/nsIStyleSheet.h index 838dc2b79f4a..23d34671f225 100644 --- a/layout/style/nsIStyleSheet.h +++ b/layout/style/nsIStyleSheet.h @@ -21,11 +21,13 @@ #include #include "nsISupports.h" class nsIAtom; +class nsString; class nsIURL; class nsIStyleRule; class nsISupportsArray; class nsIPresContext; class nsIContent; +class nsIDocument; class nsIStyleContext; // IID for the nsIStyleSheet interface {8c4a80a0-ad6a-11d1-8031-006008159b5a} @@ -34,7 +36,20 @@ class nsIStyleContext; class nsIStyleSheet : public nsISupports { public: - virtual nsIURL* GetURL(void) = 0; + // basic style sheet data + NS_IMETHOD GetURL(nsIURL*& aURL) const = 0; + NS_IMETHOD GetTitle(nsString& aTitle) const = 0; + NS_IMETHOD GetType(nsString& aType) const = 0; + NS_IMETHOD GetMediumCount(PRInt32& aCount) const = 0; + NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsString& aMedium) const = 0; + + NS_IMETHOD GetEnabled(PRBool& aEnabled) const = 0; + NS_IMETHOD SetEnabled(PRBool aEnabled) = 0; + + // style sheet owner info + NS_IMETHOD GetParentSheet(nsIStyleSheet*& aParent) const = 0; // may be null + NS_IMETHOD GetOwningDocument(nsIDocument*& aDocument) const = 0; // may be null + NS_IMETHOD SetOwningDocument(nsIDocument* aDocument) = 0; // populate supports array with nsIStyleRule* // rules are ordered, those with higher precedence come last