| 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/fxedit/include/fxet_list.h" | 7 #include "fpdfsdk/fxedit/include/fxet_list.h" |
| 8 | 8 |
| 9 #include "core/fpdfdoc/include/cpvt_word.h" | 9 #include "core/fpdfdoc/include/cpvt_word.h" |
| 10 #include "fpdfsdk/fxedit/include/fxet_edit.h" | 10 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 } else { | 184 } else { |
| 185 pItem->nState = 0; | 185 pItem->nState = 0; |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 | 190 |
| 191 CFX_ListCtrl::CFX_ListCtrl() | 191 CFX_ListCtrl::CFX_ListCtrl() |
| 192 : m_pNotify(nullptr), | 192 : m_pNotify(nullptr), |
| 193 m_bNotifyFlag(FALSE), | 193 m_bNotifyFlag(FALSE), |
| 194 m_ptScrollPos(0.0f, 0.0f), | |
| 195 m_nSelItem(-1), | 194 m_nSelItem(-1), |
| 196 m_nFootIndex(-1), | 195 m_nFootIndex(-1), |
| 197 m_bCtrlSel(FALSE), | 196 m_bCtrlSel(FALSE), |
| 198 m_nCaretIndex(-1), | 197 m_nCaretIndex(-1), |
| 199 m_fFontSize(0.0f), | 198 m_fFontSize(0.0f), |
| 200 m_pFontMap(nullptr), | 199 m_pFontMap(nullptr), |
| 201 m_bMultiple(FALSE) {} | 200 m_bMultiple(FALSE) {} |
| 202 | 201 |
| 203 CFX_ListCtrl::~CFX_ListCtrl() { | 202 CFX_ListCtrl::~CFX_ListCtrl() { |
| 204 Empty(); | 203 Empty(); |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 return nItemIndex >= 0 && nItemIndex < m_aListItems.GetSize(); | 779 return nItemIndex >= 0 && nItemIndex < m_aListItems.GetSize(); |
| 781 } | 780 } |
| 782 | 781 |
| 783 CFX_WideString CFX_ListCtrl::GetItemText(int32_t nIndex) const { | 782 CFX_WideString CFX_ListCtrl::GetItemText(int32_t nIndex) const { |
| 784 if (CFX_ListItem* pListItem = m_aListItems.GetAt(nIndex)) { | 783 if (CFX_ListItem* pListItem = m_aListItems.GetAt(nIndex)) { |
| 785 return pListItem->GetText(); | 784 return pListItem->GetText(); |
| 786 } | 785 } |
| 787 | 786 |
| 788 return L""; | 787 return L""; |
| 789 } | 788 } |
| OLD | NEW |