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_PDFWINDOW_PWL_LISTBOX_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ |
8 #define FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ |
9 | 9 |
10 #include "fpdfsdk/include/fxedit/fx_edit.h" | 10 #include "fpdfsdk/include/fxedit/fx_edit.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 CPWL_ListBox(); | 52 CPWL_ListBox(); |
53 ~CPWL_ListBox() override; | 53 ~CPWL_ListBox() override; |
54 | 54 |
55 // CPWL_Wnd | 55 // CPWL_Wnd |
56 CFX_ByteString GetClassName() const override; | 56 CFX_ByteString GetClassName() const override; |
57 void OnCreated() override; | 57 void OnCreated() override; |
58 void OnDestroy() override; | 58 void OnDestroy() override; |
59 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; | 59 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; |
60 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 60 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
61 CFX_Matrix* pUser2Device) override; | 61 CFX_Matrix* pUser2Device) override; |
62 FX_BOOL OnKeyDown(uint16_t nChar, FX_DWORD nFlag) override; | 62 FX_BOOL OnKeyDown(uint16_t nChar, uint32_t nFlag) override; |
63 FX_BOOL OnChar(uint16_t nChar, FX_DWORD nFlag) override; | 63 FX_BOOL OnChar(uint16_t nChar, uint32_t nFlag) override; |
64 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_DWORD nFlag) override; | 64 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag) override; |
65 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override; | 65 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag) override; |
66 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, FX_DWORD nFlag) override; | 66 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, uint32_t nFlag) override; |
67 FX_BOOL OnMouseWheel(short zDelta, | 67 FX_BOOL OnMouseWheel(short zDelta, |
68 const CFX_FloatPoint& point, | 68 const CFX_FloatPoint& point, |
69 FX_DWORD nFlag) override; | 69 uint32_t nFlag) override; |
70 void KillFocus() override; | 70 void KillFocus() override; |
71 void OnNotify(CPWL_Wnd* pWnd, | 71 void OnNotify(CPWL_Wnd* pWnd, |
72 FX_DWORD msg, | 72 uint32_t msg, |
73 intptr_t wParam = 0, | 73 intptr_t wParam = 0, |
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, uint32_t nFlag); |
83 | 83 |
84 void AddString(const FX_WCHAR* str); | 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 |
(...skipping 20 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_PDFWINDOW_PWL_LISTBOX_H_ | 122 #endif // FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ |
OLD | NEW |