2000-01-14 00:43:39 +00:00
|
|
|
#ifndef _nsIPresState_h
|
|
|
|
#define _nsIPresState_h
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
|
|
|
|
// {98DABCE1-C9D7-11d3-BF87-00105A1B0627}
|
|
|
|
#define NS_IPRESSTATE_IID \
|
|
|
|
{ 0x98dabce1, 0xc9d7, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
|
|
|
|
|
|
|
|
class nsIPresState : public nsISupports {
|
|
|
|
public:
|
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRESSTATE_IID)
|
|
|
|
|
2000-08-23 17:27:06 +00:00
|
|
|
NS_IMETHOD GetStatePropertyAsSupports(const nsAReadableString& aName,
|
|
|
|
nsISupports** aResult) = 0;
|
|
|
|
NS_IMETHOD SetStatePropertyAsSupports(const nsAReadableString& aName,
|
|
|
|
nsISupports* aValue) = 0;
|
2000-01-14 09:28:54 +00:00
|
|
|
|
2000-08-23 17:27:06 +00:00
|
|
|
NS_IMETHOD GetStateProperty(const nsAReadableString& aName,
|
|
|
|
nsAWritableString& aResult) = 0;
|
|
|
|
NS_IMETHOD SetStateProperty(const nsAReadableString& aProperty,
|
|
|
|
const nsAReadableString& aValue) = 0;
|
2000-10-02 23:23:55 +00:00
|
|
|
|
|
|
|
NS_IMETHOD RemoveStateProperty(const nsAReadableString& aName) = 0;
|
2000-01-14 00:43:39 +00:00
|
|
|
};
|
|
|
|
|
2000-01-14 09:28:54 +00:00
|
|
|
extern nsresult
|
|
|
|
NS_NewPresState(nsIPresState** aResult);
|
|
|
|
|
2000-01-14 00:43:39 +00:00
|
|
|
#endif /* _nsIPresState_h */
|