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 #ifndef XFA_FXFA_APP_XFA_FFSIGNATURE_H_ 8 #define XFA_FXFA_APP_XFA_FFSIGNATURE_H_ 9 10 #include "xfa/fxfa/app/xfa_fffield.h" 11 12 class CXFA_FFSignature final : public CXFA_FFField { 13 public: 14 explicit CXFA_FFSignature(CXFA_WidgetAcc* pDataAcc); 15 ~CXFA_FFSignature() override; 16 17 // CXFA_FFField 18 void RenderWidget(CFX_Graphics* pGS, 19 CFX_Matrix* pMatrix, 20 uint32_t dwStatus) override; 21 bool LoadWidget() override; 22 bool OnMouseEnter() override; 23 bool OnMouseExit() override; 24 bool OnLButtonDown(uint32_t dwFlags, const CFX_PointF& point) override; 25 bool OnLButtonUp(uint32_t dwFlags, const CFX_PointF& point) override; 26 bool OnLButtonDblClk(uint32_t dwFlags, const CFX_PointF& point) override; 27 bool OnMouseMove(uint32_t dwFlags, const CFX_PointF& point) override; 28 bool OnMouseWheel(uint32_t dwFlags, 29 int16_t zDelta, 30 const CFX_PointF& pointy) override; 31 bool OnRButtonDown(uint32_t dwFlags, const CFX_PointF& point) override; 32 bool OnRButtonUp(uint32_t dwFlags, const CFX_PointF& point) override; 33 bool OnRButtonDblClk(uint32_t dwFlags, const CFX_PointF& point) override; 34 35 bool OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags) override; 36 bool OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags) override; 37 bool OnChar(uint32_t dwChar, uint32_t dwFlags) override; 38 FWL_WidgetHit OnHitTest(const CFX_PointF& point) override; 39 bool OnSetCursor(const CFX_PointF& point) override; 40 }; 41 42 #endif // XFA_FXFA_APP_XFA_FFSIGNATURE_H_ 43