| 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 #include "xfa/include/fxfa/xfa_ffdoc.h" | 7 #include "xfa/fxfa/include/xfa_ffdoc.h" |
| 8 | 8 |
| 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| 11 #include "core/fpdfdoc/include/fpdf_doc.h" | 11 #include "core/fpdfdoc/include/fpdf_doc.h" |
| 12 #include "core/fxcrt/include/fx_ext.h" | 12 #include "core/fxcrt/include/fx_ext.h" |
| 13 #include "core/fxcrt/include/fx_memory.h" | 13 #include "core/fxcrt/include/fx_memory.h" |
| 14 #include "xfa/fde/xml/fde_xml_imp.h" | 14 #include "xfa/fde/xml/fde_xml_imp.h" |
| 15 #include "xfa/fgas/crt/fgas_algorithm.h" | 15 #include "xfa/fgas/crt/fgas_algorithm.h" |
| 16 #include "xfa/fwl/core/ifwl_notedriver.h" | 16 #include "xfa/fwl/core/ifwl_notedriver.h" |
| 17 #include "xfa/fxfa/app/xfa_ffnotify.h" | 17 #include "xfa/fxfa/app/xfa_ffnotify.h" |
| 18 #include "xfa/fxfa/include/xfa_checksum.h" |
| 19 #include "xfa/fxfa/include/xfa_ffapp.h" |
| 20 #include "xfa/fxfa/include/xfa_ffdocview.h" |
| 21 #include "xfa/fxfa/include/xfa_ffwidget.h" |
| 22 #include "xfa/fxfa/include/xfa_fontmgr.h" |
| 18 #include "xfa/fxfa/parser/xfa_docdata.h" | 23 #include "xfa/fxfa/parser/xfa_docdata.h" |
| 19 #include "xfa/fxfa/parser/xfa_document_serialize.h" | 24 #include "xfa/fxfa/parser/xfa_document_serialize.h" |
| 20 #include "xfa/fxfa/parser/xfa_parser.h" | 25 #include "xfa/fxfa/parser/xfa_parser.h" |
| 21 #include "xfa/fxfa/parser/xfa_parser_imp.h" | 26 #include "xfa/fxfa/parser/xfa_parser_imp.h" |
| 22 #include "xfa/fxfa/parser/xfa_parser_imp.h" | 27 #include "xfa/fxfa/parser/xfa_parser_imp.h" |
| 23 #include "xfa/include/fxfa/xfa_checksum.h" | |
| 24 #include "xfa/include/fxfa/xfa_ffapp.h" | |
| 25 #include "xfa/include/fxfa/xfa_ffdocview.h" | |
| 26 #include "xfa/include/fxfa/xfa_ffwidget.h" | |
| 27 #include "xfa/include/fxfa/xfa_fontmgr.h" | |
| 28 | 28 |
| 29 CXFA_FFDoc::CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider) | 29 CXFA_FFDoc::CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider) |
| 30 : m_pDocProvider(pDocProvider), | 30 : m_pDocProvider(pDocProvider), |
| 31 m_pDocument(nullptr), | 31 m_pDocument(nullptr), |
| 32 m_pStream(nullptr), | 32 m_pStream(nullptr), |
| 33 m_pApp(pApp), | 33 m_pApp(pApp), |
| 34 m_pNotify(nullptr), | 34 m_pNotify(nullptr), |
| 35 m_pPDFDoc(nullptr), | 35 m_pPDFDoc(nullptr), |
| 36 m_dwDocType(XFA_DOCTYPE_Static), | 36 m_dwDocType(XFA_DOCTYPE_Static), |
| 37 m_bOwnStream(TRUE) {} | 37 m_bOwnStream(TRUE) {} |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 } | 422 } |
| 423 pExport->Release(); | 423 pExport->Release(); |
| 424 return bFlags; | 424 return bFlags; |
| 425 } | 425 } |
| 426 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { | 426 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { |
| 427 std::unique_ptr<CXFA_DataImporter, ReleaseDeleter<CXFA_DataImporter>> | 427 std::unique_ptr<CXFA_DataImporter, ReleaseDeleter<CXFA_DataImporter>> |
| 428 importer(new CXFA_DataImporter(m_pDocument)); | 428 importer(new CXFA_DataImporter(m_pDocument)); |
| 429 | 429 |
| 430 return importer->ImportData(pStream); | 430 return importer->ImportData(pStream); |
| 431 } | 431 } |
| OLD | NEW |