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 "fpdfsdk/include/pdfwindow/PWL_Signature.h" |
| 8 |
| 9 #include <string> |
| 10 |
7 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h" | 11 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h" |
8 #include "fpdfsdk/include/pdfwindow/PWL_Label.h" | 12 #include "fpdfsdk/include/pdfwindow/PWL_Label.h" |
9 #include "fpdfsdk/include/pdfwindow/PWL_Signature.h" | |
10 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" | 13 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" |
11 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" | 14 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" |
12 | 15 |
13 CPWL_Signature_Image::CPWL_Signature_Image() : m_pImage(NULL) {} | 16 CPWL_Signature_Image::CPWL_Signature_Image() : m_pImage(NULL) {} |
14 | 17 |
15 CPWL_Signature_Image::~CPWL_Signature_Image() {} | 18 CPWL_Signature_Image::~CPWL_Signature_Image() {} |
16 | 19 |
17 void CPWL_Signature_Image::SetImage(CFX_DIBSource* pImage) { | 20 void CPWL_Signature_Image::SetImage(CFX_DIBSource* pImage) { |
18 m_pImage = pImage; | 21 m_pImage = pImage; |
19 } | 22 } |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT, | 170 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT, |
168 CPWL_Utils::GetCenterSquare(GetClientRect()), | 171 CPWL_Utils::GetCenterSquare(GetClientRect()), |
169 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f), | 172 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f), |
170 CPWL_Color(COLORTYPE_TRANSPARENT), 255); | 173 CPWL_Color(COLORTYPE_TRANSPARENT), 255); |
171 } | 174 } |
172 } | 175 } |
173 | 176 |
174 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) { | 177 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) { |
175 CPWL_Wnd::GetThisAppearanceStream(sAppStream); | 178 CPWL_Wnd::GetThisAppearanceStream(sAppStream); |
176 } | 179 } |
OLD | NEW |