assorted work to expose nav html dtd to editor

git-svn-id: svn://10.0.0.236/trunk@40185 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com
1999-07-19 22:52:48 +00:00
parent dcffb9602f
commit 744e1a0e4c
7 changed files with 46 additions and 0 deletions

View File

@@ -215,6 +215,13 @@ class CWellFormedDTD : public nsIDTD {
* @return ptr to recycler (or null)
*/
virtual nsITokenRecycler* GetTokenRecycler(void);
/**
* Give rest of world access to our tag enums, so that CanContain(), etc,
* become useful.
*/
NS_IMETHOD StringTagToIntTag(nsString &aTag, PRInt32* aIntTag) const;
protected:
/*

View File

@@ -932,6 +932,15 @@ PRBool nsXIFDTD::CanContain(PRInt32 aParent,PRInt32 aChild) const {
return result;
}
/**
* Give rest of world access to our tag enums, so that CanContain(), etc,
* become useful.
*/
NS_IMETHODIMP nsXIFDTD::StringTagToIntTag(nsString &aTag, PRInt32* aIntTag) const
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/**
* This method gets called to determine whether a given
* tag can contain newlines. Most do not.

View File

@@ -254,6 +254,12 @@ class nsXIFDTD : public nsIDTD {
*/
virtual PRBool Verify(nsString& aURLRef,nsIParser* aParser);
/**
* Give rest of world access to our tag enums, so that CanContain(), etc,
* become useful.
*/
NS_IMETHOD StringTagToIntTag(nsString &aTag, PRInt32* aIntTag) const;
/**
* Set this to TRUE if you want the DTD to verify its
* context stack.