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/fxedit/fxet_stub.h" | 7 #include "fpdfsdk/include/fxedit/fxet_edit.h" |
8 #include "../../include/fxedit/fxet_edit.h" | 8 #include "fpdfsdk/include/fxedit/fxet_list.h" |
9 #include "../../include/fxedit/fxet_list.h" | 9 #include "fpdfsdk/include/fxedit/fxet_stub.h" |
10 | 10 |
11 /* ------------------------------- CFX_ListItem | 11 /* ------------------------------- CFX_ListItem |
12 * ---------------------------------- */ | 12 * ---------------------------------- */ |
13 | 13 |
14 CFX_ListItem::CFX_ListItem() | 14 CFX_ListItem::CFX_ListItem() |
15 : m_pEdit(NULL), | 15 : m_pEdit(NULL), |
16 m_bSelected(FALSE), | 16 m_bSelected(FALSE), |
17 m_bCaret(FALSE), | 17 m_bCaret(FALSE), |
18 m_rcListItem(0.0f, 0.0f, 0.0f, 0.0f) { | 18 m_rcListItem(0.0f, 0.0f, 0.0f, 0.0f) { |
19 m_pEdit = IFX_Edit::NewEdit(); | 19 m_pEdit = IFX_Edit::NewEdit(); |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 | 826 |
827 int32_t CFX_ListCtrl::GetItemIndex(const CPDF_Point& point) const { | 827 int32_t CFX_ListCtrl::GetItemIndex(const CPDF_Point& point) const { |
828 return CFX_List::GetItemIndex(OutToIn(point)); | 828 return CFX_List::GetItemIndex(OutToIn(point)); |
829 } | 829 } |
830 | 830 |
831 CFX_WideString CFX_ListCtrl::GetText() const { | 831 CFX_WideString CFX_ListCtrl::GetText() const { |
832 if (IsMultipleSel()) | 832 if (IsMultipleSel()) |
833 return GetItemText(m_nCaretIndex); | 833 return GetItemText(m_nCaretIndex); |
834 return GetItemText(m_nSelItem); | 834 return GetItemText(m_nSelItem); |
835 } | 835 } |
OLD | NEW |