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 _PWL_SIGNATURE_H_ | 7 #ifndef _PWL_SIGNATURE_H_ |
8 #define _PWL_SIGNATURE_H_ | 8 #define _PWL_SIGNATURE_H_ |
9 | 9 |
10 class CPWL_Signature; | 10 class CPWL_Signature; |
11 class CPWL_Label; | 11 class CPWL_Label; |
12 class CPWL_Signature_Image; | 12 class CPWL_Signature_Image; |
13 | 13 |
14 class CPWL_Signature_Image : public CPWL_Image | 14 class CPWL_Signature_Image : public CPWL_Image { |
15 { | 15 public: |
16 public: | 16 CPWL_Signature_Image(); |
17 » CPWL_Signature_Image(); | 17 virtual ~CPWL_Signature_Image(); |
18 » virtual ~CPWL_Signature_Image(); | |
19 | 18 |
20 » void» » » » » » » » SetImage
(CFX_DIBSource* pImage); | 19 void SetImage(CFX_DIBSource* pImage); |
21 » CFX_DIBSource*» » » » » » GetImage(); | 20 CFX_DIBSource* GetImage(); |
22 | 21 |
23 protected: | 22 protected: |
24 » virtual void» » » » » » DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); | 23 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, |
25 » virtual void» » » » » » GetThisAppearanc
eStream(CFX_ByteTextBuf & sAppStream); | 24 CPDF_Matrix* pUser2Device); |
| 25 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream); |
26 | 26 |
27 » virtual void» » » » » » GetScale(FX_FLOA
T & fHScale,FX_FLOAT & fVScale); | 27 virtual void GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale); |
28 | 28 |
29 private: | 29 private: |
30 » CFX_DIBSource*» » » » » » m_pImage; | 30 CFX_DIBSource* m_pImage; |
31 }; | 31 }; |
32 | 32 |
33 class PWL_CLASS CPWL_Signature : public CPWL_Wnd | 33 class PWL_CLASS CPWL_Signature : public CPWL_Wnd { |
34 { | 34 public: |
35 public: | 35 CPWL_Signature(); |
36 » CPWL_Signature(); | 36 virtual ~CPWL_Signature(); |
37 » virtual ~CPWL_Signature(); | |
38 | 37 |
39 » void» » » » » » » » SetText(
FX_LPCWSTR sText); | 38 void SetText(FX_LPCWSTR sText); |
40 » void» » » » » » » » SetDescr
iption(FX_LPCWSTR string); | 39 void SetDescription(FX_LPCWSTR string); |
41 » void» » » » » » » » SetImage
(CFX_DIBSource* pImage); | 40 void SetImage(CFX_DIBSource* pImage); |
42 » void» » » » » » » » SetImage
Stream(CPDF_Stream * pStream, FX_LPCSTR sImageAlias); | 41 void SetImageStream(CPDF_Stream* pStream, FX_LPCSTR sImageAlias); |
43 | 42 |
44 » void» » » » » » » » SetTextF
lag(FX_BOOL bTextExist); | 43 void SetTextFlag(FX_BOOL bTextExist); |
45 » void» » » » » » » » SetImage
Flag(FX_BOOL bImageExist); | 44 void SetImageFlag(FX_BOOL bImageExist); |
46 » void» » » » » » » » SetFoxit
Flag(FX_BOOL bFlagExist); | 45 void SetFoxitFlag(FX_BOOL bFlagExist); |
47 | 46 |
48 protected: | 47 protected: |
49 » virtual void» » » » » » RePosChildWnd(); | 48 virtual void RePosChildWnd(); |
50 » virtual void» » » » » » CreateChildWnd(c
onst PWL_CREATEPARAM & cp); | 49 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); |
51 | 50 |
52 » virtual void» » » » » » DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); | 51 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, |
53 » virtual void» » » » » » GetThisAppearanc
eStream(CFX_ByteTextBuf & sAppStream); | 52 CPDF_Matrix* pUser2Device); |
| 53 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream); |
54 | 54 |
55 private: | 55 private: |
56 » CPWL_Label*» » » » » » » m_pText; | 56 CPWL_Label* m_pText; |
57 » CPWL_Label*» » » » » » » m_pDescr
iption; | 57 CPWL_Label* m_pDescription; |
58 » CPWL_Signature_Image*» » » » m_pImage; | 58 CPWL_Signature_Image* m_pImage; |
59 | 59 |
60 » FX_BOOL»» » » » » » » m_bTextE
xist; | 60 FX_BOOL m_bTextExist; |
61 » FX_BOOL»» » » » » » » m_bImage
Exist; | 61 FX_BOOL m_bImageExist; |
62 » FX_BOOL»» » » » » » » m_bFlagE
xist; | 62 FX_BOOL m_bFlagExist; |
63 }; | 63 }; |
64 | 64 |
65 #endif // _PWL_SIGNATURE_H_ | 65 #endif // _PWL_SIGNATURE_H_ |
66 | |
67 | |
OLD | NEW |