Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: xfa/fxfa/parser/xfa_utils.h

Issue 2559763002: Refcount IFGAS_ streams all the time, too (Closed)
Patch Set: more Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/parser/cxfa_xml_parser.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool XFA_RecognizeRichText(CFDE_XMLElement* pRichTextXMLNode); 169 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 bool XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode); 172 bool XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode);
173 173
174 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode); 174 void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode);
175 void XFA_DataExporter_RegenerateFormFile(CXFA_Node* pNode, 175 void XFA_DataExporter_RegenerateFormFile(
176 IFGAS_Stream* pStream, 176 CXFA_Node* pNode,
177 const FX_CHAR* pChecksum = nullptr, 177 const CFX_RetainPtr<IFGAS_Stream>& pStream,
178 bool bSaveXML = false); 178 const FX_CHAR* pChecksum = nullptr,
179 bool bSaveXML = false);
179 180
180 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute( 181 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute(
181 XFA_Element eElement, 182 XFA_Element eElement,
182 XFA_ATTRIBUTE eAttribute, 183 XFA_ATTRIBUTE eAttribute,
183 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); 184 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE);
184 185
185 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( 186 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName(
186 XFA_Element eElement, 187 XFA_Element eElement,
187 const CFX_WideStringC& wsAttributeName); 188 const CFX_WideStringC& wsAttributeName);
188 189
(...skipping 14 matching lines...) Expand all
203 XFA_ATTRIBUTETYPE eType, 204 XFA_ATTRIBUTETYPE eType,
204 uint32_t dwPacket); 205 uint32_t dwPacket);
205 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByName(const CFX_WideStringC& wsName); 206 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByName(const CFX_WideStringC& wsName);
206 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByID(XFA_ATTRIBUTE eName); 207 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByID(XFA_ATTRIBUTE eName);
207 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName( 208 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName(
208 const CFX_WideStringC& wsName); 209 const CFX_WideStringC& wsName);
209 const XFA_PACKETINFO* XFA_GetPacketByIndex(XFA_PACKET ePacket); 210 const XFA_PACKETINFO* XFA_GetPacketByIndex(XFA_PACKET ePacket);
210 const XFA_PACKETINFO* XFA_GetPacketByID(uint32_t dwPacket); 211 const XFA_PACKETINFO* XFA_GetPacketByID(uint32_t dwPacket);
211 212
212 #endif // XFA_FXFA_PARSER_XFA_UTILS_H_ 213 #endif // XFA_FXFA_PARSER_XFA_UTILS_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_xml_parser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698