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_iformfiller.h" | 7 #include "fpdfsdk/formfiller/cffl_iformfiller.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 "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag); | 433 fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag); |
434 | 434 |
435 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, TRUE); | 435 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, TRUE); |
436 if (!pFormFiller) | 436 if (!pFormFiller) |
437 return FALSE; | 437 return FALSE; |
438 pFormFiller->GetActionData(pPageView, CPDF_AAction::GetFocus, fa); | 438 pFormFiller->GetActionData(pPageView, CPDF_AAction::GetFocus, fa); |
439 pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView); | 439 pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView); |
440 m_bNotifying = FALSE; | 440 m_bNotifying = FALSE; |
441 | 441 |
442 if (pWidget->IsAppModified()) { | 442 if (pWidget->IsAppModified()) { |
443 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE)) { | 443 if (CFFL_FormFiller* pFiller = GetFormFiller(pWidget, FALSE)) { |
444 pFormFiller->ResetPDFWindow(pPageView, | 444 pFiller->ResetPDFWindow(pPageView, |
445 nValueAge == pWidget->GetValueAge()); | 445 nValueAge == pWidget->GetValueAge()); |
446 } | 446 } |
447 } | 447 } |
448 } | 448 } |
449 } | 449 } |
450 | 450 |
451 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE)) | 451 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE)) |
452 pFormFiller->SetFocusForAnnot(pAnnot, nFlag); | 452 pFormFiller->SetFocusForAnnot(pAnnot, nFlag); |
453 | 453 |
454 return TRUE; | 454 return TRUE; |
455 } | 455 } |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 bExit = TRUE; | 1008 bExit = TRUE; |
1009 m_bNotifying = FALSE; | 1009 m_bNotifying = FALSE; |
1010 return; | 1010 return; |
1011 } | 1011 } |
1012 } | 1012 } |
1013 | 1013 |
1014 m_bNotifying = FALSE; | 1014 m_bNotifying = FALSE; |
1015 } | 1015 } |
1016 } | 1016 } |
1017 } | 1017 } |
OLD | NEW |