mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
73 lines
1.9 KiB
C++
73 lines
1.9 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
* for the specific language governing rights and limitations under the
|
|
* NPL.
|
|
*
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
|
|
|
|
/**
|
|
* MODULE NOTES:
|
|
* @update gess 4/1/98
|
|
*
|
|
*/
|
|
|
|
#ifndef __NSXMLTOKENIZER
|
|
#define __NSXMLTOKENIZER
|
|
|
|
#include "nsISupports.h"
|
|
#include "nsHTMLTokenizer.h"
|
|
#include "nsIParser.h"
|
|
#include "nsIDTD.h"
|
|
#include "prtypes.h"
|
|
#include "nsDeque.h"
|
|
#include "nsScanner.h"
|
|
#include "nsHTMLTokens.h"
|
|
|
|
#define NS_XMLTOKENIZER_IID \
|
|
{0xcf22e1fa, 0x9ed2, 0x11d2, { 0xba, 0xa5, 0x0, 0x10, 0x4b, 0x98, 0x3f, 0xd4 }}
|
|
|
|
|
|
|
|
/***************************************************************
|
|
Notes:
|
|
***************************************************************/
|
|
|
|
#if defined(XP_PC)
|
|
#pragma warning( disable : 4275 )
|
|
#endif
|
|
|
|
CLASS_EXPORT_HTMLPARS nsXMLTokenizer : public nsHTMLTokenizer {
|
|
public:
|
|
nsXMLTokenizer();
|
|
~nsXMLTokenizer();
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
virtual nsresult ConsumeToken(nsScanner& aScanner);
|
|
virtual nsITokenRecycler* GetTokenRecycler(void);
|
|
|
|
protected:
|
|
|
|
virtual nsresult HandleSkippedContent(nsScanner& aScanner,CToken*& aToken);
|
|
virtual nsresult ConsumeComment(PRUnichar aChar,nsScanner& aScanner,CToken*& aToken);
|
|
|
|
};
|
|
|
|
extern NS_HTMLPARS nsresult NS_NewXMLTokenizer(nsIDTD** aInstancePtrResult);
|
|
|
|
#endif
|
|
|
|
|