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/include/xfa_ffdoc.h" | 7 #include "xfa/fxfa/include/xfa_ffdoc.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
13 #include "core/fpdfdoc/include/fpdf_doc.h" | 13 #include "core/fpdfdoc/include/fpdf_doc.h" |
14 #include "core/fxcrt/include/fx_ext.h" | 14 #include "core/fxcrt/include/fx_ext.h" |
15 #include "core/fxcrt/include/fx_memory.h" | 15 #include "core/fxcrt/include/fx_memory.h" |
16 #include "xfa/fde/xml/fde_xml_imp.h" | 16 #include "xfa/fde/xml/fde_xml_imp.h" |
17 #include "xfa/fwl/core/fwl_noteimp.h" | 17 #include "xfa/fwl/core/fwl_noteimp.h" |
18 #include "xfa/fxfa/app/xfa_ffnotify.h" | 18 #include "xfa/fxfa/app/xfa_ffnotify.h" |
19 #include "xfa/fxfa/include/xfa_checksum.h" | 19 #include "xfa/fxfa/include/xfa_checksum.h" |
20 #include "xfa/fxfa/include/xfa_ffapp.h" | 20 #include "xfa/fxfa/include/xfa_ffapp.h" |
21 #include "xfa/fxfa/include/xfa_ffdocview.h" | 21 #include "xfa/fxfa/include/xfa_ffdocview.h" |
22 #include "xfa/fxfa/include/xfa_ffwidget.h" | 22 #include "xfa/fxfa/include/xfa_ffwidget.h" |
23 #include "xfa/fxfa/include/xfa_fontmgr.h" | 23 #include "xfa/fxfa/include/xfa_fontmgr.h" |
| 24 #include "xfa/fxfa/parser/cxfa_dataexporter.h" |
| 25 #include "xfa/fxfa/parser/cxfa_dataimporter.h" |
24 #include "xfa/fxfa/parser/cxfa_document.h" | 26 #include "xfa/fxfa/parser/cxfa_document.h" |
25 #include "xfa/fxfa/parser/xfa_document_serialize.h" | |
26 | 27 |
27 namespace { | 28 namespace { |
28 | 29 |
29 struct FX_BASE64DATA { | 30 struct FX_BASE64DATA { |
30 uint32_t data1 : 2; | 31 uint32_t data1 : 2; |
31 uint32_t data2 : 6; | 32 uint32_t data2 : 6; |
32 uint32_t data3 : 4; | 33 uint32_t data3 : 4; |
33 uint32_t data4 : 4; | 34 uint32_t data4 : 4; |
34 uint32_t data5 : 6; | 35 uint32_t data5 : 6; |
35 uint32_t data6 : 2; | 36 uint32_t data6 : 2; |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 488 |
488 return !!pExport->Export( | 489 return !!pExport->Export( |
489 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); | 490 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); |
490 } | 491 } |
491 | 492 |
492 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { | 493 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { |
493 std::unique_ptr<CXFA_DataImporter> importer( | 494 std::unique_ptr<CXFA_DataImporter> importer( |
494 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); | 495 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); |
495 return importer->ImportData(pStream); | 496 return importer->ImportData(pStream); |
496 } | 497 } |
OLD | NEW |