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 FPDFSDK_INCLUDE_FSDK_MGR_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ |
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 } | 443 } |
444 CFX_ByteString bsRet = CFX_ByteString(pbuff, nActualLen); | 444 CFX_ByteString bsRet = CFX_ByteString(pbuff, nActualLen); |
445 CFX_WideString wsRet = CFX_WideString::FromUTF16LE( | 445 CFX_WideString wsRet = CFX_WideString::FromUTF16LE( |
446 (unsigned short*)bsRet.GetBuffer(bsRet.GetLength()), | 446 (unsigned short*)bsRet.GetBuffer(bsRet.GetLength()), |
447 bsRet.GetLength() / sizeof(unsigned short)); | 447 bsRet.GetLength() / sizeof(unsigned short)); |
448 delete[] pbuff; | 448 delete[] pbuff; |
449 return wsRet; | 449 return wsRet; |
450 } | 450 } |
451 return L""; | 451 return L""; |
452 } | 452 } |
| 453 void FFI_PageEvent(int iPageIndex, int iEventType) const { |
| 454 if (!m_pInfo || !m_pInfo->FFI_PageEvent) |
| 455 return; |
| 456 m_pInfo->FFI_PageEvent(m_pInfo, iPageIndex, iEventType); |
| 457 } |
453 #endif // PDF_ENABLE_XFA | 458 #endif // PDF_ENABLE_XFA |
454 | 459 |
455 FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; } | 460 FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; } |
456 void SetSDKDocument(CPDFSDK_Document* pFXDoc) { m_pSDKDoc = pFXDoc; } | 461 void SetSDKDocument(CPDFSDK_Document* pFXDoc) { m_pSDKDoc = pFXDoc; } |
457 CPDFSDK_Document* GetSDKDocument() const { return m_pSDKDoc; } | 462 CPDFSDK_Document* GetSDKDocument() const { return m_pSDKDoc; } |
458 UnderlyingDocumentType* GetUnderlyingDocument() const { | 463 UnderlyingDocumentType* GetUnderlyingDocument() const { |
459 return m_pUnderlyingDoc; | 464 return m_pUnderlyingDoc; |
460 } | 465 } |
461 CFX_ByteString GetAppName() const { return ""; } | 466 CFX_ByteString GetAppName() const { return ""; } |
462 IFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } | 467 IFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 } | 737 } |
733 | 738 |
734 if (nStartPos < m) | 739 if (nStartPos < m) |
735 QuickSort(nStartPos, m, bAscend, pCompare); | 740 QuickSort(nStartPos, m, bAscend, pCompare); |
736 if (nStopPos > m) | 741 if (nStopPos > m) |
737 QuickSort(m, nStopPos, bAscend, pCompare); | 742 QuickSort(m, nStopPos, bAscend, pCompare); |
738 } | 743 } |
739 }; | 744 }; |
740 | 745 |
741 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 746 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
OLD | NEW |