added accessors to get & set alternate style sheets

git-svn-id: svn://10.0.0.236/trunk@18420 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com 1999-01-23 07:00:39 +00:00
parent edced705c2
commit c2d5d9cb79
2 changed files with 22 additions and 0 deletions

View File

@ -33,6 +33,8 @@ class nsIDeviceContext;
class nsIRenderingContext;
class nsIPageSequenceFrame;
class nsISelection;
class nsString;
class nsStringArray;
#define NS_IPRESSHELL_IID \
{ 0x76e79c60, 0x944e, 0x11d1, \
@ -64,6 +66,15 @@ public:
virtual nsIStyleSet* GetStyleSet() = 0;
NS_IMETHOD GetActiveAlternateStyleSheet(nsString& aSheetTitle) = 0;
NS_IMETHOD SelectAlternateStyleSheet(const nsString& aSheetTitle) = 0;
/**
* Gather titles of all selectable (alternate and preferred) style sheets
* fills void array with nsString* caller must free strings
*/
NS_IMETHOD ListAlternateStyleSheets(nsStringArray& aTitleList) = 0;
/** GetSelection will return the selection that the presentation shell may implement.
* @param aSelection will hold the return value
*/

View File

@ -33,6 +33,8 @@ class nsIDeviceContext;
class nsIRenderingContext;
class nsIPageSequenceFrame;
class nsISelection;
class nsString;
class nsStringArray;
#define NS_IPRESSHELL_IID \
{ 0x76e79c60, 0x944e, 0x11d1, \
@ -64,6 +66,15 @@ public:
virtual nsIStyleSet* GetStyleSet() = 0;
NS_IMETHOD GetActiveAlternateStyleSheet(nsString& aSheetTitle) = 0;
NS_IMETHOD SelectAlternateStyleSheet(const nsString& aSheetTitle) = 0;
/**
* Gather titles of all selectable (alternate and preferred) style sheets
* fills void array with nsString* caller must free strings
*/
NS_IMETHOD ListAlternateStyleSheets(nsStringArray& aTitleList) = 0;
/** GetSelection will return the selection that the presentation shell may implement.
* @param aSelection will hold the return value
*/