From bd9237eb346946b0caa291504c3a5f54e9b1bb3f Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 30 Mar 2017 16:49:42 -0400 Subject: Move CXFA_XMLParser to CFDE_XMLParser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is nothing XFA specific in the CXFA_XMLParser. This Cl moves it to the CFDE_XMLParser and co-locates with the other XML code. Change-Id: I86c12da3f6f5732be54b8019562978f88234e2fc Reviewed-on: https://pdfium-review.googlesource.com/3432 Reviewed-by: Nicolás Peña Commit-Queue: dsinclair --- xfa/fde/xml/cfde_xml_parser.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 xfa/fde/xml/cfde_xml_parser.h (limited to 'xfa/fde/xml/cfde_xml_parser.h') diff --git a/xfa/fde/xml/cfde_xml_parser.h b/xfa/fde/xml/cfde_xml_parser.h new file mode 100644 index 0000000000..cd8ccbe389 --- /dev/null +++ b/xfa/fde/xml/cfde_xml_parser.h @@ -0,0 +1,43 @@ +// Copyright 2016 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef XFA_FDE_XML_CFDE_XML_PARSER_H_ +#define XFA_FDE_XML_CFDE_XML_PARSER_H_ + +#include +#include + +#include "xfa/fde/xml/fde_xml_imp.h" + +class IFGAS_Stream; +class IFX_Pause; + +class CFDE_XMLParser { + public: + CFDE_XMLParser(CFDE_XMLNode* pParent, + const CFX_RetainPtr& pStream); + ~CFDE_XMLParser(); + + int32_t DoParser(IFX_Pause* pPause); + + FX_FILESIZE m_nStart[2]; + size_t m_nSize[2]; + FX_FILESIZE m_nElementStart; + uint16_t m_dwCheckStatus; + uint16_t m_dwCurrentCheckStatus; + + private: + CFX_RetainPtr m_pStream; + std::unique_ptr m_pParser; + CFDE_XMLNode* m_pParent; + CFDE_XMLNode* m_pChild; + std::stack m_NodeStack; + CFX_WideString m_ws1; + CFX_WideString m_ws2; + FDE_XmlSyntaxResult m_syntaxParserResult; +}; + +#endif // XFA_FDE_XML_CFDE_XML_PARSER_H_ -- cgit v1.2.3