| 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_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ |
| 8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/basewidget/ifwl_listbox.h" | 10 #include "xfa/fwl/basewidget/ifwl_listbox.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6) | 32 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6) |
| 33 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8) | 33 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8) |
| 34 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10) | 34 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10) |
| 35 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10) | 35 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10) |
| 36 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) | 36 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) |
| 37 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) | 37 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) |
| 38 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) | 38 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) |
| 39 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) | 39 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) |
| 40 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) | 40 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) |
| 41 | 41 |
| 42 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown) | 42 FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown) |
| 43 END_FWL_EVENT_DEF | |
| 44 | 43 |
| 45 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown) | 44 FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown) |
| 46 END_FWL_EVENT_DEF | |
| 47 | 45 |
| 48 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbCloseUp, CFWL_EventType::CloseUp) | 46 FWL_EVENT_DEF(CFWL_EvtCmbCloseUp, CFWL_EventType::CloseUp) |
| 49 END_FWL_EVENT_DEF | |
| 50 | 47 |
| 51 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbEditChanged, CFWL_EventType::EditChanged) | 48 FWL_EVENT_DEF(CFWL_EvtCmbEditChanged, |
| 52 int32_t nChangeType; | 49 CFWL_EventType::EditChanged, |
| 53 CFX_WideString wsInsert; | 50 int32_t nChangeType; |
| 54 CFX_WideString wsDelete; | 51 CFX_WideString wsInsert; |
| 55 END_FWL_EVENT_DEF | 52 CFX_WideString wsDelete;) |
| 56 | 53 |
| 57 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, CFWL_EventType::SelectChanged) | 54 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, |
| 58 CFX_Int32Array iArraySels; | 55 CFWL_EventType::SelectChanged, |
| 59 FX_BOOL bLButtonUp; | 56 CFX_Int32Array iArraySels; |
| 60 END_FWL_EVENT_DEF | 57 FX_BOOL bLButtonUp;) |
| 61 | 58 |
| 62 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbHoverChanged, CFWL_EventType::HoverChanged) | 59 FWL_EVENT_DEF(CFWL_EvtCmbHoverChanged, |
| 63 int32_t m_iCurHover; | 60 CFWL_EventType::HoverChanged, |
| 64 END_FWL_EVENT_DEF | 61 int32_t m_iCurHover;) |
| 65 | 62 |
| 66 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, CFWL_EventType::DrawItem) | 63 FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, |
| 67 CFX_Graphics* m_pGraphics; | 64 CFWL_EventType::DrawItem, |
| 68 CFX_Matrix m_matrix; | 65 CFX_Graphics* m_pGraphics; |
| 69 int32_t m_index; | 66 CFX_Matrix m_matrix; |
| 70 CFX_RectF m_rtItem; | 67 int32_t m_index; |
| 71 END_FWL_EVENT_DEF | 68 CFX_RectF m_rtItem;) |
| 72 | 69 |
| 73 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { | 70 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { |
| 74 public: | 71 public: |
| 75 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 72 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; |
| 76 }; | 73 }; |
| 77 | 74 |
| 78 class IFWL_ComboBox : public IFWL_Widget { | 75 class IFWL_ComboBox : public IFWL_Widget { |
| 79 public: | 76 public: |
| 80 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties); | 77 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties); |
| 81 | 78 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 111 FX_BOOL EditDeSelect(); | 108 FX_BOOL EditDeSelect(); |
| 112 FWL_Error GetBBox(CFX_RectF& rect); | 109 FWL_Error GetBBox(CFX_RectF& rect); |
| 113 FWL_Error EditModifyStylesEx(uint32_t dwStylesExAdded, | 110 FWL_Error EditModifyStylesEx(uint32_t dwStylesExAdded, |
| 114 uint32_t dwStylesExRemoved); | 111 uint32_t dwStylesExRemoved); |
| 115 | 112 |
| 116 protected: | 113 protected: |
| 117 IFWL_ComboBox(); | 114 IFWL_ComboBox(); |
| 118 }; | 115 }; |
| 119 | 116 |
| 120 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ | 117 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ |
| OLD | NEW |