| 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_FXFA_APP_XFA_FFPATH_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFPATH_H_ |
| 8 #define XFA_FXFA_APP_XFA_FFPATH_H_ | 8 #define XFA_FXFA_APP_XFA_FFPATH_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/app/xfa_ffdraw.h" | 10 #include "xfa/fxfa/app/xfa_ffdraw.h" |
| 11 | 11 |
| 12 class CXFA_FFLine : public CXFA_FFDraw { | 12 class CXFA_FFLine : public CXFA_FFDraw { |
| 13 public: | 13 public: |
| 14 CXFA_FFLine(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 14 CXFA_FFLine(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 15 virtual ~CXFA_FFLine(); | 15 virtual ~CXFA_FFLine(); |
| 16 virtual void RenderWidget(CFX_Graphics* pGS, | 16 virtual void RenderWidget(CFX_Graphics* pGS, |
| 17 CFX_Matrix* pMatrix = NULL, | 17 CFX_Matrix* pMatrix = NULL, |
| 18 FX_DWORD dwStatus = 0, | 18 uint32_t dwStatus = 0, |
| 19 int32_t iRotate = 0); | 19 int32_t iRotate = 0); |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 void GetRectFromHand(CFX_RectF& rect, int32_t iHand, FX_FLOAT fLineWidth); | 22 void GetRectFromHand(CFX_RectF& rect, int32_t iHand, FX_FLOAT fLineWidth); |
| 23 }; | 23 }; |
| 24 class CXFA_FFArc : public CXFA_FFDraw { | 24 class CXFA_FFArc : public CXFA_FFDraw { |
| 25 public: | 25 public: |
| 26 CXFA_FFArc(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 26 CXFA_FFArc(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 27 virtual ~CXFA_FFArc(); | 27 virtual ~CXFA_FFArc(); |
| 28 virtual void RenderWidget(CFX_Graphics* pGS, | 28 virtual void RenderWidget(CFX_Graphics* pGS, |
| 29 CFX_Matrix* pMatrix = NULL, | 29 CFX_Matrix* pMatrix = NULL, |
| 30 FX_DWORD dwStatus = 0, | 30 uint32_t dwStatus = 0, |
| 31 int32_t iRotate = 0); | 31 int32_t iRotate = 0); |
| 32 }; | 32 }; |
| 33 class CXFA_FFRectangle : public CXFA_FFDraw { | 33 class CXFA_FFRectangle : public CXFA_FFDraw { |
| 34 public: | 34 public: |
| 35 CXFA_FFRectangle(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 35 CXFA_FFRectangle(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 36 virtual ~CXFA_FFRectangle(); | 36 virtual ~CXFA_FFRectangle(); |
| 37 virtual void RenderWidget(CFX_Graphics* pGS, | 37 virtual void RenderWidget(CFX_Graphics* pGS, |
| 38 CFX_Matrix* pMatrix = NULL, | 38 CFX_Matrix* pMatrix = NULL, |
| 39 FX_DWORD dwStatus = 0, | 39 uint32_t dwStatus = 0, |
| 40 int32_t iRotate = 0); | 40 int32_t iRotate = 0); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // XFA_FXFA_APP_XFA_FFPATH_H_ | 43 #endif // XFA_FXFA_APP_XFA_FFPATH_H_ |
| OLD | NEW |