Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_Signature.h

Issue 1287193005: Use override in more classes in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nits, rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SIGNATURE_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SIGNATURE_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_SIGNATURE_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_SIGNATURE_H_
9 9
10 #include "PWL_Icon.h" 10 #include "PWL_Icon.h"
11 #include "PWL_Wnd.h" 11 #include "PWL_Wnd.h"
12 12
13 class CFX_DIBSource; 13 class CFX_DIBSource;
14 class CPWL_Label; 14 class CPWL_Label;
15 15
16 class CPWL_Signature_Image : public CPWL_Image { 16 class CPWL_Signature_Image : public CPWL_Image {
17 public: 17 public:
18 CPWL_Signature_Image(); 18 CPWL_Signature_Image();
19 virtual ~CPWL_Signature_Image(); 19 ~CPWL_Signature_Image() override;
20 20
21 void SetImage(CFX_DIBSource* pImage); 21 void SetImage(CFX_DIBSource* pImage);
22 CFX_DIBSource* GetImage(); 22 CFX_DIBSource* GetImage();
23 23
24 protected: 24 protected:
25 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, 25 // CPWL_Image
26 CPDF_Matrix* pUser2Device); 26 void DrawThisAppearance(CFX_RenderDevice* pDevice,
27 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream); 27 CPDF_Matrix* pUser2Device) override;
28 28 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override;
29 virtual void GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale); 29 void GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale) override;
30 30
31 private: 31 private:
32 CFX_DIBSource* m_pImage; 32 CFX_DIBSource* m_pImage;
33 }; 33 };
34 34
35 class CPWL_Signature : public CPWL_Wnd { 35 class CPWL_Signature : public CPWL_Wnd {
36 public: 36 public:
37 CPWL_Signature(); 37 CPWL_Signature();
38 virtual ~CPWL_Signature(); 38 ~CPWL_Signature() override;
39 39
40 void SetText(const FX_WCHAR* sText); 40 void SetText(const FX_WCHAR* sText);
41 void SetDescription(const FX_WCHAR* string); 41 void SetDescription(const FX_WCHAR* string);
42 void SetImage(CFX_DIBSource* pImage); 42 void SetImage(CFX_DIBSource* pImage);
43 void SetImageStream(CPDF_Stream* pStream, const FX_CHAR* sImageAlias); 43 void SetImageStream(CPDF_Stream* pStream, const FX_CHAR* sImageAlias);
44 44
45 void SetTextFlag(FX_BOOL bTextExist); 45 void SetTextFlag(FX_BOOL bTextExist);
46 void SetImageFlag(FX_BOOL bImageExist); 46 void SetImageFlag(FX_BOOL bImageExist);
47 void SetFoxitFlag(FX_BOOL bFlagExist); 47 void SetFoxitFlag(FX_BOOL bFlagExist);
48 48
49 protected: 49 protected:
50 virtual void RePosChildWnd(); 50 // CPWL_Wnd
51 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); 51 void RePosChildWnd() override;
52 52 void CreateChildWnd(const PWL_CREATEPARAM& cp) override;
53 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, 53 void DrawThisAppearance(CFX_RenderDevice* pDevice,
54 CPDF_Matrix* pUser2Device); 54 CPDF_Matrix* pUser2Device) override;
55 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream); 55 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override;
56 56
57 private: 57 private:
58 CPWL_Label* m_pText; 58 CPWL_Label* m_pText;
59 CPWL_Label* m_pDescription; 59 CPWL_Label* m_pDescription;
60 CPWL_Signature_Image* m_pImage; 60 CPWL_Signature_Image* m_pImage;
61 61
62 FX_BOOL m_bTextExist; 62 FX_BOOL m_bTextExist;
63 FX_BOOL m_bImageExist; 63 FX_BOOL m_bImageExist;
64 FX_BOOL m_bFlagExist; 64 FX_BOOL m_bFlagExist;
65 }; 65 };
66 66
67 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_SIGNATURE_H_ 67 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_SIGNATURE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_ScrollBar.h ('k') | fpdfsdk/include/pdfwindow/PWL_SpecialButton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698