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_FFTEXT_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFTEXT_H_ |
8 #define XFA_SRC_FXFA_APP_XFA_FFTEXT_H_ | 8 #define XFA_FXFA_APP_XFA_FFTEXT_H_ |
9 | 9 |
10 #include "xfa/src/fxfa/app/xfa_ffdraw.h" | 10 #include "xfa/fxfa/app/xfa_ffdraw.h" |
11 | 11 |
12 class CXFA_FFText : public CXFA_FFDraw { | 12 class CXFA_FFText : public CXFA_FFDraw { |
13 public: | 13 public: |
14 CXFA_FFText(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 14 CXFA_FFText(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
15 virtual ~CXFA_FFText(); | 15 virtual ~CXFA_FFText(); |
16 virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 16 virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
17 virtual FX_BOOL OnLButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 17 virtual FX_BOOL OnLButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
18 virtual FX_BOOL OnMouseMove(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 18 virtual FX_BOOL OnMouseMove(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
19 virtual FX_DWORD OnHitTest(FX_FLOAT fx, FX_FLOAT fy); | 19 virtual FX_DWORD OnHitTest(FX_FLOAT fx, FX_FLOAT fy); |
20 virtual void RenderWidget(CFX_Graphics* pGS, | 20 virtual void RenderWidget(CFX_Graphics* pGS, |
21 CFX_Matrix* pMatrix = NULL, | 21 CFX_Matrix* pMatrix = NULL, |
22 FX_DWORD dwStatus = 0, | 22 FX_DWORD dwStatus = 0, |
23 int32_t iRotate = 0); | 23 int32_t iRotate = 0); |
24 virtual FX_BOOL IsLoaded(); | 24 virtual FX_BOOL IsLoaded(); |
25 virtual FX_BOOL PerformLayout(); | 25 virtual FX_BOOL PerformLayout(); |
26 | 26 |
27 private: | 27 private: |
28 virtual const FX_WCHAR* GetLinkURLAtPoint(FX_FLOAT fx, FX_FLOAT fy); | 28 virtual const FX_WCHAR* GetLinkURLAtPoint(FX_FLOAT fx, FX_FLOAT fy); |
29 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); | 29 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); |
30 }; | 30 }; |
31 | 31 |
32 #endif // XFA_SRC_FXFA_APP_XFA_FFTEXT_H_ | 32 #endif // XFA_FXFA_APP_XFA_FFTEXT_H_ |
OLD | NEW |