| 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 "../fxedit/fx_edit.h" | 10 #include "../fxedit/fx_edit.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual void DrawThisAppearance(CFX_R
enderDevice* pDevice, CPDF_Matrix* pUser2Device); | 50 virtual void DrawThisAppearance(CFX_R
enderDevice* pDevice, CPDF_Matrix* pUser2Device); |
| 51 | 51 |
| 52 virtual FX_BOOL OnKeyDown(FX_WORD nChar,
FX_DWORD nFlag); | 52 virtual FX_BOOL OnKeyDown(FX_WORD nChar,
FX_DWORD nFlag); |
| 53 virtual FX_BOOL OnChar(FX_WORD nChar, FX
_DWORD nFlag); | 53 virtual FX_BOOL OnChar(FX_WORD nChar, FX
_DWORD nFlag); |
| 54 virtual FX_BOOL OnLButtonDown(const CPDF
_Point & point, FX_DWORD nFlag); | 54 virtual FX_BOOL OnLButtonDown(const CPDF
_Point & point, FX_DWORD nFlag); |
| 55 virtual FX_BOOL OnLButtonUp(const CPDF_P
oint & point, FX_DWORD nFlag); | 55 virtual FX_BOOL OnLButtonUp(const CPDF_P
oint & point, FX_DWORD nFlag); |
| 56 virtual FX_BOOL OnMouseMove(const CPDF_P
oint & point, FX_DWORD nFlag); | 56 virtual FX_BOOL OnMouseMove(const CPDF_P
oint & point, FX_DWORD nFlag); |
| 57 virtual FX_BOOL OnMouseWheel(short zDelt
a, const CPDF_Point & point, FX_DWORD nFlag); | 57 virtual FX_BOOL OnMouseWheel(short zDelt
a, const CPDF_Point & point, FX_DWORD nFlag); |
| 58 virtual void KillFocus(); | 58 virtual void KillFocus(); |
| 59 | 59 |
| 60 » virtual void» » » » » OnNotify(CPWL_Wnd* pWnd,
FX_DWORD msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0); | 60 » virtual void» » » » » OnNotify(CPWL_Wnd* pWnd,
FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); |
| 61 virtual void RePosChildWnd(); | 61 virtual void RePosChildWnd(); |
| 62 virtual void SetText(FX_LPCWSTR csTex
t,FX_BOOL bRefresh = TRUE); | 62 virtual void SetText(FX_LPCWSTR csTex
t,FX_BOOL bRefresh = TRUE); |
| 63 virtual CFX_WideString GetText() const; | 63 virtual CFX_WideString GetText() const; |
| 64 virtual CPDF_Rect GetFocusRect() const; | 64 virtual CPDF_Rect GetFocusRect() const; |
| 65 virtual void SetFontSize(FX_FLOAT fFo
ntSize); | 65 virtual void SetFontSize(FX_FLOAT fFo
ntSize); |
| 66 virtual FX_FLOAT GetFontSize() const; | 66 virtual FX_FLOAT GetFontSize() const; |
| 67 | 67 |
| 68 void OnNotifySelChang
ed(FX_BOOL bKeyDown, FX_BOOL & bExit , FX_DWORD nFlag); | 68 void OnNotifySelChang
ed(FX_BOOL bKeyDown, FX_BOOL & bExit , FX_DWORD nFlag); |
| 69 | 69 |
| 70 void AddString(FX_LPC
WSTR string); | 70 void AddString(FX_LPC
WSTR string); |
| 71 » void» » » » » » » SetTopVisibleInd
ex(FX_INT32 nItemIndex); | 71 » void» » » » » » » SetTopVisibleInd
ex(int32_t nItemIndex); |
| 72 » void» » » » » » » ScrollToListItem
(FX_INT32 nItemIndex); | 72 » void» » » » » » » ScrollToListItem
(int32_t nItemIndex); |
| 73 void ResetContent(); | 73 void ResetContent(); |
| 74 void Reset(); | 74 void Reset(); |
| 75 » void» » » » » » » Select(FX_INT32
nItemIndex); | 75 » void» » » » » » » Select(int32_t n
ItemIndex); |
| 76 » void» » » » » » » SetCaret(FX_INT3
2 nItemIndex); | 76 » void» » » » » » » SetCaret(int32_t
nItemIndex); |
| 77 void SetHoverSel(FX_B
OOL bHoverSel); | 77 void SetHoverSel(FX_B
OOL bHoverSel); |
| 78 | 78 |
| 79 » FX_INT32» » » » » » GetCount() const
; | 79 » int32_t»» » » » » GetCount() const; |
| 80 FX_BOOL IsMultipleSel()
const; | 80 FX_BOOL IsMultipleSel()
const; |
| 81 » FX_INT32» » » » » » GetCaretIndex()
const; | 81 » int32_t»» » » » » GetCaretIndex() const; |
| 82 » FX_INT32» » » » » » GetCurSel() cons
t; | 82 » int32_t»» » » » » GetCurSel() const; |
| 83 » FX_BOOL»» » » » » » IsItemSelected(F
X_INT32 nItemIndex) const; | 83 » FX_BOOL»» » » » » » IsItemSelected(i
nt32_t nItemIndex) const; |
| 84 » FX_INT32» » » » » » GetTopVisibleInd
ex() const; | 84 » int32_t»» » » » » GetTopVisibleIndex() con
st; |
| 85 » FX_INT32» » » » » » FindNext(FX_INT3
2 nIndex,FX_WCHAR nChar) const; | 85 » int32_t»» » » » » FindNext(int32_t nIndex,
FX_WCHAR nChar) const; |
| 86 CPDF_Rect GetContentRect()
const; | 86 CPDF_Rect GetContentRect()
const; |
| 87 FX_FLOAT GetFirstHeight()
const; | 87 FX_FLOAT GetFirstHeight()
const; |
| 88 CPDF_Rect GetListRect() co
nst; | 88 CPDF_Rect GetListRect() co
nst; |
| 89 | 89 |
| 90 void SetFillerNotify(
IPWL_Filler_Notify* pNotify) {m_pFillerNotify = pNotify;} | 90 void SetFillerNotify(
IPWL_Filler_Notify* pNotify) {m_pFillerNotify = pNotify;} |
| 91 | 91 |
| 92 protected: | 92 protected: |
| 93 IFX_List* m_pList; | 93 IFX_List* m_pList; |
| 94 CPWL_List_Notify* m_pListNotify; | 94 CPWL_List_Notify* m_pListNotify; |
| 95 FX_BOOL m_bMouseDown; | 95 FX_BOOL m_bMouseDown; |
| 96 FX_BOOL m_bHoverSel; | 96 FX_BOOL m_bHoverSel; |
| 97 IPWL_Filler_Notify* m_pFillerNotify; | 97 IPWL_Filler_Notify* m_pFillerNotify; |
| 98 public: | 98 public: |
| 99 void AttachFFLData(vo
id* pData) {m_pFormFiller = pData;} | 99 void AttachFFLData(vo
id* pData) {m_pFormFiller = pData;} |
| 100 private: | 100 private: |
| 101 void* m_pFormFiller; | 101 void* m_pFormFiller; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ | 104 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ |
| OLD | NEW |