blob: b9051962e3007c7c814afa7bb65f0d96699ab0c0 [file] [log] [blame]
Dan Sinclair1770c022016-03-14 14:14:16 -04001// 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
Dan Sinclair24ef6332017-07-24 10:52:57 -04007#ifndef XFA_FXFA_CXFA_FFSIGNATURE_H_
8#define XFA_FXFA_CXFA_FFSIGNATURE_H_
Dan Sinclair1770c022016-03-14 14:14:16 -04009
Dan Sinclair24ef6332017-07-24 10:52:57 -040010#include "xfa/fxfa/cxfa_fffield.h"
Dan Sinclair1770c022016-03-14 14:14:16 -040011
12class CXFA_FFSignature final : public CXFA_FFField {
13 public:
dan sinclairaaf0bdc2017-02-04 10:16:21 -050014 explicit CXFA_FFSignature(CXFA_WidgetAcc* pDataAcc);
weili47bcd4c2016-06-16 08:00:06 -070015 ~CXFA_FFSignature() override;
Dan Sinclair1770c022016-03-14 14:14:16 -040016
weili47bcd4c2016-06-16 08:00:06 -070017 // CXFA_FFField
Dan Sinclair2b918c82017-07-13 14:47:10 -040018 void RenderWidget(CXFA_Graphics* pGS,
Lei Zhang7c9d4c22017-08-17 13:53:52 -070019 const CFX_Matrix& matrix,
dsinclair9d6ca992016-06-16 10:51:56 -070020 uint32_t dwStatus) override;
tsepezd19e9122016-11-02 15:43:18 -070021 bool LoadWidget() override;
22 bool OnMouseEnter() override;
23 bool OnMouseExit() override;
Dan Sinclairb45ea1f2017-02-21 14:27:59 -050024 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;
tsepezd19e9122016-11-02 15:43:18 -070028 bool OnMouseWheel(uint32_t dwFlags,
29 int16_t zDelta,
Dan Sinclairb45ea1f2017-02-21 14:27:59 -050030 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;
Dan Sinclair1770c022016-03-14 14:14:16 -040034
tsepezd19e9122016-11-02 15:43:18 -070035 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;
Dan Sinclairb45ea1f2017-02-21 14:27:59 -050038 FWL_WidgetHit OnHitTest(const CFX_PointF& point) override;
39 bool OnSetCursor(const CFX_PointF& point) override;
Dan Sinclair1770c022016-03-14 14:14:16 -040040};
41
Dan Sinclair24ef6332017-07-24 10:52:57 -040042#endif // XFA_FXFA_CXFA_FFSIGNATURE_H_