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

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

Issue 2017863002: Fix MSVC C4800 build warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: put C4800 back Created 4 years, 6 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/app/xfa_ffchoicelist.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 "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void GetUIMargin(CFX_RectF& rtUIMargin); 73 void GetUIMargin(CFX_RectF& rtUIMargin);
74 int32_t GetButtonHighlight(); 74 int32_t GetButtonHighlight();
75 FX_BOOL GetButtonRollover(CFX_WideString& wsRollover, FX_BOOL& bRichText); 75 FX_BOOL GetButtonRollover(CFX_WideString& wsRollover, FX_BOOL& bRichText);
76 FX_BOOL GetButtonDown(CFX_WideString& wsDown, FX_BOOL& bRichText); 76 FX_BOOL GetButtonDown(CFX_WideString& wsDown, FX_BOOL& bRichText);
77 int32_t GetCheckButtonShape(); 77 int32_t GetCheckButtonShape();
78 int32_t GetCheckButtonMark(); 78 int32_t GetCheckButtonMark();
79 FX_FLOAT GetCheckButtonSize(); 79 FX_FLOAT GetCheckButtonSize();
80 FX_BOOL IsAllowNeutral(); 80 FX_BOOL IsAllowNeutral();
81 FX_BOOL IsRadioButton(); 81 FX_BOOL IsRadioButton();
82 XFA_CHECKSTATE GetCheckState(); 82 XFA_CHECKSTATE GetCheckState();
83 void SetCheckState(XFA_CHECKSTATE eCheckState, FX_BOOL bNotify = TRUE); 83 void SetCheckState(XFA_CHECKSTATE eCheckState, bool bNotify);
84 CXFA_Node* GetExclGroupNode(); 84 CXFA_Node* GetExclGroupNode();
85 CXFA_Node* GetSelectedMember(); 85 CXFA_Node* GetSelectedMember();
86 CXFA_Node* SetSelectedMember(const CFX_WideStringC& wsName, 86 CXFA_Node* SetSelectedMember(const CFX_WideStringC& wsName, bool bNotify);
87 FX_BOOL bNotify = TRUE);
88 void SetSelectedMemberByValue(const CFX_WideStringC& wsValue, 87 void SetSelectedMemberByValue(const CFX_WideStringC& wsValue,
89 FX_BOOL bNotify = TRUE, 88 bool bNotify,
90 FX_BOOL bScriptModify = FALSE, 89 FX_BOOL bScriptModify,
91 FX_BOOL bSyncData = TRUE); 90 FX_BOOL bSyncData);
92 CXFA_Node* GetExclGroupFirstMember(); 91 CXFA_Node* GetExclGroupFirstMember();
93 CXFA_Node* GetExclGroupNextMember(CXFA_Node* pNode); 92 CXFA_Node* GetExclGroupNextMember(CXFA_Node* pNode);
94 int32_t GetChoiceListCommitOn(); 93 int32_t GetChoiceListCommitOn();
95 FX_BOOL IsChoiceListAllowTextEntry(); 94 FX_BOOL IsChoiceListAllowTextEntry();
96 int32_t GetChoiceListOpen(); 95 int32_t GetChoiceListOpen();
97 FX_BOOL IsListBox(); 96 FX_BOOL IsListBox();
98 int32_t CountChoiceListItems(FX_BOOL bSaveValue = FALSE); 97 int32_t CountChoiceListItems(FX_BOOL bSaveValue = FALSE);
99 FX_BOOL GetChoiceListItem(CFX_WideString& wsText, 98 FX_BOOL GetChoiceListItem(CFX_WideString& wsText,
100 int32_t nIndex, 99 int32_t nIndex,
101 FX_BOOL bSaveValue = FALSE); 100 FX_BOOL bSaveValue = FALSE);
102 void GetChoiceListItems(CFX_WideStringArray& wsTextArray, 101 void GetChoiceListItems(CFX_WideStringArray& wsTextArray,
103 FX_BOOL bSaveValue = FALSE); 102 FX_BOOL bSaveValue = FALSE);
104 int32_t CountSelectedItems(); 103 int32_t CountSelectedItems();
105 int32_t GetSelectedItem(int32_t nIndex = 0); 104 int32_t GetSelectedItem(int32_t nIndex = 0);
106 void GetSelectedItems(CFX_Int32Array& iSelArray); 105 void GetSelectedItems(CFX_Int32Array& iSelArray);
107 void GetSelectedItemsValue(CFX_WideStringArray& wsSelTextArray); 106 void GetSelectedItemsValue(CFX_WideStringArray& wsSelTextArray);
108 FX_BOOL GetItemState(int32_t nIndex); 107 FX_BOOL GetItemState(int32_t nIndex);
109 void SetItemState(int32_t nIndex, 108 void SetItemState(int32_t nIndex,
110 FX_BOOL bSelected, 109 FX_BOOL bSelected,
111 FX_BOOL bNotify = FALSE, 110 bool bNotify,
112 FX_BOOL bScriptModify = FALSE, 111 FX_BOOL bScriptModify,
113 FX_BOOL bSyncData = TRUE); 112 FX_BOOL bSyncData);
114 void SetSelectedItems(CFX_Int32Array& iSelArray, 113 void SetSelectedItems(CFX_Int32Array& iSelArray,
115 FX_BOOL bNotify = FALSE, 114 bool bNotify,
116 FX_BOOL bScriptModify = FALSE, 115 FX_BOOL bScriptModify,
117 FX_BOOL bSyncData = TRUE); 116 FX_BOOL bSyncData);
118 void ClearAllSelections(); 117 void ClearAllSelections();
119 void InsertItem(const CFX_WideString& wsLabel, 118 void InsertItem(const CFX_WideString& wsLabel,
120 const CFX_WideString& wsValue, 119 const CFX_WideString& wsValue,
121 int32_t nIndex = -1, 120 int32_t nIndex = -1,
122 FX_BOOL bNotify = FALSE); 121 FX_BOOL bNotify = FALSE);
123 void GetItemLabel(const CFX_WideStringC& wsValue, CFX_WideString& wsLabel); 122 void GetItemLabel(const CFX_WideStringC& wsValue, CFX_WideString& wsLabel);
124 void GetItemValue(const CFX_WideStringC& wsLabel, CFX_WideString& wsValue); 123 void GetItemValue(const CFX_WideStringC& wsLabel, CFX_WideString& wsValue);
125 FX_BOOL DeleteItem(int32_t nIndex, 124 FX_BOOL DeleteItem(int32_t nIndex,
126 FX_BOOL bNotify = FALSE, 125 FX_BOOL bNotify = FALSE,
127 FX_BOOL bScriptModify = FALSE, 126 FX_BOOL bScriptModify = FALSE,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 FX_BOOL GetLeadDigits(int32_t& iLeadDigits); 158 FX_BOOL GetLeadDigits(int32_t& iLeadDigits);
160 159
161 CFX_WideString NumericLimit(const CFX_WideString& wsValue, 160 CFX_WideString NumericLimit(const CFX_WideString& wsValue,
162 int32_t iLead, 161 int32_t iLead,
163 int32_t iTread) const; 162 int32_t iTread) const;
164 163
165 FX_BOOL m_bIsNull; 164 FX_BOOL m_bIsNull;
166 FX_BOOL m_bPreNull; 165 FX_BOOL m_bPreNull;
167 166
168 protected: 167 protected:
169 void SyncValue(const CFX_WideString& wsValue, FX_BOOL bNotify); 168 void SyncValue(const CFX_WideString& wsValue, bool bNotify);
170 void InsertListTextItem(CXFA_Node* pItems, 169 void InsertListTextItem(CXFA_Node* pItems,
171 const CFX_WideString& wsText, 170 const CFX_WideString& wsText,
172 int32_t nIndex = -1); 171 int32_t nIndex = -1);
173 void FormatNumStr(const CFX_WideString& wsValue, 172 void FormatNumStr(const CFX_WideString& wsValue,
174 IFX_Locale* pLocale, 173 IFX_Locale* pLocale,
175 CFX_WideString& wsOutput); 174 CFX_WideString& wsOutput);
176 175
177 CXFA_Node* m_pUiChildNode; 176 CXFA_Node* m_pUiChildNode;
178 XFA_ELEMENT m_eUIType; 177 XFA_ELEMENT m_eUIType;
179 }; 178 };
180 179
181 #endif // XFA_FXFA_PARSER_CXFA_WIDGETDATA_H_ 180 #endif // XFA_FXFA_PARSER_CXFA_WIDGETDATA_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/parser/cxfa_widgetdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698