Added AttributeToString and StringToAttribute methods

This commit is contained in:
kipp%netscape.com 1998-08-28 23:31:44 +00:00
parent 107b4e64b1
commit 1302b87842
2 changed files with 16 additions and 0 deletions

View File

@ -68,6 +68,14 @@ public:
virtual void MapAttributesInto(nsIStyleContext* aContext,
nsIPresContext* aPresContext) = 0;
virtual nsContentAttr AttributeToString(nsIAtom* aAttribute,
nsHTMLValue& aValue,
nsString& aResult) const = 0;
virtual nsContentAttr StringToAttribute(nsIAtom* aAttribute,
const nsString& aValue,
nsHTMLValue& aResult) = 0;
/**
* Translate this piece of content to html. Note that this only
* translates this content object, not any children it might

View File

@ -68,6 +68,14 @@ public:
virtual void MapAttributesInto(nsIStyleContext* aContext,
nsIPresContext* aPresContext) = 0;
virtual nsContentAttr AttributeToString(nsIAtom* aAttribute,
nsHTMLValue& aValue,
nsString& aResult) const = 0;
virtual nsContentAttr StringToAttribute(nsIAtom* aAttribute,
const nsString& aValue,
nsHTMLValue& aResult) = 0;
/**
* Translate this piece of content to html. Note that this only
* translates this content object, not any children it might