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_formfill.h" | 7 #include "public/fpdf_formfill.h" |
8 | 8 |
9 #include "fpdfsdk/include/fsdk_define.h" | 9 #include "fpdfsdk/include/fsdk_define.h" |
10 #include "fpdfsdk/include/fsdk_mgr.h" | 10 #include "fpdfsdk/include/fsdk_mgr.h" |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 return; | 327 return; |
328 CPDF_Document* pPDFDoc = pDocument->GetPDFDoc(); | 328 CPDF_Document* pPDFDoc = pDocument->GetPDFDoc(); |
329 if (!pPDFDoc) | 329 if (!pPDFDoc) |
330 return; | 330 return; |
331 CPDFDoc_Environment* pEnv = (CPDFDoc_Environment*)hHandle; | 331 CPDFDoc_Environment* pEnv = (CPDFDoc_Environment*)hHandle; |
332 CPDFSDK_Document* pFXDoc = pEnv->GetSDKDocument(); | 332 CPDFSDK_Document* pFXDoc = pEnv->GetSDKDocument(); |
333 if (!pFXDoc) | 333 if (!pFXDoc) |
334 return; | 334 return; |
335 #endif // PDF_ENABLE_XFA | 335 #endif // PDF_ENABLE_XFA |
336 | 336 |
337 CFX_AffineMatrix matrix; | 337 CFX_Matrix matrix; |
338 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate); | 338 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate); |
339 | 339 |
340 FX_RECT clip; | 340 FX_RECT clip; |
341 clip.left = start_x; | 341 clip.left = start_x; |
342 clip.right = start_x + size_x; | 342 clip.right = start_x + size_x; |
343 clip.top = start_y; | 343 clip.top = start_y; |
344 clip.bottom = start_y + size_y; | 344 clip.bottom = start_y + size_y; |
345 | 345 |
346 #ifdef _SKIA_SUPPORT_ | 346 #ifdef _SKIA_SUPPORT_ |
347 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice); | 347 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); | 734 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); |
735 } | 735 } |
736 } else { | 736 } else { |
737 if (aa.ActionExist(CPDF_AAction::ClosePage)) { | 737 if (aa.ActionExist(CPDF_AAction::ClosePage)) { |
738 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); | 738 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); |
739 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); | 739 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); |
740 } | 740 } |
741 } | 741 } |
742 } | 742 } |
743 } | 743 } |
OLD | NEW |