| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 CFX_ByteString bsEncode = CFX_WideString(wsEncode).UTF16LE_Encode(); | 362 CFX_ByteString bsEncode = CFX_WideString(wsEncode).UTF16LE_Encode(); |
| 363 FPDF_WIDESTRING encode = | 363 FPDF_WIDESTRING encode = |
| 364 (FPDF_WIDESTRING)bsEncode.GetBuffer(bsEncode.GetLength()); | 364 (FPDF_WIDESTRING)bsEncode.GetBuffer(bsEncode.GetLength()); |
| 365 | 365 |
| 366 return m_pInfo->FFI_PutRequestURL(m_pInfo, URL, data, encode); | 366 return m_pInfo->FFI_PutRequestURL(m_pInfo, URL, data, encode); |
| 367 } | 367 } |
| 368 return FALSE; | 368 return FALSE; |
| 369 } | 369 } |
| 370 | 370 |
| 371 FPDF_BOOL FFI_ShowFileDialog(const FX_WCHAR* wsTitle, | |
| 372 const FX_WCHAR* wsFilter, | |
| 373 std::vector<CFX_WideString>& wsPathArr, | |
| 374 FX_BOOL bOpen) { | |
| 375 return FALSE; | |
| 376 } | |
| 377 | |
| 378 CFX_WideString FFI_GetLanguage() { | 371 CFX_WideString FFI_GetLanguage() { |
| 379 if (m_pInfo && m_pInfo->FFI_GetLanguage) { | 372 if (m_pInfo && m_pInfo->FFI_GetLanguage) { |
| 380 int nRequiredLen = m_pInfo->FFI_GetLanguage(m_pInfo, NULL, 0); | 373 int nRequiredLen = m_pInfo->FFI_GetLanguage(m_pInfo, NULL, 0); |
| 381 if (nRequiredLen <= 0) | 374 if (nRequiredLen <= 0) |
| 382 return L""; | 375 return L""; |
| 383 | 376 |
| 384 char* pbuff = new char[nRequiredLen]; | 377 char* pbuff = new char[nRequiredLen]; |
| 385 memset(pbuff, 0, nRequiredLen); | 378 memset(pbuff, 0, nRequiredLen); |
| 386 int nActualLen = m_pInfo->FFI_GetLanguage(m_pInfo, pbuff, nRequiredLen); | 379 int nActualLen = m_pInfo->FFI_GetLanguage(m_pInfo, pbuff, nRequiredLen); |
| 387 if (nActualLen <= 0 || nActualLen > nRequiredLen) { | 380 if (nActualLen <= 0 || nActualLen > nRequiredLen) { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 FX_BOOL m_bTakeOverPage; | 640 FX_BOOL m_bTakeOverPage; |
| 648 #endif // PDF_ENABLE_XFA | 641 #endif // PDF_ENABLE_XFA |
| 649 FX_BOOL m_bEnterWidget; | 642 FX_BOOL m_bEnterWidget; |
| 650 FX_BOOL m_bExitWidget; | 643 FX_BOOL m_bExitWidget; |
| 651 FX_BOOL m_bOnWidget; | 644 FX_BOOL m_bOnWidget; |
| 652 FX_BOOL m_bValid; | 645 FX_BOOL m_bValid; |
| 653 FX_BOOL m_bLocked; | 646 FX_BOOL m_bLocked; |
| 654 }; | 647 }; |
| 655 | 648 |
| 656 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 649 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |