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 "public/fpdf_ext.h" | 7 #include "public/fpdf_ext.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "core/fpdfapi/cpdf_modulemgr.h" | 11 #include "core/fpdfapi/cpdf_modulemgr.h" |
12 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" | 12 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
14 #include "core/fpdfdoc/cpdf_annot.h" | 14 #include "core/fpdfdoc/cpdf_annot.h" |
15 #include "core/fpdfdoc/cpdf_interform.h" | 15 #include "core/fpdfdoc/cpdf_interform.h" |
16 #include "core/fpdfdoc/cpdf_metadata.h" | 16 #include "core/fpdfdoc/cpdf_metadata.h" |
17 #include "core/fxcrt/fx_basic.h" | 17 #include "core/fxcrt/fx_basic.h" |
18 #include "core/fxcrt/fx_memory.h" | 18 #include "core/fxcrt/fx_memory.h" |
19 #include "core/fxcrt/fx_xml.h" | 19 #include "core/fxcrt/fx_xml.h" |
20 #include "fpdfsdk/include/fsdk_define.h" | 20 #include "fpdfsdk/fsdk_define.h" |
21 | 21 |
22 #ifdef PDF_ENABLE_XFA | 22 #ifdef PDF_ENABLE_XFA |
23 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" | 23 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" |
24 #endif // PDF_ENABLE_XFA | 24 #endif // PDF_ENABLE_XFA |
25 | 25 |
26 FX_BOOL FPDF_UnSupportError(int nError) { | 26 FX_BOOL FPDF_UnSupportError(int nError) { |
27 CFSDK_UnsupportInfo_Adapter* pAdapter = | 27 CFSDK_UnsupportInfo_Adapter* pAdapter = |
28 CPDF_ModuleMgr::Get()->GetUnsupportInfoAdapter(); | 28 CPDF_ModuleMgr::Get()->GetUnsupportInfoAdapter(); |
29 if (!pAdapter) | 29 if (!pAdapter) |
30 return FALSE; | 30 return FALSE; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return PAGEMODE_USETHUMBS; | 190 return PAGEMODE_USETHUMBS; |
191 if (strPageMode.EqualNoCase("FullScreen")) | 191 if (strPageMode.EqualNoCase("FullScreen")) |
192 return PAGEMODE_FULLSCREEN; | 192 return PAGEMODE_FULLSCREEN; |
193 if (strPageMode.EqualNoCase("UseOC")) | 193 if (strPageMode.EqualNoCase("UseOC")) |
194 return PAGEMODE_USEOC; | 194 return PAGEMODE_USEOC; |
195 if (strPageMode.EqualNoCase("UseAttachments")) | 195 if (strPageMode.EqualNoCase("UseAttachments")) |
196 return PAGEMODE_USEATTACHMENTS; | 196 return PAGEMODE_USEATTACHMENTS; |
197 | 197 |
198 return PAGEMODE_UNKNOWN; | 198 return PAGEMODE_UNKNOWN; |
199 } | 199 } |
OLD | NEW |