1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_PARSER_XFA_UTILS_H_ 8 #define XFA_FXFA_PARSER_XFA_UTILS_H_ 9 10 #include "core/fxcrt/fx_stream.h" 11 #include "xfa/fxfa/fxfa.h" 12 #include "xfa/fxfa/fxfa_basic.h" 13 14 class CFX_XMLElement; 15 class CFX_XMLNode; 16 class CXFA_LocaleValue; 17 class CXFA_Node; 18 19 bool XFA_FDEExtension_ResolveNamespaceQualifier(CFX_XMLElement* pNode, 20 const WideString& wsQualifier, 21 WideString* wsNamespaceURI); 22 23 CXFA_LocaleValue XFA_GetLocaleValue(CXFA_Node* pNode); 24 int32_t XFA_MapRotation(int32_t nRotation); 25 26 bool XFA_RecognizeRichText(CFX_XMLElement* pRichTextXMLNode); 27 bool XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode); 28 29 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode); 30 void XFA_DataExporter_RegenerateFormFile( 31 CXFA_Node* pNode, 32 const RetainPtr<IFX_SeekableStream>& pStream, 33 bool bSaveXML); 34 35 void XFA_EventErrorAccumulate(XFA_EventError* pAcc, XFA_EventError eNew); 36 37 #endif // XFA_FXFA_PARSER_XFA_UTILS_H_ 38