2000-01-14 03:43:39 +03: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)
|
|
|
|
|
2002-03-24 01:26:36 +03:00
|
|
|
NS_IMETHOD GetStatePropertyAsSupports(const nsAString& aName,
|
2000-08-23 21:27:06 +04:00
|
|
|
nsISupports** aResult) = 0;
|
2002-03-24 01:26:36 +03:00
|
|
|
NS_IMETHOD SetStatePropertyAsSupports(const nsAString& aName,
|
2000-08-23 21:27:06 +04:00
|
|
|
nsISupports* aValue) = 0;
|
2000-01-14 12:28:54 +03:00
|
|
|
|
2002-03-24 01:26:36 +03:00
|
|
|
NS_IMETHOD GetStateProperty(const nsAString& aName,
|
|
|
|
nsAString& aResult) = 0;
|
|
|
|
NS_IMETHOD SetStateProperty(const nsAString& aProperty,
|
|
|
|
const nsAString& aValue) = 0;
|
2000-10-03 03:23:55 +04:00
|
|
|
|
2002-03-24 01:26:36 +03:00
|
|
|
NS_IMETHOD RemoveStateProperty(const nsAString& aName) = 0;
|
2000-01-14 03:43:39 +03:00
|
|
|
};
|
|
|
|
|
2003-03-05 18:08:41 +03:00
|
|
|
nsresult
|
2000-01-14 12:28:54 +03:00
|
|
|
NS_NewPresState(nsIPresState** aResult);
|
|
|
|
|
2000-01-14 03:43:39 +03:00
|
|
|
#endif /* _nsIPresState_h */
|