| 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_PDFWINDOW_PWL_ICON_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_ |
| 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_ |
| 9 | 9 |
| 10 #include "../../../core/include/fxcrt/fx_string.h" | 10 #include "../../../core/include/fxcrt/fx_string.h" |
| 11 #include "PWL_Wnd.h" | 11 #include "PWL_Wnd.h" |
| 12 | 12 |
| 13 class CPWL_Image : public CPWL_Wnd | 13 class CPWL_Image : public CPWL_Wnd { |
| 14 { | 14 public: |
| 15 public: | 15 CPWL_Image(); |
| 16 » CPWL_Image(); | 16 virtual ~CPWL_Image(); |
| 17 » virtual ~CPWL_Image(); | |
| 18 | 17 |
| 19 » virtual CFX_ByteString» » » GetImageAppStream(); | 18 virtual CFX_ByteString GetImageAppStream(); |
| 20 | 19 |
| 21 » virtual void» » » » » GetScale(FX_FLOAT & fHSc
ale,FX_FLOAT & fVScale); | 20 virtual void GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale); |
| 22 » virtual void» » » » » GetImageOffset(FX_FLOAT
& x,FX_FLOAT & y); | 21 virtual void GetImageOffset(FX_FLOAT& x, FX_FLOAT& y); |
| 23 » virtual CPDF_Stream *» » » GetPDFStream(); | 22 virtual CPDF_Stream* GetPDFStream(); |
| 24 | 23 |
| 25 public: | 24 public: |
| 26 » void» » » » » » » SetPDFStream(CPD
F_Stream* pStream); | 25 void SetPDFStream(CPDF_Stream* pStream); |
| 27 » void» » » » » » » GetImageSize(FX_
FLOAT & fWidth,FX_FLOAT & fHeight); | 26 void GetImageSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); |
| 28 » CPDF_Matrix» » » » » » GetImageMatrix()
; | 27 CPDF_Matrix GetImageMatrix(); |
| 29 » CFX_ByteString» » » » » GetImageAlias(); | 28 CFX_ByteString GetImageAlias(); |
| 30 » void» » » » » » » SetImageAlias(co
nst FX_CHAR* sImageAlias); | 29 void SetImageAlias(const FX_CHAR* sImageAlias); |
| 31 | 30 |
| 32 protected: | 31 protected: |
| 33 » CPDF_Stream*» » » » » m_pPDFStream; | 32 CPDF_Stream* m_pPDFStream; |
| 34 » CFX_ByteString» » » » » m_sImageAlias; | 33 CFX_ByteString m_sImageAlias; |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 class CPWL_Icon : public CPWL_Image | 36 class CPWL_Icon : public CPWL_Image { |
| 38 { | 37 public: |
| 39 public: | 38 CPWL_Icon(); |
| 40 » CPWL_Icon(); | 39 virtual ~CPWL_Icon(); |
| 41 » virtual ~CPWL_Icon(); | |
| 42 | 40 |
| 43 » virtual CPDF_IconFit *» » » GetIconFit(){return m_pIconFit;}
; | 41 virtual CPDF_IconFit* GetIconFit() { return m_pIconFit; }; |
| 44 | 42 |
| 45 » virtual void» » » » » GetScale(FX_FLOAT & fHSc
ale,FX_FLOAT & fVScale); | 43 virtual void GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale); |
| 46 » virtual void» » » » » GetImageOffset(FX_FLOAT
& x,FX_FLOAT & y); | 44 virtual void GetImageOffset(FX_FLOAT& x, FX_FLOAT& y); |
| 47 | 45 |
| 48 » int32_t»» » » » » GetScaleMethod(); | 46 int32_t GetScaleMethod(); |
| 49 » FX_BOOL»» » » » » » IsProportionalSc
ale(); | 47 FX_BOOL IsProportionalScale(); |
| 50 » void» » » » » » » GetIconPosition(
FX_FLOAT & fLeft, FX_FLOAT & fBottom); | 48 void GetIconPosition(FX_FLOAT& fLeft, FX_FLOAT& fBottom); |
| 51 » FX_BOOL»» » » » » » GetFittingBounds
(); | 49 FX_BOOL GetFittingBounds(); |
| 52 | 50 |
| 53 » void» » » » » » » SetIconFit(CPDF_
IconFit * pIconFit){m_pIconFit = pIconFit;}; | 51 void SetIconFit(CPDF_IconFit* pIconFit) { m_pIconFit = pIconFit; }; |
| 54 | 52 |
| 55 private: | 53 private: |
| 56 » CPDF_IconFit *» » » » » m_pIconFit; | 54 CPDF_IconFit* m_pIconFit; |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 | |
| 60 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_ | 57 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_ |
| OLD | NEW |