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