Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: xfa/fxfa/parser/cxfa_simple_parser.h

Issue 2162263003: Remove CXFA_DocumentParser friendship with CXFA_SimpleParser (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa_parser_VI
Patch Set: Rebase to master Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CXFA_SIMPLE_PARSER_H_ 7 #ifndef XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_
8 #define XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ 8 #define XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 int32_t StartParse(IFX_FileRead* pStream, XFA_XDPPACKET ePacketID); 27 int32_t StartParse(IFX_FileRead* pStream, XFA_XDPPACKET ePacketID);
28 int32_t DoParse(IFX_Pause* pPause = nullptr); 28 int32_t DoParse(IFX_Pause* pPause = nullptr);
29 int32_t ParseXMLData(const CFX_WideString& wsXML, 29 int32_t ParseXMLData(const CFX_WideString& wsXML,
30 CFDE_XMLNode*& pXMLNode, 30 CFDE_XMLNode*& pXMLNode,
31 IFX_Pause* pPause = nullptr); 31 IFX_Pause* pPause = nullptr);
32 void ConstructXFANode(CXFA_Node* pXFANode, CFDE_XMLNode* pXMLNode); 32 void ConstructXFANode(CXFA_Node* pXFANode, CFDE_XMLNode* pXMLNode);
33 CXFA_Node* GetRootNode() const; 33 CXFA_Node* GetRootNode() const;
34 CFDE_XMLDoc* GetXMLDoc() const; 34 CFDE_XMLDoc* GetXMLDoc() const;
35 void CloseParser(); 35 void CloseParser();
36 36
37 protected: 37 void SetFactory(CXFA_Document* pFactory);
38
39 private:
38 CXFA_Node* ParseAsXDPPacket(CFDE_XMLNode* pXMLDocumentNode, 40 CXFA_Node* ParseAsXDPPacket(CFDE_XMLNode* pXMLDocumentNode,
39 XFA_XDPPACKET ePacketID); 41 XFA_XDPPACKET ePacketID);
40 CXFA_Node* ParseAsXDPPacket_XDP(CFDE_XMLNode* pXMLDocumentNode, 42 CXFA_Node* ParseAsXDPPacket_XDP(CFDE_XMLNode* pXMLDocumentNode,
41 XFA_XDPPACKET ePacketID); 43 XFA_XDPPACKET ePacketID);
42 CXFA_Node* ParseAsXDPPacket_Config(CFDE_XMLNode* pXMLDocumentNode, 44 CXFA_Node* ParseAsXDPPacket_Config(CFDE_XMLNode* pXMLDocumentNode,
43 XFA_XDPPACKET ePacketID); 45 XFA_XDPPACKET ePacketID);
44 CXFA_Node* ParseAsXDPPacket_TemplateForm(CFDE_XMLNode* pXMLDocumentNode, 46 CXFA_Node* ParseAsXDPPacket_TemplateForm(CFDE_XMLNode* pXMLDocumentNode,
45 XFA_XDPPACKET ePacketID); 47 XFA_XDPPACKET ePacketID);
46 CXFA_Node* ParseAsXDPPacket_Data(CFDE_XMLNode* pXMLDocumentNode, 48 CXFA_Node* ParseAsXDPPacket_Data(CFDE_XMLNode* pXMLDocumentNode,
47 XFA_XDPPACKET ePacketID); 49 XFA_XDPPACKET ePacketID);
(...skipping 17 matching lines...) Expand all
65 XFA_XDPPACKET ePacketID); 67 XFA_XDPPACKET ePacketID);
66 void ParseDataValue(CXFA_Node* pXFANode, 68 void ParseDataValue(CXFA_Node* pXFANode,
67 CFDE_XMLNode* pXMLNode, 69 CFDE_XMLNode* pXMLNode,
68 XFA_XDPPACKET ePacketID); 70 XFA_XDPPACKET ePacketID);
69 void ParseDataGroup(CXFA_Node* pXFANode, 71 void ParseDataGroup(CXFA_Node* pXFANode,
70 CFDE_XMLNode* pXMLNode, 72 CFDE_XMLNode* pXMLNode,
71 XFA_XDPPACKET ePacketID); 73 XFA_XDPPACKET ePacketID);
72 void ParseInstruction(CXFA_Node* pXFANode, 74 void ParseInstruction(CXFA_Node* pXFANode,
73 CFDE_XMLInstruction* pXMLInstruction, 75 CFDE_XMLInstruction* pXMLInstruction,
74 XFA_XDPPACKET ePacketID); 76 XFA_XDPPACKET ePacketID);
75 void SetFactory(CXFA_Document* pFactory);
76 77
77 CXFA_XMLParser* m_pXMLParser; 78 CXFA_XMLParser* m_pXMLParser;
78 std::unique_ptr<CFDE_XMLDoc> m_pXMLDoc; 79 std::unique_ptr<CFDE_XMLDoc> m_pXMLDoc;
79 std::unique_ptr<IFX_Stream, ReleaseDeleter<IFX_Stream>> m_pStream; 80 std::unique_ptr<IFX_Stream, ReleaseDeleter<IFX_Stream>> m_pStream;
80 IFX_FileRead* m_pFileRead; 81 IFX_FileRead* m_pFileRead;
81 CXFA_Document* m_pFactory; 82 CXFA_Document* m_pFactory;
82 CXFA_Node* m_pRootNode; 83 CXFA_Node* m_pRootNode;
83 XFA_XDPPACKET m_ePacketID; 84 XFA_XDPPACKET m_ePacketID;
84 FX_BOOL m_bDocumentParser; 85 FX_BOOL m_bDocumentParser;
85 friend class CXFA_DocumentParser;
86 }; 86 };
87 87
88 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ 88 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698