| 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 #include "xfa/fxfa/parser/cxfa_dataexporter.h" | 7 #include "xfa/fxfa/parser/cxfa_dataexporter.h" |
| 8 | 8 |
| 9 #include "core/fxcrt/include/fx_basic.h" | 9 #include "core/fxcrt/fx_basic.h" |
| 10 #include "xfa/fde/xml/fde_xml_imp.h" | 10 #include "xfa/fde/xml/fde_xml_imp.h" |
| 11 #include "xfa/fgas/crt/fgas_codepage.h" | 11 #include "xfa/fgas/crt/fgas_codepage.h" |
| 12 #include "xfa/fxfa/parser/cxfa_document.h" | 12 #include "xfa/fxfa/parser/cxfa_document.h" |
| 13 #include "xfa/fxfa/parser/cxfa_widgetdata.h" | 13 #include "xfa/fxfa/parser/cxfa_widgetdata.h" |
| 14 #include "xfa/fxfa/parser/xfa_object.h" | 14 #include "xfa/fxfa/parser/xfa_object.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 CFX_WideString ExportEncodeAttribute(const CFX_WideString& str) { | 18 CFX_WideString ExportEncodeAttribute(const CFX_WideString& str) { |
| 19 CFX_WideTextBuf textBuf; | 19 CFX_WideTextBuf textBuf; |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 if (!pElement || pElement->GetType() != FDE_XMLNODE_Element) | 532 if (!pElement || pElement->GetType() != FDE_XMLNODE_Element) |
| 533 return FALSE; | 533 return FALSE; |
| 534 | 534 |
| 535 XFA_DataExporter_DealWithDataGroupNode(pExportNode); | 535 XFA_DataExporter_DealWithDataGroupNode(pExportNode); |
| 536 pElement->SetString(L"xmlns:xfa", L"http://www.xfa.org/schema/xfa-data/1.0/"); | 536 pElement->SetString(L"xmlns:xfa", L"http://www.xfa.org/schema/xfa-data/1.0/"); |
| 537 pXMLDoc->SaveXMLNode(pStream, pElement); | 537 pXMLDoc->SaveXMLNode(pStream, pElement); |
| 538 pElement->RemoveAttribute(L"xmlns:xfa"); | 538 pElement->RemoveAttribute(L"xmlns:xfa"); |
| 539 | 539 |
| 540 return TRUE; | 540 return TRUE; |
| 541 } | 541 } |
| OLD | NEW |