| 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 <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 options.m_ForeColor = 0; | 366 options.m_ForeColor = 0; |
| 367 options.m_BackColor = 0xffffff; | 367 options.m_BackColor = 0xffffff; |
| 368 } | 368 } |
| 369 options.m_AddFlags = flags >> 8; | 369 options.m_AddFlags = flags >> 8; |
| 370 options.m_pOCContext = new CPDF_OCContext(pPDFDoc, CPDF_OCContext::View); | 370 options.m_pOCContext = new CPDF_OCContext(pPDFDoc, CPDF_OCContext::View); |
| 371 | 371 |
| 372 if (CPDFSDK_PageView* pPageView = pFXDoc->GetPageView(pPage)) | 372 if (CPDFSDK_PageView* pPageView = pFXDoc->GetPageView(pPage)) |
| 373 pPageView->PageView_OnDraw(pDevice.get(), &matrix, &options, clip); | 373 pPageView->PageView_OnDraw(pDevice.get(), &matrix, &options, clip); |
| 374 #endif // PDF_ENABLE_XFA | 374 #endif // PDF_ENABLE_XFA |
| 375 | 375 |
| 376 pDevice->RestoreState(); | 376 pDevice->RestoreState(false); |
| 377 delete options.m_pOCContext; | 377 delete options.m_pOCContext; |
| 378 #ifdef PDF_ENABLE_XFA | 378 #ifdef PDF_ENABLE_XFA |
| 379 options.m_pOCContext = NULL; | 379 options.m_pOCContext = NULL; |
| 380 #endif // PDF_ENABLE_XFA | 380 #endif // PDF_ENABLE_XFA |
| 381 } | 381 } |
| 382 | 382 |
| 383 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle, | 383 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle, |
| 384 FPDF_BITMAP bitmap, | 384 FPDF_BITMAP bitmap, |
| 385 FPDF_PAGE page, | 385 FPDF_PAGE page, |
| 386 int start_x, | 386 int start_x, |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); | 716 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); |
| 717 } | 717 } |
| 718 } else { | 718 } else { |
| 719 if (aa.ActionExist(CPDF_AAction::ClosePage)) { | 719 if (aa.ActionExist(CPDF_AAction::ClosePage)) { |
| 720 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); | 720 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); |
| 721 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); | 721 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); |
| 722 } | 722 } |
| 723 } | 723 } |
| 724 } | 724 } |
| 725 } | 725 } |
| OLD | NEW |