Initial commit.
[pdfium.git] / fpdfsdk / src / formfiller / FFL_PushButton.cpp
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4  \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #include "../../include/formfiller/FormFiller.h"\r
8 #include "../../include/formfiller/FFL_FormFiller.h"\r
9 #include "../../include/formfiller/FFL_PushButton.h"\r
10 \r
11 /* ------------------------------- CFFL_PushButton ------------------------------- */\r
12 \r
13 CFFL_PushButton::CFFL_PushButton(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot):\r
14         CFFL_Button( pApp, pAnnot)\r
15 {\r
16 }\r
17 \r
18 CFFL_PushButton::~CFFL_PushButton()\r
19 {\r
20 }\r
21 \r
22 CPWL_Wnd* CFFL_PushButton::NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageView* pPageView)\r
23 {\r
24         CPWL_PushButton* pWnd = new CPWL_PushButton();\r
25         pWnd->Create(cp);\r
26         \r
27         return pWnd;\r
28 }\r
29 \r
30 \r
31 FX_BOOL CFFL_PushButton::OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags)\r
32 {\r
33         return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags);\r
34 }\r
35 \r
36 void CFFL_PushButton::OnDraw(CPDFSDK_PageView *pPageView,  CPDFSDK_Annot* pAnnot, \r
37                                                          CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,\r
38                                                          FX_DWORD dwFlags)\r
39 {\r
40         CFFL_Button::OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);\r
41 }\r
42 \r
43 \r