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_CXFA_FFSIGNATURE_H_ 8 #define XFA_FXFA_CXFA_FFSIGNATURE_H_ 9 10 #include "xfa/fxfa/cxfa_fffield.h" 11 12 class CXFA_FFSignature final : public CXFA_FFField { 13 public: 14 explicit CXFA_FFSignature(CXFA_Node* pNode); 15 ~CXFA_FFSignature() override; 16 17 // CXFA_FFField 18 void RenderWidget(CXFA_Graphics* pGS, 19 const CFX_Matrix& matrix, 20 HighlightOption highlight) override; 21 bool LoadWidget() override; 22 bool AcceptsFocusOnButtonDown(uint32_t dwFlags, 23 const CFX_PointF& point, 24 FWL_MouseCommand command) override; 25 bool OnMouseEnter() override; 26 bool OnMouseExit() override; 27 bool OnLButtonDown(uint32_t dwFlags, const CFX_PointF& point) override; 28 bool OnLButtonUp(uint32_t dwFlags, const CFX_PointF& point) override; 29 bool OnLButtonDblClk(uint32_t dwFlags, const CFX_PointF& point) override; 30 bool OnMouseMove(uint32_t dwFlags, const CFX_PointF& point) override; 31 bool OnMouseWheel(uint32_t dwFlags, 32 int16_t zDelta, 33 const CFX_PointF& pointy) override; 34 bool OnRButtonDown(uint32_t dwFlags, const CFX_PointF& point) override; 35 bool OnRButtonUp(uint32_t dwFlags, const CFX_PointF& point) override; 36 bool OnRButtonDblClk(uint32_t dwFlags, const CFX_PointF& point) override; 37 bool OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags) override; 38 bool OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags) override; 39 bool OnChar(uint32_t dwChar, uint32_t dwFlags) override; 40 bool OnSetCursor(const CFX_PointF& point) override; 41 FWL_WidgetHit HitTest(const CFX_PointF& point) override; 42 FormFieldType GetFormFieldType() override; 43 }; 44 45 #endif // XFA_FXFA_CXFA_FFSIGNATURE_H_ 46