This commit is contained in:
buster%netscape.com 1999-01-06 20:30:35 +00:00
Родитель e14a1ee405
Коммит e5996d6647
1 изменённых файлов: 29 добавлений и 0 удалений

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

@ -20,6 +20,8 @@
#define nsIEditor_h__
#include "nsISupports.h"
class nsIDOMElement;
/*
Editor interface to outside world
*/
@ -79,6 +81,33 @@ public:
*/
virtual nsresult GetProperties(PROPERTIES **aProperty)=0;
/**
* SetAttribute() sets the attribute of the current node.
* No checking is done to see if aAttribute is a legal attribute of the node,
* or if aValue is a legal value of aAttribute.
*
* @param aAttribute the string representation of the attribute to set
* @param aValue the value to set aAttribute to
*/
virtual nsresult SetAttribute(nsIDOMElement * aElement,
const nsString& aAttribute,
const nsString& aValue)=0;
/**
* GetAttributeValue() retrieves the attribute's value for the current node.
*
* @param aAttribute the string representation of the attribute to get
* @param aResultValue the value of aAttribute. only valid if aResultIsSet is PR_TRUE
* @param aResultIsSet PR_TRUE if aAttribute is set on the current node, PR_FALSE if it is not.
*/
virtual nsresult GetAttributeValue(nsIDOMElement * aElement,
const nsString& aAttribute,
nsString& aResultValue,
PRBool& aResultIsSet)=0;
virtual nsresult RemoveAttribute(nsIDOMElement * aElement,
const nsString& aAttribute)=0;
/**
* InsertString() Inserts a string at the current location
*