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_COMBOBOX_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_ |
8 #define FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_ |
9 | 9 |
10 #include "fpdfsdk/pdfwindow/PWL_Edit.h" | 10 #include "fpdfsdk/pdfwindow/PWL_Edit.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void SetSelect(int32_t nItemIndex); | 75 void SetSelect(int32_t nItemIndex); |
76 | 76 |
77 void SetEditSel(int32_t nStartChar, int32_t nEndChar); | 77 void SetEditSel(int32_t nStartChar, int32_t nEndChar); |
78 void GetEditSel(int32_t& nStartChar, int32_t& nEndChar) const; | 78 void GetEditSel(int32_t& nStartChar, int32_t& nEndChar) const; |
79 void Clear(); | 79 void Clear(); |
80 void SelectAll(); | 80 void SelectAll(); |
81 FX_BOOL IsPopup() const; | 81 FX_BOOL IsPopup() const; |
82 | 82 |
83 void SetSelectText(); | 83 void SetSelectText(); |
84 | 84 |
85 void AttachFFLData(void* pData) { m_pFormFiller = pData; } | 85 void AttachFFLData(CFFL_FormFiller* pData) { m_pFormFiller = pData; } |
86 | 86 |
87 private: | 87 private: |
88 void CreateEdit(const PWL_CREATEPARAM& cp); | 88 void CreateEdit(const PWL_CREATEPARAM& cp); |
89 void CreateButton(const PWL_CREATEPARAM& cp); | 89 void CreateButton(const PWL_CREATEPARAM& cp); |
90 void CreateListBox(const PWL_CREATEPARAM& cp); | 90 void CreateListBox(const PWL_CREATEPARAM& cp); |
91 void SetPopup(FX_BOOL bPopup); | 91 void SetPopup(FX_BOOL bPopup); |
92 | 92 |
93 CPWL_CBEdit* m_pEdit; | 93 CPWL_CBEdit* m_pEdit; |
94 CPWL_CBButton* m_pButton; | 94 CPWL_CBButton* m_pButton; |
95 CPWL_CBListBox* m_pList; | 95 CPWL_CBListBox* m_pList; |
96 FX_BOOL m_bPopup; | 96 FX_BOOL m_bPopup; |
97 CFX_FloatRect m_rcOldWindow; | 97 CFX_FloatRect m_rcOldWindow; |
98 int32_t m_nPopupWhere; | 98 int32_t m_nPopupWhere; |
99 int32_t m_nSelectItem; | 99 int32_t m_nSelectItem; |
100 IPWL_Filler_Notify* m_pFillerNotify; | 100 IPWL_Filler_Notify* m_pFillerNotify; |
101 | 101 CFFL_FormFiller* m_pFormFiller; // Not owned. |
102 void* m_pFormFiller; | |
103 }; | 102 }; |
104 | 103 |
105 #endif // FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_ | 104 #endif // FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_ |
OLD | NEW |