| 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 ~CXFA_FFLine() override; |
| 16 virtual void RenderWidget(CFX_Graphics* pGS, | 16 |
| 17 CFX_Matrix* pMatrix = NULL, | 17 // CXFA_FFWidget |
| 18 uint32_t dwStatus = 0, | 18 void RenderWidget(CFX_Graphics* pGS, |
| 19 int32_t iRotate = 0); | 19 CFX_Matrix* pMatrix = NULL, |
| 20 uint32_t dwStatus = 0, |
| 21 int32_t iRotate = 0) override; |
| 20 | 22 |
| 21 private: | 23 private: |
| 22 void GetRectFromHand(CFX_RectF& rect, int32_t iHand, FX_FLOAT fLineWidth); | 24 void GetRectFromHand(CFX_RectF& rect, int32_t iHand, FX_FLOAT fLineWidth); |
| 23 }; | 25 }; |
| 24 class CXFA_FFArc : public CXFA_FFDraw { | 26 class CXFA_FFArc : public CXFA_FFDraw { |
| 25 public: | 27 public: |
| 26 CXFA_FFArc(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 28 CXFA_FFArc(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 27 virtual ~CXFA_FFArc(); | 29 ~CXFA_FFArc() override; |
| 28 virtual void RenderWidget(CFX_Graphics* pGS, | 30 |
| 29 CFX_Matrix* pMatrix = NULL, | 31 // CXFA_FFWidget |
| 30 uint32_t dwStatus = 0, | 32 void RenderWidget(CFX_Graphics* pGS, |
| 31 int32_t iRotate = 0); | 33 CFX_Matrix* pMatrix = NULL, |
| 34 uint32_t dwStatus = 0, |
| 35 int32_t iRotate = 0) override; |
| 32 }; | 36 }; |
| 37 |
| 33 class CXFA_FFRectangle : public CXFA_FFDraw { | 38 class CXFA_FFRectangle : public CXFA_FFDraw { |
| 34 public: | 39 public: |
| 35 CXFA_FFRectangle(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 40 CXFA_FFRectangle(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 36 virtual ~CXFA_FFRectangle(); | 41 ~CXFA_FFRectangle() override; |
| 37 virtual void RenderWidget(CFX_Graphics* pGS, | 42 |
| 38 CFX_Matrix* pMatrix = NULL, | 43 // CXFA_FFWidget |
| 39 uint32_t dwStatus = 0, | 44 void RenderWidget(CFX_Graphics* pGS, |
| 40 int32_t iRotate = 0); | 45 CFX_Matrix* pMatrix = NULL, |
| 46 uint32_t dwStatus = 0, |
| 47 int32_t iRotate = 0) override; |
| 41 }; | 48 }; |
| 42 | 49 |
| 43 #endif // XFA_FXFA_APP_XFA_FFPATH_H_ | 50 #endif // XFA_FXFA_APP_XFA_FFPATH_H_ |
| OLD | NEW |