xref: /aosp_15_r20/external/pdfium/xfa/fxfa/parser/xfa_utils.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2014 The PDFium Authors
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 "core/fxcrt/retain_ptr.h"
12 #include "core/fxcrt/widestring.h"
13 #include "xfa/fxfa/fxfa.h"
14 #include "xfa/fxfa/fxfa_basic.h"
15 #include "xfa/fxfa/parser/cxfa_localevalue.h"
16 
17 class CFX_XMLElement;
18 class CXFA_Node;
19 
20 bool XFA_FDEExtension_ResolveNamespaceQualifier(CFX_XMLElement* pNode,
21                                                 const WideString& wsQualifier,
22                                                 WideString* wsNamespaceURI);
23 
24 CXFA_LocaleValue XFA_GetLocaleValue(const CXFA_Node* pNode);
25 CXFA_LocaleValue::ValueType XFA_GetLocaleValueType(XFA_Element element);
26 int32_t XFA_MapRotation(int32_t nRotation);
27 
28 bool XFA_RecognizeRichText(CFX_XMLElement* pRichTextXMLNode);
29 bool XFA_FieldIsMultiListBox(const CXFA_Node* pFieldNode);
30 
31 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode);
32 void XFA_DataExporter_RegenerateFormFile(
33     CXFA_Node* pNode,
34     const RetainPtr<IFX_SeekableStream>& pStream,
35     bool bSaveXML);
36 
37 void XFA_EventErrorAccumulate(XFA_EventError* pAcc, XFA_EventError eNew);
38 
39 #endif  // XFA_FXFA_PARSER_XFA_UTILS_H_
40