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

Side by Side Diff: xfa/fxfa/parser/xfa_utils.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/xfa_script_signaturepseudomodel.cpp ('k') | xfa/fxfa/parser/xfa_utils_imp.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 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 XFA_FXFA_PARSER_XFA_UTILS_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_UTILS_H_
8 #define XFA_FXFA_PARSER_XFA_UTILS_H_ 8 #define XFA_FXFA_PARSER_XFA_UTILS_H_
9 9
10 #include "xfa/fde/xml/fde_xml.h" 10 #include "xfa/fde/xml/fde_xml.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 } 161 }
162 return GetCurrent(); 162 return GetCurrent();
163 } 163 }
164 164
165 protected: 165 protected:
166 NodeType* m_pRoot; 166 NodeType* m_pRoot;
167 CFX_StackTemplate<NodeType*> m_NodeStack; 167 CFX_StackTemplate<NodeType*> m_NodeStack;
168 }; 168 };
169 169
170 CXFA_Node* XFA_CreateUIChild(CXFA_Node* pNode, XFA_ELEMENT& eWidgetType); 170 CXFA_Node* XFA_CreateUIChild(CXFA_Node* pNode, XFA_Element& eWidgetType);
171 CXFA_LocaleValue XFA_GetLocaleValue(CXFA_WidgetData* pWidgetData); 171 CXFA_LocaleValue XFA_GetLocaleValue(CXFA_WidgetData* pWidgetData);
172 FX_DOUBLE XFA_WideStringToDouble(const CFX_WideString& wsStringVal); 172 FX_DOUBLE XFA_WideStringToDouble(const CFX_WideString& wsStringVal);
173 FX_DOUBLE XFA_ByteStringToDouble(const CFX_ByteStringC& szStringVal); 173 FX_DOUBLE XFA_ByteStringToDouble(const CFX_ByteStringC& szStringVal);
174 int32_t XFA_MapRotation(int32_t nRotation); 174 int32_t XFA_MapRotation(int32_t nRotation);
175 175
176 FX_BOOL XFA_RecognizeRichText(CFDE_XMLElement* pRichTextXMLNode); 176 FX_BOOL XFA_RecognizeRichText(CFDE_XMLElement* pRichTextXMLNode);
177 void XFA_GetPlainTextFromRichText(CFDE_XMLNode* pXMLNode, 177 void XFA_GetPlainTextFromRichText(CFDE_XMLNode* pXMLNode,
178 CFX_WideString& wsPlainText); 178 CFX_WideString& wsPlainText);
179 FX_BOOL XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode); 179 FX_BOOL XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode);
180 IFX_Stream* XFA_CreateWideTextRead(const CFX_WideString& wsBuffer); 180 IFX_Stream* XFA_CreateWideTextRead(const CFX_WideString& wsBuffer);
181 FX_BOOL XFA_IsLayoutElement(XFA_ELEMENT eElement, 181 FX_BOOL XFA_IsLayoutElement(XFA_Element eElement,
182 FX_BOOL bLayoutContainer = FALSE); 182 FX_BOOL bLayoutContainer = FALSE);
183 183
184 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode); 184 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode);
185 void XFA_DataExporter_RegenerateFormFile(CXFA_Node* pNode, 185 void XFA_DataExporter_RegenerateFormFile(CXFA_Node* pNode,
186 IFX_Stream* pStream, 186 IFX_Stream* pStream,
187 const FX_CHAR* pChecksum = NULL, 187 const FX_CHAR* pChecksum = NULL,
188 FX_BOOL bSaveXML = FALSE); 188 FX_BOOL bSaveXML = FALSE);
189 189
190 #endif // XFA_FXFA_PARSER_XFA_UTILS_H_ 190 #endif // XFA_FXFA_PARSER_XFA_UTILS_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_signaturepseudomodel.cpp ('k') | xfa/fxfa/parser/xfa_utils_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698