OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_SRC_FXFA_APP_XFA_FFIMAGEEDIT_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFIMAGEEDIT_H_ |
8 #define XFA_SRC_FXFA_APP_XFA_FFIMAGEEDIT_H_ | 8 #define XFA_FXFA_APP_XFA_FFIMAGEEDIT_H_ |
9 | 9 |
10 #include "xfa/src/fxfa/app/xfa_fffield.h" | 10 #include "xfa/fxfa/app/xfa_fffield.h" |
11 | 11 |
12 class CXFA_FFImageEdit : public CXFA_FFField { | 12 class CXFA_FFImageEdit : public CXFA_FFField { |
13 public: | 13 public: |
14 CXFA_FFImageEdit(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 14 CXFA_FFImageEdit(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
15 virtual ~CXFA_FFImageEdit(); | 15 virtual ~CXFA_FFImageEdit(); |
16 | 16 |
17 virtual void RenderWidget(CFX_Graphics* pGS, | 17 virtual void RenderWidget(CFX_Graphics* pGS, |
18 CFX_Matrix* pMatrix = NULL, | 18 CFX_Matrix* pMatrix = NULL, |
19 FX_DWORD dwStatus = 0, | 19 FX_DWORD dwStatus = 0, |
20 int32_t iRotate = 0); | 20 int32_t iRotate = 0); |
21 virtual FX_BOOL LoadWidget(); | 21 virtual FX_BOOL LoadWidget(); |
22 virtual void UnloadWidget(); | 22 virtual void UnloadWidget(); |
23 virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 23 virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
24 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); | 24 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); |
25 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); | 25 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); |
26 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 26 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
27 const CFX_Matrix* pMatrix = NULL); | 27 const CFX_Matrix* pMatrix = NULL); |
28 | 28 |
29 protected: | 29 protected: |
30 virtual void SetFWLRect(); | 30 virtual void SetFWLRect(); |
31 virtual FX_BOOL UpdateFWLData(); | 31 virtual FX_BOOL UpdateFWLData(); |
32 virtual FX_BOOL CommitData(); | 32 virtual FX_BOOL CommitData(); |
33 IFWL_WidgetDelegate* m_pOldDelegate; | 33 IFWL_WidgetDelegate* m_pOldDelegate; |
34 }; | 34 }; |
35 | 35 |
36 #endif // XFA_SRC_FXFA_APP_XFA_FFIMAGEEDIT_H_ | 36 #endif // XFA_FXFA_APP_XFA_FFIMAGEEDIT_H_ |
OLD | NEW |