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 // Todo: call a call-back function when it's implemented |
| 455 // in applicaiton's side. |
| 456 } |
453 #endif // PDF_ENABLE_XFA | 457 #endif // PDF_ENABLE_XFA |
454 | 458 |
455 FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; } | 459 FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; } |
456 void SetSDKDocument(CPDFSDK_Document* pFXDoc) { m_pSDKDoc = pFXDoc; } | 460 void SetSDKDocument(CPDFSDK_Document* pFXDoc) { m_pSDKDoc = pFXDoc; } |
457 CPDFSDK_Document* GetSDKDocument() const { return m_pSDKDoc; } | 461 CPDFSDK_Document* GetSDKDocument() const { return m_pSDKDoc; } |
458 UnderlyingDocumentType* GetUnderlyingDocument() const { | 462 UnderlyingDocumentType* GetUnderlyingDocument() const { |
459 return m_pUnderlyingDoc; | 463 return m_pUnderlyingDoc; |
460 } | 464 } |
461 CFX_ByteString GetAppName() const { return ""; } | 465 CFX_ByteString GetAppName() const { return ""; } |
462 IFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } | 466 IFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 } | 738 } |
735 | 739 |
736 if (nStartPos < m) | 740 if (nStartPos < m) |
737 QuickSort(nStartPos, m, bAscend, pCompare); | 741 QuickSort(nStartPos, m, bAscend, pCompare); |
738 if (nStopPos > m) | 742 if (nStopPos > m) |
739 QuickSort(m, nStopPos, bAscend, pCompare); | 743 QuickSort(m, nStopPos, bAscend, pCompare); |
740 } | 744 } |
741 }; | 745 }; |
742 | 746 |
743 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 747 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
OLD | NEW |