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/fpdfview.h" | 7 #include "public/fpdfview.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #ifdef PDF_ENABLE_XFA | 34 #ifdef PDF_ENABLE_XFA |
35 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h" | 35 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h" |
36 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 36 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" |
37 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" | 37 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" |
38 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" | 38 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" |
39 #include "public/fpdf_formfill.h" | 39 #include "public/fpdf_formfill.h" |
40 #endif // PDF_ENABLE_XFA | 40 #endif // PDF_ENABLE_XFA |
41 | 41 |
42 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 42 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
43 #include "core/fxge/include/fx_ge_win32.h" | 43 #include "core/fxge/include/cfx_windowsdevice.h" |
44 #endif | 44 #endif |
45 | 45 |
46 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) { | 46 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) { |
47 return static_cast<UnderlyingDocumentType*>(doc); | 47 return static_cast<UnderlyingDocumentType*>(doc); |
48 } | 48 } |
49 | 49 |
50 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc) { | 50 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc) { |
51 return static_cast<FPDF_DOCUMENT>(doc); | 51 return static_cast<FPDF_DOCUMENT>(doc); |
52 } | 52 } |
53 | 53 |
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 if (!buffer) { | 1127 if (!buffer) { |
1128 *buflen = len; | 1128 *buflen = len; |
1129 } else if (*buflen >= len) { | 1129 } else if (*buflen >= len) { |
1130 memcpy(buffer, utf16Name.c_str(), len); | 1130 memcpy(buffer, utf16Name.c_str(), len); |
1131 *buflen = len; | 1131 *buflen = len; |
1132 } else { | 1132 } else { |
1133 *buflen = -1; | 1133 *buflen = -1; |
1134 } | 1134 } |
1135 return (FPDF_DEST)pDestObj; | 1135 return (FPDF_DEST)pDestObj; |
1136 } | 1136 } |
OLD | NEW |