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/formfiller/FFL_PushButton.h" |
| 8 |
7 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" | 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
8 #include "fpdfsdk/include/formfiller/FFL_PushButton.h" | 10 #include "fpdfsdk/include/pdfwindow/PWL_SpecialButton.h" |
9 #include "fpdfsdk/include/formfiller/FormFiller.h" | |
10 | |
11 /* ------------------------------- CFFL_PushButton | |
12 * ------------------------------- */ | |
13 | 11 |
14 CFFL_PushButton::CFFL_PushButton(CPDFDoc_Environment* pApp, | 12 CFFL_PushButton::CFFL_PushButton(CPDFDoc_Environment* pApp, |
15 CPDFSDK_Annot* pAnnot) | 13 CPDFSDK_Annot* pAnnot) |
16 : CFFL_Button(pApp, pAnnot) {} | 14 : CFFL_Button(pApp, pAnnot) {} |
17 | 15 |
18 CFFL_PushButton::~CFFL_PushButton() {} | 16 CFFL_PushButton::~CFFL_PushButton() {} |
19 | 17 |
20 CPWL_Wnd* CFFL_PushButton::NewPDFWindow(const PWL_CREATEPARAM& cp, | 18 CPWL_Wnd* CFFL_PushButton::NewPDFWindow(const PWL_CREATEPARAM& cp, |
21 CPDFSDK_PageView* pPageView) { | 19 CPDFSDK_PageView* pPageView) { |
22 CPWL_PushButton* pWnd = new CPWL_PushButton(); | 20 CPWL_PushButton* pWnd = new CPWL_PushButton(); |
23 pWnd->Create(cp); | 21 pWnd->Create(cp); |
24 | 22 |
25 return pWnd; | 23 return pWnd; |
26 } | 24 } |
27 | 25 |
28 FX_BOOL CFFL_PushButton::OnChar(CPDFSDK_Annot* pAnnot, | 26 FX_BOOL CFFL_PushButton::OnChar(CPDFSDK_Annot* pAnnot, |
29 FX_UINT nChar, | 27 FX_UINT nChar, |
30 FX_UINT nFlags) { | 28 FX_UINT nFlags) { |
31 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); | 29 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); |
32 } | 30 } |
33 | 31 |
34 void CFFL_PushButton::OnDraw(CPDFSDK_PageView* pPageView, | 32 void CFFL_PushButton::OnDraw(CPDFSDK_PageView* pPageView, |
35 CPDFSDK_Annot* pAnnot, | 33 CPDFSDK_Annot* pAnnot, |
36 CFX_RenderDevice* pDevice, | 34 CFX_RenderDevice* pDevice, |
37 CFX_Matrix* pUser2Device, | 35 CFX_Matrix* pUser2Device, |
38 FX_DWORD dwFlags) { | 36 FX_DWORD dwFlags) { |
39 CFFL_Button::OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 37 CFFL_Button::OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
40 } | 38 } |
OLD | NEW |