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 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ |
9 | 9 |
10 #include "fpdfsdk/include/fxedit/fx_edit.h" | 10 #include "fpdfsdk/include/fxedit/fx_edit.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 intptr_t lParam = 0) override; | 74 intptr_t lParam = 0) override; |
75 void RePosChildWnd() override; | 75 void RePosChildWnd() override; |
76 CFX_FloatRect GetFocusRect() const override; | 76 CFX_FloatRect GetFocusRect() const override; |
77 void SetFontSize(FX_FLOAT fFontSize) override; | 77 void SetFontSize(FX_FLOAT fFontSize) override; |
78 FX_FLOAT GetFontSize() const override; | 78 FX_FLOAT GetFontSize() const override; |
79 | 79 |
80 virtual CFX_WideString GetText() const; | 80 virtual CFX_WideString GetText() const; |
81 | 81 |
82 void OnNotifySelChanged(FX_BOOL bKeyDown, FX_BOOL& bExit, FX_DWORD nFlag); | 82 void OnNotifySelChanged(FX_BOOL bKeyDown, FX_BOOL& bExit, FX_DWORD nFlag); |
83 | 83 |
84 void AddString(const FX_WCHAR* string); | 84 void AddString(const FX_WCHAR* str); |
85 void SetTopVisibleIndex(int32_t nItemIndex); | 85 void SetTopVisibleIndex(int32_t nItemIndex); |
86 void ScrollToListItem(int32_t nItemIndex); | 86 void ScrollToListItem(int32_t nItemIndex); |
87 void ResetContent(); | 87 void ResetContent(); |
88 void Reset(); | 88 void Reset(); |
89 void Select(int32_t nItemIndex); | 89 void Select(int32_t nItemIndex); |
90 void SetCaret(int32_t nItemIndex); | 90 void SetCaret(int32_t nItemIndex); |
91 void SetHoverSel(FX_BOOL bHoverSel); | 91 void SetHoverSel(FX_BOOL bHoverSel); |
92 | 92 |
93 int32_t GetCount() const; | 93 int32_t GetCount() const; |
94 FX_BOOL IsMultipleSel() const; | 94 FX_BOOL IsMultipleSel() const; |
(...skipping 18 matching lines...) Expand all Loading... |
113 IPWL_Filler_Notify* m_pFillerNotify; | 113 IPWL_Filler_Notify* m_pFillerNotify; |
114 | 114 |
115 public: | 115 public: |
116 void AttachFFLData(void* pData) { m_pFormFiller = pData; } | 116 void AttachFFLData(void* pData) { m_pFormFiller = pData; } |
117 | 117 |
118 private: | 118 private: |
119 void* m_pFormFiller; | 119 void* m_pFormFiller; |
120 }; | 120 }; |
121 | 121 |
122 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ | 122 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ |
OLD | NEW |