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 "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
8 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 8 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 if (hDoc != m_pXFADoc) | 731 if (hDoc != m_pXFADoc) |
732 return; | 732 return; |
733 | 733 |
734 if (m_iDocType != DOCTYPE_DYNAMIC_XFA) | 734 if (m_iDocType != DOCTYPE_DYNAMIC_XFA) |
735 return; | 735 return; |
736 | 736 |
737 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); | 737 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); |
738 if (pEnv == NULL) | 738 if (pEnv == NULL) |
739 return; | 739 return; |
740 | 740 |
741 CFX_WideStringC str(bsURL.GetPtr()); | 741 CFX_WideStringC str(bsURL.raw_str()); |
742 | 742 |
743 pEnv->FFI_GotoURL(this, str, bAppend); | 743 pEnv->FFI_GotoURL(this, str, bAppend); |
744 } | 744 } |
745 | 745 |
746 FX_BOOL CPDFXFA_Document::IsValidationsEnabled(CXFA_FFDoc* hDoc) { | 746 FX_BOOL CPDFXFA_Document::IsValidationsEnabled(CXFA_FFDoc* hDoc) { |
747 if (hDoc != m_pXFADoc || !m_pSDKDoc) | 747 if (hDoc != m_pXFADoc || !m_pSDKDoc) |
748 return FALSE; | 748 return FALSE; |
749 if (m_pSDKDoc->GetInterForm()) | 749 if (m_pSDKDoc->GetInterForm()) |
750 return m_pSDKDoc->GetInterForm()->IsXfaValidationsEnabled(); | 750 return m_pSDKDoc->GetInterForm()->IsXfaValidationsEnabled(); |
751 | 751 |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 } | 1272 } |
1273 | 1273 |
1274 return _GetHValueByName(szPropName, hValue, | 1274 return _GetHValueByName(szPropName, hValue, |
1275 m_pSDKDoc->GetEnv()->GetJSRuntime()); | 1275 m_pSDKDoc->GetEnv()->GetJSRuntime()); |
1276 } | 1276 } |
1277 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, | 1277 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, |
1278 FXJSE_HVALUE hValue, | 1278 FXJSE_HVALUE hValue, |
1279 IJS_Runtime* runTime) { | 1279 IJS_Runtime* runTime) { |
1280 return runTime->GetHValueByName(utf8Name, hValue); | 1280 return runTime->GetHValueByName(utf8Name, hValue); |
1281 } | 1281 } |
OLD | NEW |