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

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

Issue 2123133004: Remove IXFA_Parser, cleanup XFA parser code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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 | « xfa/fxfa/parser/xfa_object_imp.cpp ('k') | xfa/fxfa/parser/xfa_parser_imp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FXFA_PARSER_XFA_PARSER_H_
8 #define XFA_FXFA_PARSER_XFA_PARSER_H_
9
10 #include "xfa/fxfa/parser/xfa_document.h"
11
12 class CFDE_XMLDoc;
13
14 class IXFA_Parser {
15 public:
16 static IXFA_Parser* Create(CXFA_Document* pFactory,
17 FX_BOOL bDocumentParser = FALSE);
18
19 virtual ~IXFA_Parser() {}
20 virtual void Release() = 0;
21 virtual int32_t StartParse(IFX_FileRead* pStream,
22 XFA_XDPPACKET ePacketID = XFA_XDPPACKET_XDP) = 0;
23 virtual int32_t DoParse(IFX_Pause* pPause = nullptr) = 0;
24 virtual int32_t ParseXMLData(const CFX_WideString& wsXML,
25 CFDE_XMLNode*& pXMLNode,
26 IFX_Pause* pPause = nullptr) = 0;
27 virtual void ConstructXFANode(CXFA_Node* pXFANode,
28 CFDE_XMLNode* pXMLNode) = 0;
29 virtual CXFA_Document* GetFactory() const = 0;
30 virtual CXFA_Node* GetRootNode() const = 0;
31 virtual CFDE_XMLDoc* GetXMLDoc() const = 0;
32 virtual void CloseParser() = 0;
33 };
34
35 #endif // XFA_FXFA_PARSER_XFA_PARSER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_object_imp.cpp ('k') | xfa/fxfa/parser/xfa_parser_imp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698