| 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 _FWL_COMBOBOX_LIGHT_H | 7 #ifndef _FWL_COMBOBOX_LIGHT_H |
| 8 #define _FWL_COMBOBOX_LIGHT_H | 8 #define _FWL_COMBOBOX_LIGHT_H |
| 9 class CFWL_Widget; | 9 class CFWL_Widget; |
| 10 class CFWL_WidgetProperties; | 10 class CFWL_WidgetProperties; |
| 11 class IFWL_ComboBoxDP; | 11 class IFWL_ComboBoxDP; |
| 12 class CFWL_ComboBox; | 12 class CFWL_ComboBox; |
| 13 class CFWL_ComboBoxDP; | 13 class CFWL_ComboBoxDP; |
| 14 class CFWL_ComboBoxItem; | 14 class CFWL_ComboBoxItem; |
| 15 class CFWL_ComboBox : public CFWL_Widget | 15 class CFWL_ComboBox : public CFWL_Widget |
| 16 { | 16 { |
| 17 public: | 17 public: |
| 18 static CFWL_ComboBox* Create(); | 18 static CFWL_ComboBox* Create(); |
| 19 FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NU
LL); | 19 FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NU
LL); |
| 20 FX_INT32» AddString(FX_WSTR wsText); | 20 int32_t» AddString(FX_WSTR wsText); |
| 21 FX_INT32» AddString(FX_WSTR wsText, CFX_DIBitmap *pIcon); | 21 int32_t» AddString(FX_WSTR wsText, CFX_DIBitmap *pIcon); |
| 22 FX_INT32» RemoveAt(FX_INT32 iIndex); | 22 int32_t» RemoveAt(int32_t iIndex); |
| 23 FX_INT32 RemoveAll(); | 23 int32_t RemoveAll(); |
| 24 FX_INT32» CountItems(); | 24 int32_t» CountItems(); |
| 25 FWL_ERR» » GetTextByIndex(FX_INT32 iIndex, CFX_WideString &wsText); | 25 FWL_ERR» » GetTextByIndex(int32_t iIndex, CFX_WideString &wsText); |
| 26 FX_INT32» GetCurSel(); | 26 int32_t» GetCurSel(); |
| 27 FWL_ERR» » SetCurSel(FX_INT32 iSel); | 27 FWL_ERR» » SetCurSel(int32_t iSel); |
| 28 FWL_ERR SetEditText(FX_WSTR wsText); | 28 FWL_ERR SetEditText(FX_WSTR wsText); |
| 29 FX_INT32» GetEditTextLength() const; | 29 int32_t» GetEditTextLength() const; |
| 30 FWL_ERR» » GetEditText(CFX_WideString &wsText, FX_INT32 nStart = 0,
FX_INT32 nCount = -1) const ; | 30 FWL_ERR» » GetEditText(CFX_WideString &wsText, int32_t nStart = 0,
int32_t nCount = -1) const ; |
| 31 FWL_ERR» » SetEditSelRange(FX_INT32 nStart, FX_INT32 nCount = -1); | 31 FWL_ERR» » SetEditSelRange(int32_t nStart, int32_t nCount = -1); |
| 32 FX_INT32» GetEditSelRange(FX_INT32 nIndex, FX_INT32 &nStart); | 32 int32_t» GetEditSelRange(int32_t nIndex, int32_t &nStart); |
| 33 FX_INT32» GetEditLimit(); | 33 int32_t» GetEditLimit(); |
| 34 FWL_ERR» » SetEditLimit(FX_INT32 nLimit); | 34 FWL_ERR» » SetEditLimit(int32_t nLimit); |
| 35 FWL_ERR» » EditDoClipboard(FX_INT32 iCmd); | 35 FWL_ERR» » EditDoClipboard(int32_t iCmd); |
| 36 FX_BOOL EditRedo(FX_BSTR bsRecord); | 36 FX_BOOL EditRedo(FX_BSTR bsRecord); |
| 37 FX_BOOL EditUndo(FX_BSTR bsRecord); | 37 FX_BOOL EditUndo(FX_BSTR bsRecord); |
| 38 FWL_ERR SetMaxListHeight(FX_FLOAT fMaxHeight); | 38 FWL_ERR SetMaxListHeight(FX_FLOAT fMaxHeight); |
| 39 FWL_ERR» » SetItemData(FX_INT32 iIndex, FX_LPVOID pData); | 39 FWL_ERR» » SetItemData(int32_t iIndex, FX_LPVOID pData); |
| 40 FX_LPVOID» GetItemData(FX_INT32 iIndex); | 40 FX_LPVOID» GetItemData(int32_t iIndex); |
| 41 FWL_ERR SetListTheme(IFWL_ThemeProvider *pTheme); | 41 FWL_ERR SetListTheme(IFWL_ThemeProvider *pTheme); |
| 42 FX_BOOL AfterFocusShowDropList(); | 42 FX_BOOL AfterFocusShowDropList(); |
| 43 FWL_ERR OpenDropDownList(FX_BOOL bActivate); | 43 FWL_ERR OpenDropDownList(FX_BOOL bActivate); |
| 44 public: | 44 public: |
| 45 FX_BOOL EditCanUndo(); | 45 FX_BOOL EditCanUndo(); |
| 46 FX_BOOL EditCanRedo(); | 46 FX_BOOL EditCanRedo(); |
| 47 FX_BOOL EditUndo(); | 47 FX_BOOL EditUndo(); |
| 48 FX_BOOL EditRedo(); | 48 FX_BOOL EditRedo(); |
| 49 FX_BOOL EditCanCopy(); | 49 FX_BOOL EditCanCopy(); |
| 50 FX_BOOL EditCanCut(); | 50 FX_BOOL EditCanCut(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 63 class CFWL_ComboBoxDP : public IFWL_ComboBoxDP | 63 class CFWL_ComboBoxDP : public IFWL_ComboBoxDP |
| 64 { | 64 { |
| 65 public: | 65 public: |
| 66 CFWL_ComboBoxDP(); | 66 CFWL_ComboBoxDP(); |
| 67 ~CFWL_ComboBoxDP(); | 67 ~CFWL_ComboBoxDP(); |
| 68 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_Wid
eString &wsCaption) | 68 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_Wid
eString &wsCaption) |
| 69 { | 69 { |
| 70 return FWL_ERR_Succeeded; | 70 return FWL_ERR_Succeeded; |
| 71 } | 71 } |
| 72 | 72 |
| 73 virtual»FX_INT32» » CountItems(IFWL_Widget *pWidget); | 73 virtual»int32_t»» CountItems(IFWL_Widget *pWidget); |
| 74 virtual»FWL_HLISTITEM» GetItem(IFWL_Widget *pWidget, FX_INT32 nIndex); | 74 virtual»FWL_HLISTITEM» GetItem(IFWL_Widget *pWidget, int32_t nIndex); |
| 75 virtual»FX_INT32» » GetItemIndex(IFWL_Widget *pWidget, FWL_H
LISTITEM hItem); | 75 virtual»int32_t»» GetItemIndex(IFWL_Widget *pWidget, FWL_HLISTITEM
hItem); |
| 76 virtual FX_BOOL»» » SetItemIndex(IFWL_Widget *pWidget, FWL_H
LISTITEM hItem, FX_INT32 nIndex); | 76 virtual FX_BOOL»» » SetItemIndex(IFWL_Widget *pWidget, FWL_H
LISTITEM hItem, int32_t nIndex); |
| 77 | 77 |
| 78 virtual FX_DWORD GetItemStyles(IFWL_Widget *pWidget, FWL_
HLISTITEM hItem); | 78 virtual FX_DWORD GetItemStyles(IFWL_Widget *pWidget, FWL_
HLISTITEM hItem); |
| 79 virtual FWL_ERR GetItemText(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, CFX_WideString &wsText); | 79 virtual FWL_ERR GetItemText(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, CFX_WideString &wsText); |
| 80 virtual FWL_ERR GetItemRect(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, CFX_RectF& rtItem); | 80 virtual FWL_ERR GetItemRect(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, CFX_RectF& rtItem); |
| 81 virtual FX_LPVOID GetItemData(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem); | 81 virtual FX_LPVOID GetItemData(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem); |
| 82 virtual FWL_ERR SetItemStyles(IFWL_Widget *pWidget, FWL_
HLISTITEM hItem, FX_DWORD dwStyle); | 82 virtual FWL_ERR SetItemStyles(IFWL_Widget *pWidget, FWL_
HLISTITEM hItem, FX_DWORD dwStyle); |
| 83 virtual FWL_ERR SetItemText(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, FX_LPCWSTR pszText); | 83 virtual FWL_ERR SetItemText(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, FX_LPCWSTR pszText); |
| 84 virtual FWL_ERR SetItemRect(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, const CFX_RectF& rtItem); | 84 virtual FWL_ERR SetItemRect(IFWL_Widget *pWidget, FWL_HL
ISTITEM hItem, const CFX_RectF& rtItem); |
| 85 virtual FX_FLOAT GetItemHeight(IFWL_Widget *pWidget); | 85 virtual FX_FLOAT GetItemHeight(IFWL_Widget *pWidget); |
| 86 virtual CFX_DIBitmap* GetItemIcon(IFWL_Widget *pWidget, FWL_HLISTITEM
hItem); | 86 virtual CFX_DIBitmap* GetItemIcon(IFWL_Widget *pWidget, FWL_HLISTITEM
hItem); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 106 } | 106 } |
| 107 CFX_RectF m_rtItem; | 107 CFX_RectF m_rtItem; |
| 108 FX_DWORD m_dwStyles; | 108 FX_DWORD m_dwStyles; |
| 109 CFX_WideString m_wsText; | 109 CFX_WideString m_wsText; |
| 110 CFX_DIBitmap *m_pDIB; | 110 CFX_DIBitmap *m_pDIB; |
| 111 FX_DWORD m_dwCheckState; | 111 FX_DWORD m_dwCheckState; |
| 112 CFX_RectF m_rtCheckBox; | 112 CFX_RectF m_rtCheckBox; |
| 113 FX_LPVOID m_pData; | 113 FX_LPVOID m_pData; |
| 114 }; | 114 }; |
| 115 #endif | 115 #endif |
| OLD | NEW |