added aFirst out param to GetTextProperty, so the caller can know if the first character has the property

in the case of aAny=true and aAll=false.
This commit is contained in:
buster%netscape.com 1999-04-04 17:59:09 +00:00
parent f4c3ca6058
commit b249af5eeb
3 changed files with 13 additions and 12 deletions

View File

@ -125,9 +125,9 @@ public:
* @param aResultIsSet PR_TRUE if aAttribute is set on the current node, PR_FALSE if it is not.
*/
NS_IMETHOD GetAttributeValue(nsIDOMElement * aElement,
const nsString& aAttribute,
nsString& aResultValue,
PRBool& aResultIsSet)=0;
const nsString& aAttribute,
nsString& aResultValue,
PRBool& aResultIsSet)=0;
/**
* RemoveAttribute() deletes aAttribute from the attribute list of aElement.
@ -137,7 +137,7 @@ public:
* @param aAttribute the string representation of the attribute to get
*/
NS_IMETHOD RemoveAttribute(nsIDOMElement * aElement,
const nsString& aAttribute)=0;
const nsString& aAttribute)=0;
/**
* CreateNode instantiates a new element of type aTag and inserts it into aParent at aPosition.
@ -147,9 +147,9 @@ public:
* @param aNewNode [OUT] The node created. Caller must release aNewNode.
*/
NS_IMETHOD CreateNode(const nsString& aTag,
nsIDOMNode * aParent,
PRInt32 aPosition,
nsIDOMNode ** aNewNode)=0;
nsIDOMNode * aParent,
PRInt32 aPosition,
nsIDOMNode ** aNewNode)=0;
/**
* InsertNode inserts aNode into aParent at aPosition.
@ -160,8 +160,8 @@ public:
* @param aPosition The place in aParent to insert the new node
*/
NS_IMETHOD InsertNode(nsIDOMNode * aNode,
nsIDOMNode * aParent,
PRInt32 aPosition)=0;
nsIDOMNode * aParent,
PRInt32 aPosition)=0;
/**
@ -177,7 +177,6 @@ public:
/**
* DeleteNode removes aChild from aParent.
* If aChild is not a child of aParent, nothing is done and an error is returned.
* @param aChild The node to delete
*/
NS_IMETHOD DeleteNode(nsIDOMNode * aChild)=0;
@ -325,6 +324,8 @@ public:
*/
NS_IMETHOD Paste()=0;
NS_IMETHOD DebugDumpContent() const =0;
};
#endif //nsIEditor_h__

View File

@ -50,7 +50,7 @@ public:
// Methods shared with nsITextEditor (see nsITextEditor.h for details)
NS_IMETHOD SetTextProperty(nsIAtom *aProperty)=0;
NS_IMETHOD GetTextProperty(nsIAtom *aProperty, PRBool &aAll, PRBool &aAny)=0;
NS_IMETHOD GetTextProperty(nsIAtom *aProperty, PRBool &aFirst, PRBool &aAll, PRBool &aAny)=0;
NS_IMETHOD RemoveTextProperty(nsIAtom *aProperty)=0;
NS_IMETHOD DeleteSelection(nsIEditor::Direction aDir)=0;
NS_IMETHOD InsertText(const nsString& aStringToInsert)=0;

View File

@ -73,7 +73,7 @@ public:
* in the current selection. Each item in aPropList is an nsEditProperty.
* NOTE: this method is experimental, expect it to change.
*/
NS_IMETHOD GetTextProperty(nsIAtom *aProperty, PRBool &aAny, PRBool &aAll)=0;
NS_IMETHOD GetTextProperty(nsIAtom *aProperty, PRBool &aFirst, PRBool &aAny, PRBool &aAll)=0;
/**
* RemoveTextProperties() deletes the properties from all text in the current selection.