1999-01-09 01:09:02 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-01-09 01:09:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MODULE NOTES:
|
|
|
|
* @update gess 4/1/98
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NSHTMLTOKENIZER
|
|
|
|
#define __NSHTMLTOKENIZER
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsITokenizer.h"
|
|
|
|
#include "nsIDTD.h"
|
|
|
|
#include "prtypes.h"
|
|
|
|
#include "nsDeque.h"
|
|
|
|
#include "nsScanner.h"
|
|
|
|
|
2003-04-02 22:45:08 +00:00
|
|
|
#ifdef _MSC_VER
|
1999-01-09 01:09:02 +00:00
|
|
|
#pragma warning( disable : 4275 )
|
|
|
|
#endif
|
|
|
|
|
2001-10-23 01:37:21 +00:00
|
|
|
class nsHTMLTokenizer : public nsITokenizer {
|
1999-01-09 01:09:02 +00:00
|
|
|
public:
|
2002-01-09 01:37:50 +00:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSITOKENIZER
|
2009-06-23 21:22:16 +00:00
|
|
|
nsHTMLTokenizer(nsDTDMode aParseMode = eDTDMode_quirks,
|
2008-09-26 22:43:37 +00:00
|
|
|
eParserDocType aDocType = eHTML_Quirks,
|
2004-12-01 04:37:36 +00:00
|
|
|
eParserCommands aCommand = eViewNormal,
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t aFlags = 0);
|
1999-01-26 01:24:31 +00:00
|
|
|
virtual ~nsHTMLTokenizer();
|
1999-01-09 01:09:02 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
static uint32_t GetFlags(const nsIContentSink* aSink);
|
1999-01-09 01:09:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|