| 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 "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" | 7 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" |
| 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" | 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" |
| 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" | 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" |
| 10 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" | 10 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 delete pAcc; | 691 delete pAcc; |
| 692 } | 692 } |
| 693 } | 693 } |
| 694 } | 694 } |
| 695 if (!fileWrite.Flush()) { | 695 if (!fileWrite.Flush()) { |
| 696 // TODO: Report error. | 696 // TODO: Report error. |
| 697 } | 697 } |
| 698 } | 698 } |
| 699 void CPDFXFA_Document::ImportData(IXFA_Doc* hDoc, | 699 void CPDFXFA_Document::ImportData(IXFA_Doc* hDoc, |
| 700 const CFX_WideStringC& wsFilePath) { | 700 const CFX_WideStringC& wsFilePath) { |
| 701 // TODO... | 701 // TODO ... |
| 702 } | 702 } |
| 703 | 703 |
| 704 void CPDFXFA_Document::GotoURL(IXFA_Doc* hDoc, | 704 void CPDFXFA_Document::GotoURL(IXFA_Doc* hDoc, |
| 705 const CFX_WideStringC& bsURL, | 705 const CFX_WideStringC& bsURL, |
| 706 FX_BOOL bAppend) { | 706 FX_BOOL bAppend) { |
| 707 if (hDoc != m_pXFADoc) | 707 if (hDoc != m_pXFADoc) |
| 708 return; | 708 return; |
| 709 | 709 |
| 710 if (m_iDocType != DOCTYPE_DYNAMIC_XFA) | 710 if (m_iDocType != DOCTYPE_DYNAMIC_XFA) |
| 711 return; | 711 return; |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 } | 1249 } |
| 1250 | 1250 |
| 1251 return _GetHValueByName(szPropName, hValue, | 1251 return _GetHValueByName(szPropName, hValue, |
| 1252 m_pSDKDoc->GetEnv()->GetJSRuntime()); | 1252 m_pSDKDoc->GetEnv()->GetJSRuntime()); |
| 1253 } | 1253 } |
| 1254 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, | 1254 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, |
| 1255 FXJSE_HVALUE hValue, | 1255 FXJSE_HVALUE hValue, |
| 1256 IJS_Runtime* runTime) { | 1256 IJS_Runtime* runTime) { |
| 1257 return runTime->GetHValueByName(utf8Name, hValue); | 1257 return runTime->GetHValueByName(utf8Name, hValue); |
| 1258 } | 1258 } |
| OLD | NEW |