| 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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 uint32_t GetAlignment(); | 24 uint32_t GetAlignment(); |
| 25 | 25 |
| 26 public: | 26 public: |
| 27 void OnSelectChanged(IFWL_Widget* pWidget, const CFX_Int32Array& arrSels); | 27 void OnSelectChanged(IFWL_Widget* pWidget, const CFX_Int32Array& arrSels); |
| 28 void SetItemState(int32_t nIndex, FX_BOOL bSelected); | 28 void SetItemState(int32_t nIndex, FX_BOOL bSelected); |
| 29 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); | 29 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); |
| 30 void DeleteItem(int32_t nIndex); | 30 void DeleteItem(int32_t nIndex); |
| 31 virtual void OnProcessMessage(CFWL_Message* pMessage); | 31 virtual void OnProcessMessage(CFWL_Message* pMessage); |
| 32 virtual void OnProcessEvent(CFWL_Event* pEvent); | 32 virtual void OnProcessEvent(CFWL_Event* pEvent); |
| 33 virtual void OnDrawWidget(CFX_Graphics* pGraphics, | 33 virtual void OnDrawWidget(CFX_Graphics* pGraphics, |
| 34 const CFX_Matrix* pMatrix = NULL); | 34 const CFX_Matrix* pMatrix = nullptr); |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 IFWL_WidgetDelegate* m_pOldDelegate; | 37 IFWL_WidgetDelegate* m_pOldDelegate; |
| 38 }; | 38 }; |
| 39 class CXFA_FFComboBox : public CXFA_FFField { | 39 class CXFA_FFComboBox : public CXFA_FFField { |
| 40 public: | 40 public: |
| 41 CXFA_FFComboBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 41 CXFA_FFComboBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 42 virtual ~CXFA_FFComboBox(); | 42 virtual ~CXFA_FFComboBox(); |
| 43 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, | 43 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, |
| 44 uint32_t dwStatus, | 44 uint32_t dwStatus, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 const CFX_Int32Array& arrSels, | 80 const CFX_Int32Array& arrSels, |
| 81 FX_BOOL bLButtonUp); | 81 FX_BOOL bLButtonUp); |
| 82 void OnPreOpen(IFWL_Widget* pWidget); | 82 void OnPreOpen(IFWL_Widget* pWidget); |
| 83 void OnPostOpen(IFWL_Widget* pWidget); | 83 void OnPostOpen(IFWL_Widget* pWidget); |
| 84 void SetItemState(int32_t nIndex, FX_BOOL bSelected); | 84 void SetItemState(int32_t nIndex, FX_BOOL bSelected); |
| 85 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); | 85 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); |
| 86 void DeleteItem(int32_t nIndex); | 86 void DeleteItem(int32_t nIndex); |
| 87 virtual void OnProcessMessage(CFWL_Message* pMessage); | 87 virtual void OnProcessMessage(CFWL_Message* pMessage); |
| 88 virtual void OnProcessEvent(CFWL_Event* pEvent); | 88 virtual void OnProcessEvent(CFWL_Event* pEvent); |
| 89 virtual void OnDrawWidget(CFX_Graphics* pGraphics, | 89 virtual void OnDrawWidget(CFX_Graphics* pGraphics, |
| 90 const CFX_Matrix* pMatrix = NULL); | 90 const CFX_Matrix* pMatrix = nullptr); |
| 91 | 91 |
| 92 protected: | 92 protected: |
| 93 IFWL_WidgetDelegate* m_pOldDelegate; | 93 IFWL_WidgetDelegate* m_pOldDelegate; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_ | 96 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_ |
| OLD | NEW |