#include "nsISupports.idl" interface nsIDOMDocument; interface nsIDOMWindow; interface nsIWebBrowser; [scriptable, uuid(49efff45-a031-442f-908e-593b0485950d)] interface nsIDonutPCompatible : nsISupports { attribute PRUint32 TabIndex; nsIDOMDocument GetDocumentObject(in PRUint32 nIndex); nsIDOMWindow GetWindowObject(in PRUint32 nIndex); nsIWebBrowser GetWebBrowserObject(in PRUint32 nIndex); PRUint32 GetTabCount(); PRUint32 NewWindow(in wstring strURL,in wstring isActive); void Close(in PRUint32 nIndex); void MoveToTab(in PRUint32 before,in PRUint32 after); PRUint32 MessageBox(in wstring strText,in wstring strCaption,in PRUint32 uType); PRUint32 GetTabState(in PRUint32 nIndex); void ShowPanelBar(); nsIDOMDocument GetPanelDonumentObject(); nsIDOMWindow GetPanelWindowObject(); nsIWebBrowser GetPanelWebBrowserObject(); void ExecuteCommand(in PRUint32 nCommand); wstring GetSearchText(); void SetSearchText(in wstring strText); wstring GetAddressText(); void SetAddressText(in wstring strText); PRUint32 GetExtendedTabState(in PRUint32 nIndex); void SetExtendedTabState(in PRUint32 nIndex,in PRUint32 nState); PRUint32 GetKeyState(in PRUint32 nKey); PRUint32 GetProfileInt(in wstring strFile,in wstring strSection,in wstring strKey,in PRUint32 nDefault); void WriteProfileInt(in wstring strFile,in wstring strSection,in wstring strKey,in PRUint32 nValue); wstring GetProfileString(in wstring strFile,in wstring strSection,in wstring strKey,in wstring strDefault); void WriteProfileString(in wstring strFile,in wstring strSection,in wstring strKey,in wstring strText); void SetStyleSheet(in PRUint32 nIndex,in wstring strStyleSheet,in boolean isOff); };