| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 const CFX_WideStringC& wsURL, | 203 const CFX_WideStringC& wsURL, |
| 204 FX_BOOL bAppend) { | 204 FX_BOOL bAppend) { |
| 205 if (m_pInfo && m_pInfo->FFI_GotoURL) { | 205 if (m_pInfo && m_pInfo->FFI_GotoURL) { |
| 206 CFX_ByteString bsTo = CFX_WideString(wsURL).UTF16LE_Encode(); | 206 CFX_ByteString bsTo = CFX_WideString(wsURL).UTF16LE_Encode(); |
| 207 FPDF_WIDESTRING pTo = (FPDF_WIDESTRING)bsTo.GetBuffer(wsURL.GetLength()); | 207 FPDF_WIDESTRING pTo = (FPDF_WIDESTRING)bsTo.GetBuffer(wsURL.GetLength()); |
| 208 m_pInfo->FFI_GotoURL(m_pInfo, document, pTo); | 208 m_pInfo->FFI_GotoURL(m_pInfo, document, pTo); |
| 209 bsTo.ReleaseBuffer(); | 209 bsTo.ReleaseBuffer(); |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 | 212 |
| 213 void FFI_GetURL(FPDF_DOCUMENT document, CFX_WideString& wsURL) { | |
| 214 wsURL = CFX_WideString(); | |
| 215 } | |
| 216 | |
| 217 void FFI_GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect) { | 213 void FFI_GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect) { |
| 218 if (m_pInfo && m_pInfo->FFI_GetPageViewRect) { | 214 if (m_pInfo && m_pInfo->FFI_GetPageViewRect) { |
| 219 double left; | 215 double left; |
| 220 double top; | 216 double top; |
| 221 double right; | 217 double right; |
| 222 double bottom; | 218 double bottom; |
| 223 m_pInfo->FFI_GetPageViewRect(m_pInfo, page, &left, &top, &right, &bottom); | 219 m_pInfo->FFI_GetPageViewRect(m_pInfo, page, &left, &top, &right, &bottom); |
| 224 | 220 |
| 225 dstRect.left = static_cast<float>(left); | 221 dstRect.left = static_cast<float>(left); |
| 226 dstRect.top = static_cast<float>(top < bottom ? bottom : top); | 222 dstRect.top = static_cast<float>(top < bottom ? bottom : top); |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 bool m_bOwnsPage; | 618 bool m_bOwnsPage; |
| 623 #endif // PDF_ENABLE_XFA | 619 #endif // PDF_ENABLE_XFA |
| 624 FX_BOOL m_bEnterWidget; | 620 FX_BOOL m_bEnterWidget; |
| 625 FX_BOOL m_bExitWidget; | 621 FX_BOOL m_bExitWidget; |
| 626 FX_BOOL m_bOnWidget; | 622 FX_BOOL m_bOnWidget; |
| 627 FX_BOOL m_bValid; | 623 FX_BOOL m_bValid; |
| 628 FX_BOOL m_bLocked; | 624 FX_BOOL m_bLocked; |
| 629 }; | 625 }; |
| 630 | 626 |
| 631 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 627 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |