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

Side by Side Diff: xfa/fxfa/app/xfa_ffdoc.cpp

Issue 2328573002: Split CPDFXFA_Document apart (Closed)
Patch Set: Fix merge Created 4 years, 3 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/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_ffdocview.cpp » ('j') | 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 #include "xfa/fxfa/include/xfa_ffdoc.h" 7 #include "xfa/fxfa/include/xfa_ffdoc.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 if (iBytes > 2) { 141 if (iBytes > 2) {
142 *pDstEnd++ = ((uint8_t*)&dstData)[2]; 142 *pDstEnd++ = ((uint8_t*)&dstData)[2];
143 } 143 }
144 } 144 }
145 return pDstEnd - pDst; 145 return pDstEnd - pDst;
146 } 146 }
147 147
148 } // namespace 148 } // namespace
149 149
150 CXFA_FFDoc::CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider) 150 CXFA_FFDoc::CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocEnvironment* pDocEnvironment)
151 : m_pDocProvider(pDocProvider), 151 : m_pDocEnvironment(pDocEnvironment),
152 m_pDocumentParser(nullptr), 152 m_pDocumentParser(nullptr),
153 m_pStream(nullptr), 153 m_pStream(nullptr),
154 m_pApp(pApp), 154 m_pApp(pApp),
155 m_pNotify(nullptr), 155 m_pNotify(nullptr),
156 m_pPDFDoc(nullptr), 156 m_pPDFDoc(nullptr),
157 m_dwDocType(XFA_DOCTYPE_Static), 157 m_dwDocType(XFA_DOCTYPE_Static),
158 m_bOwnStream(TRUE) {} 158 m_bOwnStream(TRUE) {}
159 159
160 CXFA_FFDoc::~CXFA_FFDoc() { 160 CXFA_FFDoc::~CXFA_FFDoc() {
161 CloseDoc(); 161 CloseDoc();
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 return !!pExport->Export( 444 return !!pExport->Export(
445 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); 445 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr);
446 } 446 }
447 447
448 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { 448 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) {
449 std::unique_ptr<CXFA_DataImporter> importer( 449 std::unique_ptr<CXFA_DataImporter> importer(
450 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); 450 new CXFA_DataImporter(m_pDocumentParser->GetDocument()));
451 return importer->ImportData(pStream); 451 return importer->ImportData(pStream);
452 } 452 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_ffdocview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698