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/fxfa/xfa_ffdoc.h" | 7 #include "xfa/fxfa/xfa_ffdoc.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "core/fpdfapi/parser/cpdf_array.h" | 13 #include "core/fpdfapi/parser/cpdf_array.h" |
14 #include "core/fpdfapi/parser/cpdf_document.h" | 14 #include "core/fpdfapi/parser/cpdf_document.h" |
15 #include "core/fpdfapi/parser/fpdf_parser_decode.h" | 15 #include "core/fpdfapi/parser/fpdf_parser_decode.h" |
16 #include "core/fpdfdoc/cpdf_nametree.h" | 16 #include "core/fpdfdoc/cpdf_nametree.h" |
17 #include "core/fxcrt/fx_ext.h" | 17 #include "core/fxcrt/fx_ext.h" |
18 #include "core/fxcrt/fx_memory.h" | 18 #include "core/fxcrt/fx_memory.h" |
19 #include "xfa/fde/xml/fde_xml_imp.h" | 19 #include "xfa/fde/xml/fde_xml_imp.h" |
20 #include "xfa/fwl/core/cfwl_notedriver.h" | 20 #include "xfa/fwl/cfwl_notedriver.h" |
21 #include "xfa/fxfa/app/xfa_ffnotify.h" | 21 #include "xfa/fxfa/app/xfa_ffnotify.h" |
22 #include "xfa/fxfa/parser/cxfa_dataexporter.h" | 22 #include "xfa/fxfa/parser/cxfa_dataexporter.h" |
23 #include "xfa/fxfa/parser/cxfa_dataimporter.h" | 23 #include "xfa/fxfa/parser/cxfa_dataimporter.h" |
24 #include "xfa/fxfa/parser/cxfa_document.h" | 24 #include "xfa/fxfa/parser/cxfa_document.h" |
25 #include "xfa/fxfa/xfa_checksum.h" | 25 #include "xfa/fxfa/xfa_checksum.h" |
26 #include "xfa/fxfa/xfa_ffapp.h" | 26 #include "xfa/fxfa/xfa_ffapp.h" |
27 #include "xfa/fxfa/xfa_ffdocview.h" | 27 #include "xfa/fxfa/xfa_ffdocview.h" |
28 #include "xfa/fxfa/xfa_ffwidget.h" | 28 #include "xfa/fxfa/xfa_ffwidget.h" |
29 #include "xfa/fxfa/xfa_fontmgr.h" | 29 #include "xfa/fxfa/xfa_fontmgr.h" |
30 | 30 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); | 432 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); |
433 } | 433 } |
434 | 434 |
435 bool CXFA_FFDoc::ImportData( | 435 bool CXFA_FFDoc::ImportData( |
436 const CFX_RetainPtr<IFX_SeekableReadStream>& pStream, | 436 const CFX_RetainPtr<IFX_SeekableReadStream>& pStream, |
437 bool bXDP) { | 437 bool bXDP) { |
438 auto importer = | 438 auto importer = |
439 pdfium::MakeUnique<CXFA_DataImporter>(m_pDocumentParser->GetDocument()); | 439 pdfium::MakeUnique<CXFA_DataImporter>(m_pDocumentParser->GetDocument()); |
440 return importer->ImportData(pStream); | 440 return importer->ImportData(pStream); |
441 } | 441 } |
OLD | NEW |