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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 intptr_t lParam = 0) override; | 62 intptr_t lParam = 0) override; |
63 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; | 63 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; |
64 void RePosChildWnd() override; | 64 void RePosChildWnd() override; |
65 CFX_FloatRect GetFocusRect() const override; | 65 CFX_FloatRect GetFocusRect() const override; |
66 void SetFocus() override; | 66 void SetFocus() override; |
67 void KillFocus() override; | 67 void KillFocus() override; |
68 | 68 |
69 void SetFillerNotify(IPWL_Filler_Notify* pNotify); | 69 void SetFillerNotify(IPWL_Filler_Notify* pNotify); |
70 | 70 |
71 CFX_WideString GetText() const; | 71 CFX_WideString GetText() const; |
72 void SetText(const FX_WCHAR* text); | 72 void SetText(const CFX_WideString& text); |
73 | 73 void AddString(const CFX_WideString& str); |
74 void AddString(const FX_WCHAR* str); | |
75 int32_t GetSelect() const; | 74 int32_t GetSelect() const; |
76 void SetSelect(int32_t nItemIndex); | 75 void SetSelect(int32_t nItemIndex); |
77 | 76 |
78 void SetEditSel(int32_t nStartChar, int32_t nEndChar); | 77 void SetEditSel(int32_t nStartChar, int32_t nEndChar); |
79 void GetEditSel(int32_t& nStartChar, int32_t& nEndChar) const; | 78 void GetEditSel(int32_t& nStartChar, int32_t& nEndChar) const; |
80 void Clear(); | 79 void Clear(); |
81 void SelectAll(); | 80 void SelectAll(); |
82 FX_BOOL IsPopup() const; | 81 FX_BOOL IsPopup() const; |
83 | 82 |
84 void SetSelectText(); | 83 void SetSelectText(); |
(...skipping 12 matching lines...) Expand all Loading... |
97 FX_BOOL m_bPopup; | 96 FX_BOOL m_bPopup; |
98 CFX_FloatRect m_rcOldWindow; | 97 CFX_FloatRect m_rcOldWindow; |
99 int32_t m_nPopupWhere; | 98 int32_t m_nPopupWhere; |
100 int32_t m_nSelectItem; | 99 int32_t m_nSelectItem; |
101 IPWL_Filler_Notify* m_pFillerNotify; | 100 IPWL_Filler_Notify* m_pFillerNotify; |
102 | 101 |
103 void* m_pFormFiller; | 102 void* m_pFormFiller; |
104 }; | 103 }; |
105 | 104 |
106 #endif // FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_ | 105 #endif // FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_ |
OLD | NEW |