xfa_ffimageedit.h revision 5ae9d0c6fd838a2967cca72aa5751b51dadc2769
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_FFIMAGEEDIT_H_ 8#define XFA_FXFA_APP_XFA_FFIMAGEEDIT_H_ 9 10#include "xfa/fxfa/app/xfa_fffield.h" 11 12class CXFA_FFImageEdit : public CXFA_FFField { 13 public: 14 explicit CXFA_FFImageEdit(CXFA_WidgetAcc* pDataAcc); 15 ~CXFA_FFImageEdit() 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 void UnloadWidget() override; 23 bool OnLButtonDown(uint32_t dwFlags, const CFX_PointF& point) override; 24 void OnProcessMessage(CFWL_Message* pMessage) override; 25 void OnProcessEvent(CFWL_Event* pEvent) override; 26 void OnDrawWidget(CFX_Graphics* pGraphics, 27 const CFX_Matrix* pMatrix = nullptr) override; 28 29 protected: 30 void SetFWLRect() override; 31 bool UpdateFWLData() override; 32 bool CommitData() override; 33 34 IFWL_WidgetDelegate* m_pOldDelegate; 35}; 36 37#endif // XFA_FXFA_APP_XFA_FFIMAGEEDIT_H_ 38