OLD | NEW |
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 }; | 163 }; |
164 | 164 |
165 CXFA_LocaleValue XFA_GetLocaleValue(CXFA_WidgetData* pWidgetData); | 165 CXFA_LocaleValue XFA_GetLocaleValue(CXFA_WidgetData* pWidgetData); |
166 FX_DOUBLE XFA_ByteStringToDouble(const CFX_ByteStringC& szStringVal); | 166 FX_DOUBLE XFA_ByteStringToDouble(const CFX_ByteStringC& szStringVal); |
167 int32_t XFA_MapRotation(int32_t nRotation); | 167 int32_t XFA_MapRotation(int32_t nRotation); |
168 | 168 |
169 FX_BOOL XFA_RecognizeRichText(CFDE_XMLElement* pRichTextXMLNode); | 169 FX_BOOL XFA_RecognizeRichText(CFDE_XMLElement* pRichTextXMLNode); |
170 void XFA_GetPlainTextFromRichText(CFDE_XMLNode* pXMLNode, | 170 void XFA_GetPlainTextFromRichText(CFDE_XMLNode* pXMLNode, |
171 CFX_WideString& wsPlainText); | 171 CFX_WideString& wsPlainText); |
172 FX_BOOL XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode); | 172 FX_BOOL XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode); |
173 IFX_Stream* XFA_CreateWideTextRead(const CFX_WideString& wsBuffer); | |
174 | 173 |
175 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode); | 174 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode); |
176 void XFA_DataExporter_RegenerateFormFile(CXFA_Node* pNode, | 175 void XFA_DataExporter_RegenerateFormFile(CXFA_Node* pNode, |
177 IFX_Stream* pStream, | 176 IFX_Stream* pStream, |
178 const FX_CHAR* pChecksum = nullptr, | 177 const FX_CHAR* pChecksum = nullptr, |
179 FX_BOOL bSaveXML = FALSE); | 178 FX_BOOL bSaveXML = FALSE); |
180 | 179 |
| 180 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute( |
| 181 XFA_Element eElement, |
| 182 XFA_ATTRIBUTE eAttribute, |
| 183 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); |
| 184 |
| 185 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( |
| 186 XFA_Element eElement, |
| 187 const CFX_WideStringC& wsAttributeName); |
| 188 |
| 189 const XFA_PROPERTY* XFA_GetPropertyOfElement(XFA_Element eElement, |
| 190 XFA_Element eProperty, |
| 191 uint32_t dwPacket); |
| 192 const XFA_PROPERTY* XFA_GetElementProperties(XFA_Element eElement, |
| 193 int32_t& iCount); |
| 194 const uint8_t* XFA_GetElementAttributes(XFA_Element eElement, int32_t& iCount); |
| 195 const XFA_ELEMENTINFO* XFA_GetElementByID(XFA_Element eName); |
| 196 XFA_Element XFA_GetElementTypeForName(const CFX_WideStringC& wsName); |
| 197 CXFA_Measurement XFA_GetAttributeDefaultValue_Measure(XFA_Element eElement, |
| 198 XFA_ATTRIBUTE eAttribute, |
| 199 uint32_t dwPacket); |
| 200 FX_BOOL XFA_GetAttributeDefaultValue(void*& pValue, |
| 201 XFA_Element eElement, |
| 202 XFA_ATTRIBUTE eAttribute, |
| 203 XFA_ATTRIBUTETYPE eType, |
| 204 uint32_t dwPacket); |
| 205 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByName(const CFX_WideStringC& wsName); |
| 206 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByID(XFA_ATTRIBUTE eName); |
| 207 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName( |
| 208 const CFX_WideStringC& wsName); |
| 209 const XFA_PACKETINFO* XFA_GetPacketByIndex(XFA_PACKET ePacket); |
| 210 const XFA_PACKETINFO* XFA_GetPacketByID(uint32_t dwPacket); |
| 211 |
181 #endif // XFA_FXFA_PARSER_XFA_UTILS_H_ | 212 #endif // XFA_FXFA_PARSER_XFA_UTILS_H_ |
OLD | NEW |