diff --git a/htmlparser/src/nsDefaultTokenHandler.cpp b/htmlparser/src/nsDefaultTokenHandler.cpp index 20bad550ece3..58650aac1f26 100644 --- a/htmlparser/src/nsDefaultTokenHandler.cpp +++ b/htmlparser/src/nsDefaultTokenHandler.cpp @@ -31,60 +31,60 @@ static const char* kNullParserGiven = "Error: Null parser given as argument"; -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CDefaultTokenHandler::CDefaultTokenHandler(eHTMLTokenTypes aType) { mType=aType; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CDefaultTokenHandler::~CDefaultTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ eHTMLTokenTypes CDefaultTokenHandler::GetTokenType(void){ return mType; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CDefaultTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CDefaultTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); PRBool result=PR_FALSE; @@ -95,35 +95,35 @@ PRBool CDefaultTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CStartTokenHandler::CStartTokenHandler() : CDefaultTokenHandler(eToken_start) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CStartTokenHandler::~CStartTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CStartTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -132,48 +132,48 @@ PRBool CStartTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CStartTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CEndTokenHandler::CEndTokenHandler(): CDefaultTokenHandler(eToken_end) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CEndTokenHandler::~CEndTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CEndTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -182,48 +182,48 @@ PRBool CEndTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CEndTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CCommentTokenHandler::CCommentTokenHandler() : CDefaultTokenHandler(eToken_comment) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CCommentTokenHandler::~CCommentTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CCommentTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -232,47 +232,47 @@ PRBool CCommentTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CCommentTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CEntityTokenHandler::CEntityTokenHandler() : CDefaultTokenHandler(eToken_entity) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CEntityTokenHandler::~CEntityTokenHandler() { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CEntityTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -281,47 +281,47 @@ PRBool CEntityTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CEntityTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CWhitespaceTokenHandler::CWhitespaceTokenHandler() : CDefaultTokenHandler(eToken_whitespace) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CWhitespaceTokenHandler::~CWhitespaceTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CWhitespaceTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -330,48 +330,48 @@ PRBool CWhitespaceTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser) return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CWhitespaceTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CNewlineTokenHandler::CNewlineTokenHandler() : CDefaultTokenHandler(eToken_newline) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CNewlineTokenHandler::~CNewlineTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CNewlineTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -380,47 +380,47 @@ PRBool CNewlineTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CNewlineTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CTextTokenHandler::CTextTokenHandler() : CDefaultTokenHandler(eToken_text) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CTextTokenHandler::~CTextTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CTextTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -429,46 +429,46 @@ PRBool CTextTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CTextTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CAttributeTokenHandler::CAttributeTokenHandler() : CDefaultTokenHandler(eToken_attribute) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CAttributeTokenHandler::~CAttributeTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CAttributeTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -477,47 +477,47 @@ PRBool CAttributeTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CAttributeTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CScriptTokenHandler::CScriptTokenHandler() : CDefaultTokenHandler(eToken_script) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CScriptTokenHandler::~CScriptTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CScriptTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -526,47 +526,47 @@ PRBool CScriptTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CScriptTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CStyleTokenHandler::CStyleTokenHandler() : CDefaultTokenHandler(eToken_style) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CStyleTokenHandler::~CStyleTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CStyleTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -575,47 +575,47 @@ PRBool CStyleTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CStyleTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CSkippedContentTokenHandler::CSkippedContentTokenHandler() : CDefaultTokenHandler(eToken_skippedcontent) { } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ CSkippedContentTokenHandler::~CSkippedContentTokenHandler(){ } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CSkippedContentTokenHandler::operator()(CToken* aToken,nsHTMLParser* aParser){ NS_ASSERTION(0!=aParser,kNullParserGiven); if(aParser){ @@ -624,13 +624,13 @@ PRBool CSkippedContentTokenHandler::operator()(CToken* aToken,nsHTMLParser* aPar return PR_FALSE; } -/**------------------------------------------------------- +/** * * * @update gess 4/2/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool CSkippedContentTokenHandler::CanHandle(eHTMLTokenTypes aType){ PRBool result=PR_FALSE; return result; diff --git a/htmlparser/src/nsHTMLContentSink.cpp b/htmlparser/src/nsHTMLContentSink.cpp index 2fb2822892a7..511ec3b90665 100644 --- a/htmlparser/src/nsHTMLContentSink.cpp +++ b/htmlparser/src/nsHTMLContentSink.cpp @@ -30,14 +30,14 @@ static NS_DEFINE_IID(kClassIID, NS_HTMLCONTENTSINK_IID); -/**------------------------------------------------------- +/** * "Fakey" factory method used to create an instance of * this class. * * @updated gess 3/25/98 * @param * @return - *------------------------------------------------------*/ + */ nsresult NS_NewHTMLContentSink(nsIContentSink** aInstancePtrResult) { nsHTMLContentSink *it = new nsHTMLContentSink(); @@ -50,27 +50,27 @@ nsresult NS_NewHTMLContentSink(nsIContentSink** aInstancePtrResult) } -/**------------------------------------------------------- +/** * Default constructor * * @updated gess 3/25/98 * @param * @return - *------------------------------------------------------*/ + */ nsHTMLContentSink::nsHTMLContentSink() : nsIHTMLContentSink(), mTitle("") { mNodeStackPos=0; memset(mNodeStack,0,sizeof(mNodeStack)); } -/**------------------------------------------------------- +/** * Default destructor. Probably not a good idea to call * this if you created your instance via the factor method. * * @updated gess 3/25/98 * @param * @return - *------------------------------------------------------*/ + */ nsHTMLContentSink::~nsHTMLContentSink() { } @@ -85,20 +85,20 @@ static void DebugDump(const char* str1,const nsString& str2,PRInt32 tabs) { #endif -/**------------------------------------------------------- +/** * This bit of magic creates the addref and release * methods for this class. * * @updated gess 3/25/98 * @param * @return - *------------------------------------------------------*/ + */ NS_IMPL_ADDREF(nsHTMLContentSink) NS_IMPL_RELEASE(nsHTMLContentSink) -/**------------------------------------------------------- +/** * Standard XPCOM query interface implementation. I used * my own version because this class is a subclass of both * ISupports and IContentSink. Perhaps there's a macro for @@ -107,7 +107,7 @@ NS_IMPL_RELEASE(nsHTMLContentSink) * @updated gess 3/25/98 * @param * @return - *------------------------------------------------------*/ + */ nsresult nsHTMLContentSink::QueryInterface(const nsIID& aIID, void** aInstancePtr) { if (NULL == aInstancePtr) { @@ -135,14 +135,14 @@ nsresult nsHTMLContentSink::QueryInterface(const nsIID& aIID, void** aInstancePt } -/**------------------------------------------------------- +/** * This method gets called by the parser when a * tag has been consumed. * * @updated gess 3/25/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool nsHTMLContentSink::OpenHTML(const nsIParserNode& aNode) { PRBool result=PR_TRUE; @@ -155,13 +155,13 @@ PRBool nsHTMLContentSink::OpenHTML(const nsIParserNode& aNode) { return result; } -/**------------------------------------------------------- +/** * This method gets called by the parser when a * tag has been consumed. * @updated gess 3/25/98 * @param * @return - *------------------------------------------------------*/ + */ PRBool nsHTMLContentSink::CloseHTML(const nsIParserNode& aNode){ NS_PRECONDITION(mNodeStackPos > 0, "node stack empty"); @@ -176,7 +176,7 @@ PRBool nsHTMLContentSink::CloseHTML(const nsIParserNode& aNode){ return result; } -/**------------------------------------------------------- +/** * This method gets called by the parser any time * head data gets consumed by the parser. Currently, that * list includes , , ,