| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FXFA_PARSER_XFA_PARSER_IMP_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_PARSER_IMP_H_ |
| 8 #define XFA_FXFA_PARSER_XFA_PARSER_IMP_H_ | 8 #define XFA_FXFA_PARSER_XFA_PARSER_IMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fde/xml/fde_xml_imp.h" | 10 #include "xfa/fde/xml/fde_xml_imp.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 CFDE_XMLDoc* GetXMLDoc() const override { return m_nodeParser.GetXMLDoc(); } | 102 CFDE_XMLDoc* GetXMLDoc() const override { return m_nodeParser.GetXMLDoc(); } |
| 103 CXFA_FFNotify* GetNotify() const { return m_pNotify; } | 103 CXFA_FFNotify* GetNotify() const { return m_pNotify; } |
| 104 CXFA_Document* GetDocument() const { return m_pDocument; } | 104 CXFA_Document* GetDocument() const { return m_pDocument; } |
| 105 void CloseParser() override; | 105 void CloseParser() override; |
| 106 | 106 |
| 107 protected: | 107 protected: |
| 108 CXFA_SimpleParser m_nodeParser; | 108 CXFA_SimpleParser m_nodeParser; |
| 109 CXFA_FFNotify* m_pNotify; | 109 CXFA_FFNotify* m_pNotify; |
| 110 CXFA_Document* m_pDocument; | 110 CXFA_Document* m_pDocument; |
| 111 }; | 111 }; |
| 112 typedef CFX_StackTemplate<CFDE_XMLNode*> CXFA_XMLNodeStack; | |
| 113 | 112 |
| 114 class CXFA_XMLParser : public CFDE_XMLParser { | 113 class CXFA_XMLParser : public CFDE_XMLParser { |
| 115 public: | 114 public: |
| 116 CXFA_XMLParser(CFDE_XMLNode* pRoot, IFX_Stream* pStream); | 115 CXFA_XMLParser(CFDE_XMLNode* pRoot, IFX_Stream* pStream); |
| 117 ~CXFA_XMLParser(); | 116 ~CXFA_XMLParser(); |
| 118 | 117 |
| 119 virtual void Release() { delete this; } | 118 virtual void Release() { delete this; } |
| 120 virtual int32_t DoParser(IFX_Pause* pPause); | 119 virtual int32_t DoParser(IFX_Pause* pPause); |
| 121 | 120 |
| 122 FX_FILESIZE m_nStart[2]; | 121 FX_FILESIZE m_nStart[2]; |
| 123 size_t m_nSize[2]; | 122 size_t m_nSize[2]; |
| 124 FX_FILESIZE m_nElementStart; | 123 FX_FILESIZE m_nElementStart; |
| 125 uint16_t m_dwCheckStatus; | 124 uint16_t m_dwCheckStatus; |
| 126 uint16_t m_dwCurrentCheckStatus; | 125 uint16_t m_dwCurrentCheckStatus; |
| 127 | 126 |
| 128 protected: | 127 protected: |
| 129 CFDE_XMLNode* m_pRoot; | 128 CFDE_XMLNode* m_pRoot; |
| 130 IFX_Stream* m_pStream; | 129 IFX_Stream* m_pStream; |
| 131 CFDE_XMLSyntaxParser* m_pParser; | 130 CFDE_XMLSyntaxParser* m_pParser; |
| 132 CFDE_XMLNode* m_pParent; | 131 CFDE_XMLNode* m_pParent; |
| 133 CFDE_XMLNode* m_pChild; | 132 CFDE_XMLNode* m_pChild; |
| 134 CXFA_XMLNodeStack m_NodeStack; | 133 CFX_StackTemplate<CFDE_XMLNode*> m_NodeStack; |
| 135 CFX_WideString m_ws1; | 134 CFX_WideString m_ws1; |
| 136 CFX_WideString m_ws2; | 135 CFX_WideString m_ws2; |
| 137 FDE_XmlSyntaxResult m_syntaxParserResult; | 136 FDE_XmlSyntaxResult m_syntaxParserResult; |
| 138 }; | 137 }; |
| 139 | 138 |
| 140 #endif // XFA_FXFA_PARSER_XFA_PARSER_IMP_H_ | 139 #endif // XFA_FXFA_PARSER_XFA_PARSER_IMP_H_ |
| OLD | NEW |