| 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_FDE_XML_FDE_XML_IMP_H_ | 7 #ifndef XFA_FDE_XML_FDE_XML_IMP_H_ |
| 8 #define XFA_FDE_XML_FDE_XML_IMP_H_ | 8 #define XFA_FDE_XML_FDE_XML_IMP_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 void SetCharData(const CFX_WideString& wsCData) { m_wsCharData = wsCData; } | 186 void SetCharData(const CFX_WideString& wsCData) { m_wsCharData = wsCData; } |
| 187 | 187 |
| 188 CFX_WideString m_wsCharData; | 188 CFX_WideString m_wsCharData; |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 class CFDE_XMLDoc : public CFX_Target { | 191 class CFDE_XMLDoc : public CFX_Target { |
| 192 public: | 192 public: |
| 193 CFDE_XMLDoc(); | 193 CFDE_XMLDoc(); |
| 194 ~CFDE_XMLDoc() override; | 194 ~CFDE_XMLDoc() override; |
| 195 | 195 |
| 196 void Release() { delete this; } | |
| 197 FX_BOOL LoadXML(CFDE_XMLParser* pXMLParser); | 196 FX_BOOL LoadXML(CFDE_XMLParser* pXMLParser); |
| 198 int32_t DoLoad(IFX_Pause* pPause = nullptr); | 197 int32_t DoLoad(IFX_Pause* pPause = nullptr); |
| 199 void CloseXML(); | 198 void CloseXML(); |
| 200 CFDE_XMLNode* GetRoot() const { return m_pRoot; } | 199 CFDE_XMLNode* GetRoot() const { return m_pRoot; } |
| 201 void SaveXML(IFX_Stream* pXMLStream = nullptr, FX_BOOL bSaveBOM = TRUE); | 200 void SaveXML(IFX_Stream* pXMLStream = nullptr, FX_BOOL bSaveBOM = TRUE); |
| 202 void SaveXMLNode(IFX_Stream* pXMLStream, CFDE_XMLNode* pNode); | 201 void SaveXMLNode(IFX_Stream* pXMLStream, CFDE_XMLNode* pNode); |
| 203 | 202 |
| 204 protected: | 203 protected: |
| 205 void Reset(FX_BOOL bInitRoot); | 204 void Reset(FX_BOOL bInitRoot); |
| 206 void ReleaseParser(); | 205 void ReleaseParser(); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 int32_t m_iTextDataLength; | 342 int32_t m_iTextDataLength; |
| 344 FDE_XmlSyntaxResult m_syntaxParserResult; | 343 FDE_XmlSyntaxResult m_syntaxParserResult; |
| 345 FDE_XmlSyntaxState m_syntaxParserState; | 344 FDE_XmlSyntaxState m_syntaxParserState; |
| 346 FX_WCHAR m_wQuotationMark; | 345 FX_WCHAR m_wQuotationMark; |
| 347 int32_t m_iEntityStart; | 346 int32_t m_iEntityStart; |
| 348 CFX_DWordStack m_SkipStack; | 347 CFX_DWordStack m_SkipStack; |
| 349 FX_WCHAR m_SkipChar; | 348 FX_WCHAR m_SkipChar; |
| 350 }; | 349 }; |
| 351 | 350 |
| 352 #endif // XFA_FDE_XML_FDE_XML_IMP_H_ | 351 #endif // XFA_FDE_XML_FDE_XML_IMP_H_ |
| OLD | NEW |