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 "fpdfsdk/formfiller/cffl_formfiller.h" | 7 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
10 #include "fpdfsdk/formfiller/cba_fontmap.h" | 10 #include "fpdfsdk/formfiller/cba_fontmap.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 596 |
597 void CFFL_FormFiller::RestoreState(CPDFSDK_PageView* pPageView) {} | 597 void CFFL_FormFiller::RestoreState(CPDFSDK_PageView* pPageView) {} |
598 | 598 |
599 CPWL_Wnd* CFFL_FormFiller::ResetPDFWindow(CPDFSDK_PageView* pPageView, | 599 CPWL_Wnd* CFFL_FormFiller::ResetPDFWindow(CPDFSDK_PageView* pPageView, |
600 FX_BOOL bRestoreValue) { | 600 FX_BOOL bRestoreValue) { |
601 return GetPDFWindow(pPageView, FALSE); | 601 return GetPDFWindow(pPageView, FALSE); |
602 } | 602 } |
603 | 603 |
604 void CFFL_FormFiller::TimerProc() {} | 604 void CFFL_FormFiller::TimerProc() {} |
605 | 605 |
606 IFX_SystemHandler* CFFL_FormFiller::GetSystemHandler() const { | 606 CFX_SystemHandler* CFFL_FormFiller::GetSystemHandler() const { |
607 return m_pApp->GetSysHandler(); | 607 return m_pApp->GetSysHandler(); |
608 } | 608 } |
609 | 609 |
610 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, | 610 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, |
611 FX_BOOL bDestroyPDFWindow) { | 611 FX_BOOL bDestroyPDFWindow) { |
612 m_bValid = FALSE; | 612 m_bValid = FALSE; |
613 | 613 |
614 FX_RECT rcRect = GetViewBBox(pPageView, m_pWidget); | 614 FX_RECT rcRect = GetViewBBox(pPageView, m_pWidget); |
615 InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom); | 615 InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom); |
616 | 616 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 } | 719 } |
720 } | 720 } |
721 | 721 |
722 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 722 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
723 CPDFSDK_Annot* pAnnot, | 723 CPDFSDK_Annot* pAnnot, |
724 CFX_RenderDevice* pDevice, | 724 CFX_RenderDevice* pDevice, |
725 CFX_Matrix* pUser2Device, | 725 CFX_Matrix* pUser2Device, |
726 uint32_t dwFlags) { | 726 uint32_t dwFlags) { |
727 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 727 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
728 } | 728 } |
OLD | NEW |