• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/cfx_seekablestreamproxy.h"
11 #include "xfa/fxfa/fxfa_basic.h"
12 
13 class CFX_XMLElement;
14 class CFX_XMLNode;
15 class CXFA_LocaleValue;
16 class CXFA_Node;
17 class CXFA_WidgetAcc;
18 
19 double XFA_GetFractionalScale(uint32_t idx);
20 int XFA_GetMaxFractionalScale();
21 
22 bool XFA_FDEExtension_ResolveNamespaceQualifier(CFX_XMLElement* pNode,
23                                                 const WideString& wsQualifier,
24                                                 WideString* wsNamespaceURI);
25 
26 CXFA_LocaleValue XFA_GetLocaleValue(CXFA_Node* pNode);
27 int32_t XFA_MapRotation(int32_t nRotation);
28 
29 bool XFA_RecognizeRichText(CFX_XMLElement* pRichTextXMLNode);
30 bool XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode);
31 
32 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode);
33 void XFA_DataExporter_RegenerateFormFile(
34     CXFA_Node* pNode,
35     const RetainPtr<CFX_SeekableStreamProxy>& pStream,
36     const char* pChecksum,
37     bool bSaveXML);
38 
39 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName(
40     XFA_Element eElement,
41     const WideStringView& wsAttributeName);
42 
43 #endif  // XFA_FXFA_PARSER_XFA_UTILS_H_
44