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 _FXFA_FORMFILLER_IMAGEEDIT_IMP_H 8 #define _FXFA_FORMFILLER_IMAGEEDIT_IMP_H 9 class CXFA_FFImageEdit : public CXFA_FFField { 10 public: 11 CXFA_FFImageEdit(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); 12 virtual ~CXFA_FFImageEdit(); 13 14 virtual void RenderWidget(CFX_Graphics* pGS, 15 CFX_Matrix* pMatrix = NULL, 16 FX_DWORD dwStatus = 0, 17 int32_t iRotate = 0); 18 virtual FX_BOOL LoadWidget(); 19 virtual void UnloadWidget(); 20 virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); 21 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); 22 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); 23 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, 24 const CFX_Matrix* pMatrix = NULL); 25 26 protected: 27 virtual void SetFWLRect(); 28 virtual FX_BOOL UpdateFWLData(); 29 virtual FX_BOOL CommitData(); 30 IFWL_WidgetDelegate* m_pOldDelegate; 31 }; 32 #endif 33