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_COMBOBOX_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_ |
9 | 9 |
10 #include "PWL_Edit.h" | 10 #include "PWL_Edit.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 CPDF_Matrix* pUser2Device) override; | 42 CPDF_Matrix* pUser2Device) override; |
43 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; | 43 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
44 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; | 44 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; |
45 }; | 45 }; |
46 | 46 |
47 class CPWL_ComboBox : public CPWL_Wnd { | 47 class CPWL_ComboBox : public CPWL_Wnd { |
48 public: | 48 public: |
49 CPWL_ComboBox(); | 49 CPWL_ComboBox(); |
50 ~CPWL_ComboBox() override {} | 50 ~CPWL_ComboBox() override {} |
51 | 51 |
52 operator CPWL_Edit*() { return m_pEdit; } | 52 CPWL_Edit* GetEdit() const { return m_pEdit; } |
53 | 53 |
54 // CPWL_Wnd: | 54 // CPWL_Wnd: |
55 CFX_ByteString GetClassName() const override; | 55 CFX_ByteString GetClassName() const override; |
56 void OnCreate(PWL_CREATEPARAM& cp) override; | 56 void OnCreate(PWL_CREATEPARAM& cp) override; |
57 FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWORD nFlag) override; | 57 FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWORD nFlag) override; |
58 FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag) override; | 58 FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag) override; |
59 void OnNotify(CPWL_Wnd* pWnd, | 59 void OnNotify(CPWL_Wnd* pWnd, |
60 FX_DWORD msg, | 60 FX_DWORD msg, |
61 intptr_t wParam = 0, | 61 intptr_t wParam = 0, |
62 intptr_t lParam = 0) override; | 62 intptr_t lParam = 0) override; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 FX_BOOL m_bPopup; | 98 FX_BOOL m_bPopup; |
99 CPDF_Rect m_rcOldWindow; | 99 CPDF_Rect m_rcOldWindow; |
100 int32_t m_nPopupWhere; | 100 int32_t m_nPopupWhere; |
101 int32_t m_nSelectItem; | 101 int32_t m_nSelectItem; |
102 IPWL_Filler_Notify* m_pFillerNotify; | 102 IPWL_Filler_Notify* m_pFillerNotify; |
103 | 103 |
104 void* m_pFormFiller; | 104 void* m_pFormFiller; |
105 }; | 105 }; |
106 | 106 |
107 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_ | 107 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_ |
OLD | NEW |