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

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

Issue 2089443002: Convert XFA_ELEMENT to an enum class (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: More unknown checks 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/parser/cxfa_value.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 24 matching lines...) Expand all
35 }; 35 };
36 36
37 class CXFA_Node; 37 class CXFA_Node;
38 class IFX_Locale; 38 class IFX_Locale;
39 39
40 class CXFA_WidgetData : public CXFA_Data { 40 class CXFA_WidgetData : public CXFA_Data {
41 public: 41 public:
42 explicit CXFA_WidgetData(CXFA_Node* pNode); 42 explicit CXFA_WidgetData(CXFA_Node* pNode);
43 43
44 CXFA_Node* GetUIChild(); 44 CXFA_Node* GetUIChild();
45 XFA_ELEMENT GetUIType(); 45 XFA_Element GetUIType();
46 CFX_WideString GetRawValue(); 46 CFX_WideString GetRawValue();
47 int32_t GetAccess(FX_BOOL bTemplate = FALSE); 47 int32_t GetAccess(FX_BOOL bTemplate = FALSE);
48 int32_t GetRotate(); 48 int32_t GetRotate();
49 CXFA_Border GetBorder(FX_BOOL bModified = FALSE); 49 CXFA_Border GetBorder(FX_BOOL bModified = FALSE);
50 CXFA_Caption GetCaption(FX_BOOL bModified = FALSE); 50 CXFA_Caption GetCaption(FX_BOOL bModified = FALSE);
51 CXFA_Font GetFont(FX_BOOL bModified = FALSE); 51 CXFA_Font GetFont(FX_BOOL bModified = FALSE);
52 CXFA_Margin GetMargin(FX_BOOL bModified = FALSE); 52 CXFA_Margin GetMargin(FX_BOOL bModified = FALSE);
53 CXFA_Para GetPara(FX_BOOL bModified = FALSE); 53 CXFA_Para GetPara(FX_BOOL bModified = FALSE);
54 void GetEventList(CXFA_NodeArray& events); 54 void GetEventList(CXFA_NodeArray& events);
55 int32_t GetEventByActivity(int32_t iActivity, 55 int32_t GetEventByActivity(int32_t iActivity,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 FX_BOOL GetBarcodeAttribute_ECLevel(int32_t& val); 145 FX_BOOL GetBarcodeAttribute_ECLevel(int32_t& val);
146 FX_BOOL GetBarcodeAttribute_ModuleWidth(int32_t& val); 146 FX_BOOL GetBarcodeAttribute_ModuleWidth(int32_t& val);
147 FX_BOOL GetBarcodeAttribute_ModuleHeight(int32_t& val); 147 FX_BOOL GetBarcodeAttribute_ModuleHeight(int32_t& val);
148 FX_BOOL GetBarcodeAttribute_PrintChecksum(FX_BOOL& val); 148 FX_BOOL GetBarcodeAttribute_PrintChecksum(FX_BOOL& val);
149 FX_BOOL GetBarcodeAttribute_TextLocation(int32_t& val); 149 FX_BOOL GetBarcodeAttribute_TextLocation(int32_t& val);
150 FX_BOOL GetBarcodeAttribute_Truncate(FX_BOOL& val); 150 FX_BOOL GetBarcodeAttribute_Truncate(FX_BOOL& val);
151 FX_BOOL GetBarcodeAttribute_WideNarrowRatio(FX_FLOAT& val); 151 FX_BOOL GetBarcodeAttribute_WideNarrowRatio(FX_FLOAT& val);
152 void GetPasswordChar(CFX_WideString& wsPassWord); 152 void GetPasswordChar(CFX_WideString& wsPassWord);
153 FX_BOOL IsMultiLine(); 153 FX_BOOL IsMultiLine();
154 int32_t GetVerticalScrollPolicy(); 154 int32_t GetVerticalScrollPolicy();
155 int32_t GetMaxChars(XFA_ELEMENT& eType); 155 int32_t GetMaxChars(XFA_Element& eType);
156 FX_BOOL GetFracDigits(int32_t& iFracDigits); 156 FX_BOOL GetFracDigits(int32_t& iFracDigits);
157 FX_BOOL GetLeadDigits(int32_t& iLeadDigits); 157 FX_BOOL GetLeadDigits(int32_t& iLeadDigits);
158 158
159 CFX_WideString NumericLimit(const CFX_WideString& wsValue, 159 CFX_WideString NumericLimit(const CFX_WideString& wsValue,
160 int32_t iLead, 160 int32_t iLead,
161 int32_t iTread) const; 161 int32_t iTread) const;
162 162
163 FX_BOOL m_bIsNull; 163 FX_BOOL m_bIsNull;
164 FX_BOOL m_bPreNull; 164 FX_BOOL m_bPreNull;
165 165
166 protected: 166 protected:
167 void SyncValue(const CFX_WideString& wsValue, bool bNotify); 167 void SyncValue(const CFX_WideString& wsValue, bool bNotify);
168 void InsertListTextItem(CXFA_Node* pItems, 168 void InsertListTextItem(CXFA_Node* pItems,
169 const CFX_WideString& wsText, 169 const CFX_WideString& wsText,
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_value.cpp ('k') | xfa/fxfa/parser/cxfa_widgetdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698