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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 CFX_ByteString bsRet = CFX_ByteString(pbuff, nActualLen); | 397 CFX_ByteString bsRet = CFX_ByteString(pbuff, nActualLen); |
398 CFX_WideString wsRet = CFX_WideString::FromUTF16LE( | 398 CFX_WideString wsRet = CFX_WideString::FromUTF16LE( |
399 (unsigned short*)bsRet.GetBuffer(bsRet.GetLength()), | 399 (unsigned short*)bsRet.GetBuffer(bsRet.GetLength()), |
400 bsRet.GetLength() / sizeof(unsigned short)); | 400 bsRet.GetLength() / sizeof(unsigned short)); |
401 delete[] pbuff; | 401 delete[] pbuff; |
402 return wsRet; | 402 return wsRet; |
403 } | 403 } |
404 return L""; | 404 return L""; |
405 } | 405 } |
406 | 406 |
407 void FFI_PageEvent(int iPageIndex, FX_DWORD dwEventType) const { | 407 void FFI_PageEvent(int iPageCount, FX_DWORD dwEventType) const { |
408 if (m_pInfo && m_pInfo->FFI_PageEvent) | 408 if (m_pInfo && m_pInfo->FFI_PageEvent) |
409 m_pInfo->FFI_PageEvent(m_pInfo, iPageIndex, dwEventType); | 409 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); |
410 } | 410 } |
411 #endif // PDF_ENABLE_XFA | 411 #endif // PDF_ENABLE_XFA |
412 | 412 |
413 int JS_appAlert(const FX_WCHAR* Msg, | 413 int JS_appAlert(const FX_WCHAR* Msg, |
414 const FX_WCHAR* Title, | 414 const FX_WCHAR* Title, |
415 FX_UINT Type, | 415 FX_UINT Type, |
416 FX_UINT Icon); | 416 FX_UINT Icon); |
417 int JS_appResponse(const FX_WCHAR* Question, | 417 int JS_appResponse(const FX_WCHAR* Question, |
418 const FX_WCHAR* Title, | 418 const FX_WCHAR* Title, |
419 const FX_WCHAR* Default, | 419 const FX_WCHAR* Default, |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 FX_BOOL m_bTakeOverPage; | 653 FX_BOOL m_bTakeOverPage; |
654 #endif // PDF_ENABLE_XFA | 654 #endif // PDF_ENABLE_XFA |
655 FX_BOOL m_bEnterWidget; | 655 FX_BOOL m_bEnterWidget; |
656 FX_BOOL m_bExitWidget; | 656 FX_BOOL m_bExitWidget; |
657 FX_BOOL m_bOnWidget; | 657 FX_BOOL m_bOnWidget; |
658 FX_BOOL m_bValid; | 658 FX_BOOL m_bValid; |
659 FX_BOOL m_bLocked; | 659 FX_BOOL m_bLocked; |
660 }; | 660 }; |
661 | 661 |
662 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 662 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
OLD | NEW |