| 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_IFormFiller.h" | 8 #include "../../include/formfiller/FFL_IFormFiller.h" |
| 9 #include "../../include/formfiller/FFL_CheckBox.h" | 9 #include "../../include/formfiller/FFL_CheckBox.h" |
| 10 #include "../../include/formfiller/FFL_ComboBox.h" | 10 #include "../../include/formfiller/FFL_ComboBox.h" |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 } | 793 } |
| 794 | 794 |
| 795 FX_BOOL CFFL_IFormFiller::IsValidAnnot(CPDFSDK_PageView* pPageView, | 795 FX_BOOL CFFL_IFormFiller::IsValidAnnot(CPDFSDK_PageView* pPageView, |
| 796 CPDFSDK_Annot* pAnnot) { | 796 CPDFSDK_Annot* pAnnot) { |
| 797 if (pPageView) | 797 if (pPageView) |
| 798 return pPageView->IsValidAnnot(pAnnot->GetPDFAnnot()); | 798 return pPageView->IsValidAnnot(pAnnot->GetPDFAnnot()); |
| 799 | 799 |
| 800 return FALSE; | 800 return FALSE; |
| 801 } | 801 } |
| 802 | 802 |
| 803 void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, | 803 void CFFL_IFormFiller::OnBeforeKeyStroke(void* pPrivateData, |
| 804 void* pPrivateData, | |
| 805 int32_t nKeyCode, | |
| 806 CFX_WideString& strChange, | 804 CFX_WideString& strChange, |
| 807 const CFX_WideString& strChangeEx, | 805 const CFX_WideString& strChangeEx, |
| 808 int nSelStart, | 806 int nSelStart, |
| 809 int nSelEnd, | 807 int nSelEnd, |
| 810 FX_BOOL bKeyDown, | 808 FX_BOOL bKeyDown, |
| 811 FX_BOOL& bRC, | 809 FX_BOOL& bRC, |
| 812 FX_BOOL& bExit, | 810 FX_BOOL& bExit, |
| 813 FX_DWORD nFlag) { | 811 FX_DWORD nFlag) { |
| 814 ASSERT(pPrivateData != NULL); | 812 ASSERT(pPrivateData != NULL); |
| 815 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; | 813 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 bExit = TRUE; | 872 bExit = TRUE; |
| 875 m_bNotifying = FALSE; | 873 m_bNotifying = FALSE; |
| 876 return; | 874 return; |
| 877 } | 875 } |
| 878 } | 876 } |
| 879 | 877 |
| 880 m_bNotifying = FALSE; | 878 m_bNotifying = FALSE; |
| 881 } | 879 } |
| 882 } | 880 } |
| 883 } | 881 } |
| 884 | |
| 885 void CFFL_IFormFiller::OnAfterKeyStroke(FX_BOOL bEditOrList, | |
| 886 void* pPrivateData, | |
| 887 FX_BOOL& bExit, | |
| 888 FX_DWORD nFlag) { | |
| 889 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; | |
| 890 ASSERT(pData->pWidget); | |
| 891 | |
| 892 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); | |
| 893 | |
| 894 if (!bEditOrList) | |
| 895 pFormFiller->OnKeyStroke(bExit, nFlag); | |
| 896 } | |
| OLD | NEW |