| 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 FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| 9 | 9 |
| 10 #include "core/fpdfdoc/include/cpvt_wordrange.h" | 10 #include "core/fpdfdoc/include/cpvt_wordrange.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #define PPBL_LABEL 0 | 69 #define PPBL_LABEL 0 |
| 70 #define PPBL_ICON 1 | 70 #define PPBL_ICON 1 |
| 71 #define PPBL_ICONTOPLABELBOTTOM 2 | 71 #define PPBL_ICONTOPLABELBOTTOM 2 |
| 72 #define PPBL_LABELTOPICONBOTTOM 3 | 72 #define PPBL_LABELTOPICONBOTTOM 3 |
| 73 #define PPBL_ICONLEFTLABELRIGHT 4 | 73 #define PPBL_ICONLEFTLABELRIGHT 4 |
| 74 #define PPBL_LABELLEFTICONRIGHT 5 | 74 #define PPBL_LABELLEFTICONRIGHT 5 |
| 75 #define PPBL_LABELOVERICON 6 | 75 #define PPBL_LABELOVERICON 6 |
| 76 | 76 |
| 77 class CPWL_Point : public CFX_FloatPoint { | 77 class CPWL_Point : public CFX_FloatPoint { |
| 78 public: | 78 public: |
| 79 CPWL_Point() : CFX_FloatPoint(0.0f, 0.0f) {} | 79 CPWL_Point() {} |
| 80 CPWL_Point(FX_FLOAT fx, FX_FLOAT fy) : CFX_FloatPoint(fx, fy) {} | 80 CPWL_Point(FX_FLOAT fx, FX_FLOAT fy) : CFX_FloatPoint(fx, fy) {} |
| 81 CPWL_Point(const CPWL_Point& point) : CFX_FloatPoint(point.x, point.y) {} | 81 CPWL_Point(const CPWL_Point& point) : CFX_FloatPoint(point.x, point.y) {} |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 enum PWL_PATHDATA_TYPE { | 84 enum PWL_PATHDATA_TYPE { |
| 85 PWLPT_MOVETO, | 85 PWLPT_MOVETO, |
| 86 PWLPT_LINETO, | 86 PWLPT_LINETO, |
| 87 PWLPT_BEZIERTO, | 87 PWLPT_BEZIERTO, |
| 88 PWLPT_UNKNOWN | 88 PWLPT_UNKNOWN |
| 89 }; | 89 }; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 CFX_PathData& path, | 390 CFX_PathData& path, |
| 391 const CFX_FloatRect& crBBox, | 391 const CFX_FloatRect& crBBox, |
| 392 const PWL_PATH_TYPE type); | 392 const PWL_PATH_TYPE type); |
| 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, | 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, |
| 394 CFX_PathData& path, | 394 CFX_PathData& path, |
| 395 const CFX_FloatRect& crBBox, | 395 const CFX_FloatRect& crBBox, |
| 396 const PWL_PATH_TYPE type); | 396 const PWL_PATH_TYPE type); |
| 397 }; | 397 }; |
| 398 | 398 |
| 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| OLD | NEW |