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/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/fpdfapi/include/cpdf_modulemgr.h" | 13 #include "core/fpdfapi/include/cpdf_modulemgr.h" |
| 14 #include "core/fpdfdoc/include/cpdf_annot.h" |
| 15 #include "core/fpdfdoc/include/cpdf_interform.h" |
| 16 #include "core/fpdfdoc/include/cpdf_metadata.h" |
14 #include "core/fxcrt/include/fx_basic.h" | 17 #include "core/fxcrt/include/fx_basic.h" |
15 #include "core/fxcrt/include/fx_memory.h" | 18 #include "core/fxcrt/include/fx_memory.h" |
16 #include "core/fxcrt/include/fx_xml.h" | 19 #include "core/fxcrt/include/fx_xml.h" |
17 #include "fpdfsdk/include/fsdk_define.h" | 20 #include "fpdfsdk/include/fsdk_define.h" |
18 | 21 |
19 #ifdef PDF_ENABLE_XFA | 22 #ifdef PDF_ENABLE_XFA |
20 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 23 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" |
21 #endif // PDF_ENABLE_XFA | 24 #endif // PDF_ENABLE_XFA |
22 | 25 |
23 FX_BOOL FPDF_UnSupportError(int nError) { | 26 FX_BOOL FPDF_UnSupportError(int nError) { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 return PAGEMODE_USETHUMBS; | 192 return PAGEMODE_USETHUMBS; |
190 if (strPageMode.EqualNoCase("FullScreen")) | 193 if (strPageMode.EqualNoCase("FullScreen")) |
191 return PAGEMODE_FULLSCREEN; | 194 return PAGEMODE_FULLSCREEN; |
192 if (strPageMode.EqualNoCase("UseOC")) | 195 if (strPageMode.EqualNoCase("UseOC")) |
193 return PAGEMODE_USEOC; | 196 return PAGEMODE_USEOC; |
194 if (strPageMode.EqualNoCase("UseAttachments")) | 197 if (strPageMode.EqualNoCase("UseAttachments")) |
195 return PAGEMODE_USEATTACHMENTS; | 198 return PAGEMODE_USEATTACHMENTS; |
196 | 199 |
197 return PAGEMODE_UNKNOWN; | 200 return PAGEMODE_UNKNOWN; |
198 } | 201 } |
OLD | NEW |