| 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 "../../include/formfiller/FFL_FormFiller.h" | 7 #include "../../include/formfiller/FFL_FormFiller.h" |
| 8 #include "../../include/formfiller/FFL_Notify.h" | 8 #include "../../include/formfiller/FFL_Notify.h" |
| 9 #include "../../include/formfiller/FFL_CBA_Fontmap.h" | 9 #include "../../include/formfiller/FFL_CBA_Fontmap.h" |
| 10 | 10 |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 FX_BOOL bRestoreValue) { | 591 FX_BOOL bRestoreValue) { |
| 592 return GetPDFWindow(pPageView, FALSE); | 592 return GetPDFWindow(pPageView, FALSE); |
| 593 } | 593 } |
| 594 | 594 |
| 595 void CFFL_FormFiller::TimerProc() {} | 595 void CFFL_FormFiller::TimerProc() {} |
| 596 | 596 |
| 597 IFX_SystemHandler* CFFL_FormFiller::GetSystemHandler() const { | 597 IFX_SystemHandler* CFFL_FormFiller::GetSystemHandler() const { |
| 598 return m_pApp->GetSysHandler(); | 598 return m_pApp->GetSysHandler(); |
| 599 } | 599 } |
| 600 | 600 |
| 601 void CFFL_FormFiller::OnKeyStroke(FX_BOOL bKeyDown, FX_DWORD nFlag) {} | |
| 602 | |
| 603 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, | 601 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, |
| 604 FX_BOOL bDestroyPDFWindow) { | 602 FX_BOOL bDestroyPDFWindow) { |
| 605 m_bValid = FALSE; | 603 m_bValid = FALSE; |
| 606 | 604 |
| 607 FX_RECT rcRect = GetViewBBox(pPageView, m_pWidget); | 605 FX_RECT rcRect = GetViewBBox(pPageView, m_pWidget); |
| 608 InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom); | 606 InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom); |
| 609 | 607 |
| 610 if (bDestroyPDFWindow) | 608 if (bDestroyPDFWindow) |
| 611 DestroyPDFWindow(pPageView); | 609 DestroyPDFWindow(pPageView); |
| 612 } | 610 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); | 712 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); |
| 715 } | 713 } |
| 716 | 714 |
| 717 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 715 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
| 718 CPDFSDK_Annot* pAnnot, | 716 CPDFSDK_Annot* pAnnot, |
| 719 CFX_RenderDevice* pDevice, | 717 CFX_RenderDevice* pDevice, |
| 720 CPDF_Matrix* pUser2Device, | 718 CPDF_Matrix* pUser2Device, |
| 721 FX_DWORD dwFlags) { | 719 FX_DWORD dwFlags) { |
| 722 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 720 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
| 723 } | 721 } |
| OLD | NEW |