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