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/fwl_noteimp.h" | 20 #include "xfa/fwl/core/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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 444 |
445 return !!pExport->Export( | 445 return !!pExport->Export( |
446 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); | 446 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); |
447 } | 447 } |
448 | 448 |
449 bool CXFA_FFDoc::ImportData(IFX_SeekableReadStream* pStream, bool bXDP) { | 449 bool CXFA_FFDoc::ImportData(IFX_SeekableReadStream* pStream, bool bXDP) { |
450 std::unique_ptr<CXFA_DataImporter> importer( | 450 std::unique_ptr<CXFA_DataImporter> importer( |
451 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); | 451 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); |
452 return importer->ImportData(pStream); | 452 return importer->ImportData(pStream); |
453 } | 453 } |
OLD | NEW |