Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: xfa/fxfa/parser/cxfa_widgetdata.h

Issue 2649563003: Replace CFX_ByteArray with CFX_ArrayTemplate<uint8_t> (Closed)
Patch Set: re-upload Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/parser/cxfa_resolveprocessor.cpp ('k') | xfa/fxfa/parser/cxfa_widgetdata.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_resolveprocessor.cpp ('k') | xfa/fxfa/parser/cxfa_widgetdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698