| 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_listbox.h" | 7 #include "fpdfsdk/formfiller/cffl_listbox.h" |
| 8 | 8 |
| 9 #include "fpdfsdk/formfiller/cba_fontmap.h" | 9 #include "fpdfsdk/formfiller/cba_fontmap.h" |
| 10 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 10 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 pWnd->SetTopVisibleIndex(m_pWidget->GetTopVisibleIndex()); | 80 pWnd->SetTopVisibleIndex(m_pWidget->GetTopVisibleIndex()); |
| 81 | 81 |
| 82 return pWnd; | 82 return pWnd; |
| 83 } | 83 } |
| 84 | 84 |
| 85 FX_BOOL CFFL_ListBox::OnChar(CPDFSDK_Annot* pAnnot, | 85 FX_BOOL CFFL_ListBox::OnChar(CPDFSDK_Annot* pAnnot, |
| 86 FX_UINT nChar, | 86 uint32_t nChar, |
| 87 FX_UINT nFlags) { | 87 uint32_t nFlags) { |
| 88 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); | 88 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); |
| 89 } | 89 } |
| 90 | 90 |
| 91 FX_BOOL CFFL_ListBox::IsDataChanged(CPDFSDK_PageView* pPageView) { | 91 FX_BOOL CFFL_ListBox::IsDataChanged(CPDFSDK_PageView* pPageView) { |
| 92 CPWL_ListBox* pListBox = (CPWL_ListBox*)GetPDFWindow(pPageView, FALSE); | 92 CPWL_ListBox* pListBox = (CPWL_ListBox*)GetPDFWindow(pPageView, FALSE); |
| 93 if (!pListBox) | 93 if (!pListBox) |
| 94 return FALSE; | 94 return FALSE; |
| 95 | 95 |
| 96 if (m_pWidget->GetFieldFlags() & FIELDFLAG_MULTISELECT) { | 96 if (m_pWidget->GetFieldFlags() & FIELDFLAG_MULTISELECT) { |
| 97 size_t nSelCount = 0; | 97 size_t nSelCount = 0; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 RestoreState(pPageView); | 198 RestoreState(pPageView); |
| 199 pRet = GetPDFWindow(pPageView, FALSE); | 199 pRet = GetPDFWindow(pPageView, FALSE); |
| 200 } else { | 200 } else { |
| 201 pRet = GetPDFWindow(pPageView, TRUE); | 201 pRet = GetPDFWindow(pPageView, TRUE); |
| 202 } | 202 } |
| 203 | 203 |
| 204 m_pWidget->UpdateField(); | 204 m_pWidget->UpdateField(); |
| 205 | 205 |
| 206 return pRet; | 206 return pRet; |
| 207 } | 207 } |
| OLD | NEW |