| 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 #include "../../include/pdfwindow/PDFWindow.h" | 7 #include "../../include/pdfwindow/PDFWindow.h" |
| 8 #include "../../include/pdfwindow/PWL_Wnd.h" | 8 #include "../../include/pdfwindow/PWL_Wnd.h" |
| 9 #include "../../include/pdfwindow/PWL_Icon.h" | 9 #include "../../include/pdfwindow/PWL_Icon.h" |
| 10 #include "../../include/pdfwindow/PWL_Utils.h" | 10 #include "../../include/pdfwindow/PWL_Utils.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return pDict->GetString("Name"); | 102 return pDict->GetString("Name"); |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 else | 106 else |
| 107 return m_sImageAlias; | 107 return m_sImageAlias; |
| 108 | 108 |
| 109 return CFX_ByteString(); | 109 return CFX_ByteString(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 void CPWL_Image::SetImageAlias(FX_LPCSTR sImageAlias) | 112 void CPWL_Image::SetImageAlias(const FX_CHAR* sImageAlias) |
| 113 { | 113 { |
| 114 m_sImageAlias = sImageAlias; | 114 m_sImageAlias = sImageAlias; |
| 115 } | 115 } |
| 116 | 116 |
| 117 void CPWL_Image::GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale) | 117 void CPWL_Image::GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale) |
| 118 { | 118 { |
| 119 fHScale = 1.0f; | 119 fHScale = 1.0f; |
| 120 fVScale = 1.0f; | 120 fVScale = 1.0f; |
| 121 } | 121 } |
| 122 | 122 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 FX_FLOAT fPlateWidth,fPlateHeight; | 264 FX_FLOAT fPlateWidth,fPlateHeight; |
| 265 CPDF_Rect rcPlate = this->GetClientRect(); | 265 CPDF_Rect rcPlate = this->GetClientRect(); |
| 266 fPlateWidth = rcPlate.right - rcPlate.left; | 266 fPlateWidth = rcPlate.right - rcPlate.left; |
| 267 fPlateHeight = rcPlate.top - rcPlate.bottom; | 267 fPlateHeight = rcPlate.top - rcPlate.bottom; |
| 268 | 268 |
| 269 x = (fPlateWidth - fImageFactWidth) * fLeft; | 269 x = (fPlateWidth - fImageFactWidth) * fLeft; |
| 270 y = (fPlateHeight - fImageFactHeight) * fBottom; | 270 y = (fPlateHeight - fImageFactHeight) * fBottom; |
| 271 } | 271 } |
| 272 | 272 |
| OLD | NEW |