| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_PARSER_CXFA_WIDGETDATA_H_ | 7 #ifndef XFA_FXFA_PARSER_CXFA_WIDGETDATA_H_ |
| 8 #define XFA_FXFA_PARSER_CXFA_WIDGETDATA_H_ | 8 #define XFA_FXFA_PARSER_CXFA_WIDGETDATA_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 int32_t GetChoiceListOpen(); | 95 int32_t GetChoiceListOpen(); |
| 96 bool IsListBox(); | 96 bool IsListBox(); |
| 97 int32_t CountChoiceListItems(bool bSaveValue = false); | 97 int32_t CountChoiceListItems(bool bSaveValue = false); |
| 98 bool GetChoiceListItem(CFX_WideString& wsText, | 98 bool GetChoiceListItem(CFX_WideString& wsText, |
| 99 int32_t nIndex, | 99 int32_t nIndex, |
| 100 bool bSaveValue = false); | 100 bool bSaveValue = false); |
| 101 void GetChoiceListItems(std::vector<CFX_WideString>& wsTextArray, | 101 void GetChoiceListItems(std::vector<CFX_WideString>& wsTextArray, |
| 102 bool bSaveValue = false); | 102 bool bSaveValue = false); |
| 103 int32_t CountSelectedItems(); | 103 int32_t CountSelectedItems(); |
| 104 int32_t GetSelectedItem(int32_t nIndex = 0); | 104 int32_t GetSelectedItem(int32_t nIndex = 0); |
| 105 void GetSelectedItems(CFX_Int32Array& iSelArray); | 105 void GetSelectedItems(CFX_ArrayTemplate<int32_t>& iSelArray); |
| 106 void GetSelectedItemsValue(std::vector<CFX_WideString>& wsSelTextArray); | 106 void GetSelectedItemsValue(std::vector<CFX_WideString>& wsSelTextArray); |
| 107 bool GetItemState(int32_t nIndex); | 107 bool GetItemState(int32_t nIndex); |
| 108 void SetItemState(int32_t nIndex, | 108 void SetItemState(int32_t nIndex, |
| 109 bool bSelected, | 109 bool bSelected, |
| 110 bool bNotify, | 110 bool bNotify, |
| 111 bool bScriptModify, | 111 bool bScriptModify, |
| 112 bool bSyncData); | 112 bool bSyncData); |
| 113 void SetSelectedItems(CFX_Int32Array& iSelArray, | 113 void SetSelectedItems(CFX_ArrayTemplate<int32_t>& iSelArray, |
| 114 bool bNotify, | 114 bool bNotify, |
| 115 bool bScriptModify, | 115 bool bScriptModify, |
| 116 bool bSyncData); | 116 bool bSyncData); |
| 117 void ClearAllSelections(); | 117 void ClearAllSelections(); |
| 118 void InsertItem(const CFX_WideString& wsLabel, | 118 void InsertItem(const CFX_WideString& wsLabel, |
| 119 const CFX_WideString& wsValue, | 119 const CFX_WideString& wsValue, |
| 120 int32_t nIndex = -1, | 120 int32_t nIndex = -1, |
| 121 bool bNotify = false); | 121 bool bNotify = false); |
| 122 void GetItemLabel(const CFX_WideStringC& wsValue, CFX_WideString& wsLabel); | 122 void GetItemLabel(const CFX_WideStringC& wsValue, CFX_WideString& wsLabel); |
| 123 void GetItemValue(const CFX_WideStringC& wsLabel, CFX_WideString& wsValue); | 123 void GetItemValue(const CFX_WideStringC& wsLabel, CFX_WideString& wsValue); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 int32_t nIndex = -1); | 170 int32_t nIndex = -1); |
| 171 void FormatNumStr(const CFX_WideString& wsValue, | 171 void FormatNumStr(const CFX_WideString& wsValue, |
| 172 IFX_Locale* pLocale, | 172 IFX_Locale* pLocale, |
| 173 CFX_WideString& wsOutput); | 173 CFX_WideString& wsOutput); |
| 174 | 174 |
| 175 CXFA_Node* m_pUiChildNode; | 175 CXFA_Node* m_pUiChildNode; |
| 176 XFA_Element m_eUIType; | 176 XFA_Element m_eUIType; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 #endif // XFA_FXFA_PARSER_CXFA_WIDGETDATA_H_ | 179 #endif // XFA_FXFA_PARSER_CXFA_WIDGETDATA_H_ |
| OLD | NEW |