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_text.h" | 7 #include "public/fpdf_text.h" |
8 | 8 |
9 #include "core/include/fpdfdoc/fpdf_doc.h" | 9 #include "core/include/fpdfdoc/fpdf_doc.h" |
10 #include "core/include/fpdftext/fpdf_text.h" | 10 #include "core/include/fpdftext/fpdf_text.h" |
11 #include "fpdfsdk/include/fsdk_define.h" | 11 #include "fpdfsdk/include/fsdk_define.h" |
12 | 12 |
13 #ifdef PDF_ENABLE_XFA | 13 #ifdef PDF_ENABLE_XFA |
14 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 14 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" |
15 #include "../include/fpdfxfa/fpdfxfa_page.h" | 15 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" |
16 #endif // PDF_ENABLE_XFA | 16 #endif // PDF_ENABLE_XFA |
17 | 17 |
18 #ifdef _WIN32 | 18 #ifdef _WIN32 |
19 #include <tchar.h> | 19 #include <tchar.h> |
20 #endif | 20 #endif |
21 | 21 |
22 DLLEXPORT FPDF_TEXTPAGE STDCALL FPDFText_LoadPage(FPDF_PAGE page) { | 22 DLLEXPORT FPDF_TEXTPAGE STDCALL FPDFText_LoadPage(FPDF_PAGE page) { |
23 CPDF_Page* pPDFPage = CPDFPageFromFPDFPage(page); | 23 CPDF_Page* pPDFPage = CPDFPageFromFPDFPage(page); |
24 if (!pPDFPage) | 24 if (!pPDFPage) |
25 return nullptr; | 25 return nullptr; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 CFX_FloatRect rect = rectArray.GetAt(rect_index); | 288 CFX_FloatRect rect = rectArray.GetAt(rect_index); |
289 *left = rect.left; | 289 *left = rect.left; |
290 *right = rect.right; | 290 *right = rect.right; |
291 *top = rect.top; | 291 *top = rect.top; |
292 *bottom = rect.bottom; | 292 *bottom = rect.bottom; |
293 } | 293 } |
294 } | 294 } |
295 DLLEXPORT void STDCALL FPDFLink_CloseWebLinks(FPDF_PAGELINK link_page) { | 295 DLLEXPORT void STDCALL FPDFLink_CloseWebLinks(FPDF_PAGELINK link_page) { |
296 delete (IPDF_LinkExtract*)link_page; | 296 delete (IPDF_LinkExtract*)link_page; |
297 } | 297 } |
OLD | NEW |