added accessors to get & set alternate style sheets

This commit is contained in:
peterl%netscape.com 1999-01-23 07:00:39 +00:00
Родитель b8cf627e7d
Коммит 50635cc188
2 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -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
*/

Просмотреть файл

@ -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
*/