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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 | 969 |
970 FX_BOOL bFormated = FALSE; | 970 FX_BOOL bFormated = FALSE; |
971 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie
ld(), GetCommitKey(), bFormated); | 971 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie
ld(), GetCommitKey(), bFormated); |
972 | 972 |
973 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW
idget); | 973 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW
idget); |
974 | 974 |
975 if (bExit) return; | 975 if (bExit) return; |
976 | 976 |
977 if (bFormated) | 977 if (bFormated) |
978 { | 978 { |
979 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField()
, sValue, TRUE); | 979 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField()
, sValue.c_str(), TRUE); |
980 pInterForm->UpdateField(pWidget->GetFormField()); | 980 pInterForm->UpdateField(pWidget->GetFormField()); |
981 } | 981 } |
982 | 982 |
983 m_bNotifying = FALSE; | 983 m_bNotifying = FALSE; |
984 } | 984 } |
985 } | 985 } |
986 | 986 |
987 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc( | 987 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc( |
988 // int co
de, // hook code | 988 // int co
de, // hook code |
989 // WPARAM
wParam, // virtual-key code | 989 // WPARAM
wParam, // virtual-key code |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1388 ASSERT(pPrivateData != NULL); | 1388 ASSERT(pPrivateData != NULL); |
1389 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; | 1389 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; |
1390 ASSERT(pData->pWidget != NULL); | 1390 ASSERT(pData->pWidget != NULL); |
1391 | 1391 |
1392 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); | 1392 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); |
1393 ASSERT(pFormFiller != NULL); | 1393 ASSERT(pFormFiller != NULL); |
1394 | 1394 |
1395 if (!bEditOrList) | 1395 if (!bEditOrList) |
1396 pFormFiller->OnKeyStroke(bExit); | 1396 pFormFiller->OnKeyStroke(bExit); |
1397 } | 1397 } |
OLD | NEW |