Convert all line endings to LF.
[pdfium.git] / fpdfsdk / include / pdfwindow / PWL_Icon.h
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4  
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef _PWL_ICON_H_
8 #define _PWL_ICON_H_
9
10 class PWL_CLASS CPWL_Image : public CPWL_Wnd
11 {
12 public:
13         CPWL_Image();
14         virtual ~CPWL_Image();
15
16         virtual CFX_ByteString                  GetImageAppStream();
17
18         virtual void                                    GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale);
19         virtual void                                    GetImageOffset(FX_FLOAT & x,FX_FLOAT & y);
20         virtual CPDF_Stream *                   GetPDFStream();
21
22 public:
23         void                                                    SetPDFStream(CPDF_Stream* pStream);     
24         void                                                    GetImageSize(FX_FLOAT & fWidth,FX_FLOAT & fHeight);
25         CPDF_Matrix                                             GetImageMatrix();
26         CFX_ByteString                                  GetImageAlias();
27         void                                                    SetImageAlias(FX_LPCSTR sImageAlias);
28
29 protected:
30         CPDF_Stream*                                    m_pPDFStream;
31         CFX_ByteString                                  m_sImageAlias;
32 };
33
34 class PWL_CLASS CPWL_Icon : public CPWL_Image 
35 {
36 public:
37         CPWL_Icon();
38         virtual ~CPWL_Icon();
39
40         virtual CPDF_IconFit *                  GetIconFit(){return m_pIconFit;};
41
42         virtual void                                    GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale);
43         virtual void                                    GetImageOffset(FX_FLOAT & x,FX_FLOAT & y);
44
45         FX_INT32                                                GetScaleMethod();
46         FX_BOOL                                                 IsProportionalScale();
47         void                                                    GetIconPosition(FX_FLOAT & fLeft, FX_FLOAT & fBottom);
48         FX_BOOL                                                 GetFittingBounds();
49
50         void                                                    SetIconFit(CPDF_IconFit * pIconFit){m_pIconFit = pIconFit;};
51
52 private:
53         CPDF_IconFit *                                  m_pIconFit;
54 };
55
56
57 #endif // !defined(AFX_PWL_BUTTON_H__5A6080AA_33C5_4FC9_91FC_D9644C41120A__INCLUDED_)
58
59