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_FORMFILLER_CFFL_PUSHBUTTON_H_ | 7 #ifndef FPDFSDK_FORMFILLER_CFFL_PUSHBUTTON_H_ |
8 #define FPDFSDK_FORMFILLER_CFFL_PUSHBUTTON_H_ | 8 #define FPDFSDK_FORMFILLER_CFFL_PUSHBUTTON_H_ |
9 | 9 |
10 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 10 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
11 | 11 |
12 class CFFL_PushButton : public CFFL_Button { | 12 class CFFL_PushButton : public CFFL_Button { |
13 public: | 13 public: |
14 CFFL_PushButton(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Annot* pAnnot); | 14 CFFL_PushButton(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Annot* pAnnot); |
15 ~CFFL_PushButton() override; | 15 ~CFFL_PushButton() override; |
16 | 16 |
17 // CFFL_Button | 17 // CFFL_Button |
18 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, | 18 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, |
19 CPDFSDK_PageView* pPageView) override; | 19 CPDFSDK_PageView* pPageView) override; |
20 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, | 20 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; |
21 uint32_t nChar, | |
22 uint32_t nFlags) override; | |
23 void OnDraw(CPDFSDK_PageView* pPageView, | 21 void OnDraw(CPDFSDK_PageView* pPageView, |
24 CPDFSDK_Annot* pAnnot, | 22 CPDFSDK_Annot* pAnnot, |
25 CFX_RenderDevice* pDevice, | 23 CFX_RenderDevice* pDevice, |
26 CFX_Matrix* pUser2Device) override; | 24 CFX_Matrix* pUser2Device) override; |
27 }; | 25 }; |
28 | 26 |
29 #endif // FPDFSDK_FORMFILLER_CFFL_PUSHBUTTON_H_ | 27 #endif // FPDFSDK_FORMFILLER_CFFL_PUSHBUTTON_H_ |
OLD | NEW |