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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 | 966 |
967 FX_BOOL bFormated = FALSE; | 967 FX_BOOL bFormated = FALSE; |
968 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie
ld(), GetCommitKey(), bFormated); | 968 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie
ld(), GetCommitKey(), bFormated); |
969 | 969 |
970 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW
idget); | 970 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW
idget); |
971 | 971 |
972 if (bExit) return; | 972 if (bExit) return; |
973 | 973 |
974 if (bFormated) | 974 if (bFormated) |
975 { | 975 { |
976 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField()
, sValue, TRUE); | 976 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField()
, sValue.c_str(), TRUE); |
977 pInterForm->UpdateField(pWidget->GetFormField()); | 977 pInterForm->UpdateField(pWidget->GetFormField()); |
978 } | 978 } |
979 | 979 |
980 m_bNotifying = FALSE; | 980 m_bNotifying = FALSE; |
981 } | 981 } |
982 } | 982 } |
983 | 983 |
984 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc( | 984 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc( |
985 // int co
de, // hook code | 985 // int co
de, // hook code |
986 // WPARAM
wParam, // virtual-key code | 986 // WPARAM
wParam, // virtual-key code |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 ASSERT(pPrivateData != NULL); | 1188 ASSERT(pPrivateData != NULL); |
1189 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; | 1189 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; |
1190 ASSERT(pData->pWidget != NULL); | 1190 ASSERT(pData->pWidget != NULL); |
1191 | 1191 |
1192 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); | 1192 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); |
1193 ASSERT(pFormFiller != NULL); | 1193 ASSERT(pFormFiller != NULL); |
1194 | 1194 |
1195 if (!bEditOrList) | 1195 if (!bEditOrList) |
1196 pFormFiller->OnKeyStroke(bExit); | 1196 pFormFiller->OnKeyStroke(bExit); |
1197 } | 1197 } |
OLD | NEW |