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

Side by Side Diff: xfa/src/fxfa/src/parser/xfa_parser_imp.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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
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_PARSER_IMP 7 #ifndef _XFA_PARSER_IMP
8 #define _XFA_PARSER_IMP 8 #define _XFA_PARSER_IMP
9 #define _XFA_VERIFY_Checksum_ 9 #define _XFA_VERIFY_Checksum_
10 class CXFA_XMLParser; 10 class CXFA_XMLParser;
11 class CXFA_SimpleParser : public IXFA_Parser 11 class CXFA_SimpleParser : public IXFA_Parser
12 { 12 {
13 public: 13 public:
14 CXFA_SimpleParser(IXFA_ObjFactory *pFactory, FX_BOOL bDocumentParser = FALSE ); 14 CXFA_SimpleParser(IXFA_ObjFactory *pFactory, FX_BOOL bDocumentParser = FALSE );
15 ~CXFA_SimpleParser(); 15 ~CXFA_SimpleParser();
16 virtual void Release() 16 virtual void Release()
17 { 17 {
18 delete this; 18 delete this;
19 } 19 }
20 20
21 virtual FX_INT32» » » StartParse(IFX_FileRead *pStream, XFA_XD PPACKET ePacketID = XFA_XDPPACKET_XDP); 21 virtual int32_t» » » StartParse(IFX_FileRead *pStream, XFA_XD PPACKET ePacketID = XFA_XDPPACKET_XDP);
22 virtual FX_INT32» » » DoParse(IFX_Pause *pPause = NULL); 22 virtual int32_t» » » DoParse(IFX_Pause *pPause = NULL);
23 virtual FX_INT32» » » ParseXMLData(const CFX_WideString &wsXML , IFDE_XMLNode* &pXMLNode, IFX_Pause *pPause = NULL); 23 virtual int32_t» » » ParseXMLData(const CFX_WideString &wsXML , IFDE_XMLNode* &pXMLNode, IFX_Pause *pPause = NULL);
24 virtual void ConstructXFANode(CXFA_Node* pXFA Node, IFDE_XMLNode* pXMLNode); 24 virtual void ConstructXFANode(CXFA_Node* pXFA Node, IFDE_XMLNode* pXMLNode);
25 virtual IXFA_ObjFactory* GetFactory() const 25 virtual IXFA_ObjFactory* GetFactory() const
26 { 26 {
27 return m_pFactory; 27 return m_pFactory;
28 } 28 }
29 virtual CXFA_Node* GetRootNode() const 29 virtual CXFA_Node* GetRootNode() const
30 { 30 {
31 return m_pRootNode; 31 return m_pRootNode;
32 } 32 }
33 virtual IFDE_XMLDoc* GetXMLDoc() const 33 virtual IFDE_XMLDoc* GetXMLDoc() const
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 }; 65 };
66 class CXFA_DocumentParser : public IXFA_DocParser 66 class CXFA_DocumentParser : public IXFA_DocParser
67 { 67 {
68 public: 68 public:
69 CXFA_DocumentParser(IXFA_Notify *pNotify); 69 CXFA_DocumentParser(IXFA_Notify *pNotify);
70 ~CXFA_DocumentParser(); 70 ~CXFA_DocumentParser();
71 virtual void Release() 71 virtual void Release()
72 { 72 {
73 delete this; 73 delete this;
74 } 74 }
75 virtual FX_INT32» » » StartParse(IFX_FileRead *pStream, XFA_XD PPACKET ePacketID = XFA_XDPPACKET_XDP); 75 virtual int32_t» » » StartParse(IFX_FileRead *pStream, XFA_XD PPACKET ePacketID = XFA_XDPPACKET_XDP);
76 virtual FX_INT32» » » DoParse(IFX_Pause *pPause = NULL); 76 virtual int32_t» » » DoParse(IFX_Pause *pPause = NULL);
77 virtual FX_INT32» » » ParseXMLData(const CFX_WideString &wsXML , IFDE_XMLNode* &pXMLNode, IFX_Pause *pPause = NULL); 77 virtual int32_t» » » ParseXMLData(const CFX_WideString &wsXML , IFDE_XMLNode* &pXMLNode, IFX_Pause *pPause = NULL);
78 virtual void ConstructXFANode(CXFA_Node* pXFA Node, IFDE_XMLNode* pXMLNode); 78 virtual void ConstructXFANode(CXFA_Node* pXFA Node, IFDE_XMLNode* pXMLNode);
79 virtual IXFA_ObjFactory* GetFactory() const 79 virtual IXFA_ObjFactory* GetFactory() const
80 { 80 {
81 return m_nodeParser.GetFactory(); 81 return m_nodeParser.GetFactory();
82 } 82 }
83 virtual CXFA_Node* GetRootNode() const 83 virtual CXFA_Node* GetRootNode() const
84 { 84 {
85 return m_nodeParser.GetRootNode(); 85 return m_nodeParser.GetRootNode();
86 } 86 }
87 virtual IFDE_XMLDoc* GetXMLDoc() const 87 virtual IFDE_XMLDoc* GetXMLDoc() const
(...skipping 18 matching lines...) Expand all
106 class CXFA_XMLParser : public IFDE_XMLParser 106 class CXFA_XMLParser : public IFDE_XMLParser
107 { 107 {
108 public: 108 public:
109 CXFA_XMLParser(IFDE_XMLNode *pRoot, IFX_Stream *pStream); 109 CXFA_XMLParser(IFDE_XMLNode *pRoot, IFX_Stream *pStream);
110 ~CXFA_XMLParser(); 110 ~CXFA_XMLParser();
111 111
112 virtual void Release() 112 virtual void Release()
113 { 113 {
114 delete this; 114 delete this;
115 } 115 }
116 virtual FX_INT32» » DoParser(IFX_Pause *pPause); 116 virtual int32_t» » DoParser(IFX_Pause *pPause);
117 protected: 117 protected:
118 IFDE_XMLNode *m_pRoot; 118 IFDE_XMLNode *m_pRoot;
119 IFX_Stream *m_pStream; 119 IFX_Stream *m_pStream;
120 IFDE_XMLSyntaxParser *m_pParser; 120 IFDE_XMLSyntaxParser *m_pParser;
121 121
122 IFDE_XMLNode *m_pParent; 122 IFDE_XMLNode *m_pParent;
123 IFDE_XMLNode *m_pChild; 123 IFDE_XMLNode *m_pChild;
124 CXFA_XMLNodeStack m_NodeStack; 124 CXFA_XMLNodeStack m_NodeStack;
125 CFX_WideString m_ws1; 125 CFX_WideString m_ws1;
126 CFX_WideString m_ws2; 126 CFX_WideString m_ws2;
127 FX_DWORD m_dwStatus; 127 FX_DWORD m_dwStatus;
128 #ifdef _XFA_VERIFY_Checksum_ 128 #ifdef _XFA_VERIFY_Checksum_
129 public: 129 public:
130 FX_FILESIZE m_nStart[2]; 130 FX_FILESIZE m_nStart[2];
131 size_t m_nSize[2]; 131 size_t m_nSize[2];
132 FX_FILESIZE m_nElementStart; 132 FX_FILESIZE m_nElementStart;
133 FX_WORD m_dwCheckStatus; 133 FX_WORD m_dwCheckStatus;
134 FX_WORD m_dwCurrentCheckStatus; 134 FX_WORD m_dwCurrentCheckStatus;
135 #endif 135 #endif
136 }; 136 };
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxfa/src/parser/xfa_objectacc_imp.cpp ('k') | xfa/src/fxfa/src/parser/xfa_parser_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698