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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |