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 XFA_FXFA_APP_XFA_FFCHOICELIST_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFCHOICELIST_H_ |
8 #define XFA_FXFA_APP_XFA_FFCHOICELIST_H_ | 8 #define XFA_FXFA_APP_XFA_FFCHOICELIST_H_ |
9 | 9 |
10 #include "xfa/fxfa/app/xfa_fffield.h" | 10 #include "xfa/fxfa/app/xfa_fffield.h" |
11 #include "xfa/fxfa/xfa_ffpageview.h" | 11 #include "xfa/fxfa/xfa_ffpageview.h" |
12 | 12 |
13 class CXFA_FFListBox : public CXFA_FFField { | 13 class CXFA_FFListBox : public CXFA_FFField { |
14 public: | 14 public: |
15 CXFA_FFListBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 15 CXFA_FFListBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
16 ~CXFA_FFListBox() override; | 16 ~CXFA_FFListBox() override; |
17 | 17 |
18 // CXFA_FFField | 18 // CXFA_FFField |
19 bool LoadWidget() override; | 19 bool LoadWidget() override; |
20 bool OnKillFocus(CXFA_FFWidget* pNewWidget) override; | 20 bool OnKillFocus(CXFA_FFWidget* pNewWidget) override; |
21 void OnProcessMessage(CFWL_Message* pMessage) override; | 21 void OnProcessMessage(CFWL_Message* pMessage) override; |
22 void OnProcessEvent(CFWL_Event* pEvent) override; | 22 void OnProcessEvent(CFWL_Event* pEvent) override; |
23 void OnDrawWidget(CFX_Graphics* pGraphics, | 23 void OnDrawWidget(CFX_Graphics* pGraphics, |
24 const CFX_Matrix* pMatrix = nullptr) override; | 24 const CFX_Matrix* pMatrix = nullptr) override; |
25 | 25 |
26 void OnSelectChanged(CFWL_Widget* pWidget, const CFX_Int32Array& arrSels); | 26 void OnSelectChanged(CFWL_Widget* pWidget, |
| 27 const CFX_ArrayTemplate<int32_t>& arrSels); |
27 void SetItemState(int32_t nIndex, bool bSelected); | 28 void SetItemState(int32_t nIndex, bool bSelected); |
28 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); | 29 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); |
29 void DeleteItem(int32_t nIndex); | 30 void DeleteItem(int32_t nIndex); |
30 | 31 |
31 protected: | 32 protected: |
32 bool CommitData() override; | 33 bool CommitData() override; |
33 bool UpdateFWLData() override; | 34 bool UpdateFWLData() override; |
34 bool IsDataChanged() override; | 35 bool IsDataChanged() override; |
35 | 36 |
36 uint32_t GetAlignment(); | 37 uint32_t GetAlignment(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool IsDataChanged() override; | 92 bool IsDataChanged() override; |
92 | 93 |
93 uint32_t GetAlignment(); | 94 uint32_t GetAlignment(); |
94 void FWLEventSelChange(CXFA_EventParam* pParam); | 95 void FWLEventSelChange(CXFA_EventParam* pParam); |
95 | 96 |
96 CFX_WideString m_wsNewValue; | 97 CFX_WideString m_wsNewValue; |
97 IFWL_WidgetDelegate* m_pOldDelegate; | 98 IFWL_WidgetDelegate* m_pOldDelegate; |
98 }; | 99 }; |
99 | 100 |
100 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_ | 101 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_ |
OLD | NEW |