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_INCLUDE_PDFWINDOW_PWL_UTILS_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ |
9 | 9 |
10 #include "../../../core/include/fpdfapi/fpdf_parser.h" // For CPDF_Point. | 10 #include "../../../core/include/fpdfapi/fpdf_parser.h" // For CPDF_Point. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 public: | 97 public: |
98 CPWL_PathData() : point(), type(PWLPT_UNKNOWN){} | 98 CPWL_PathData() : point(), type(PWLPT_UNKNOWN){} |
99 CPWL_PathData(const CPWL_Point& pt, PWL_PATHDATA_TYPE tp) : point(pt), t
ype(tp) {} | 99 CPWL_PathData(const CPWL_Point& pt, PWL_PATHDATA_TYPE tp) : point(pt), t
ype(tp) {} |
100 | 100 |
101 CPWL_Point
point; | 101 CPWL_Point
point; |
102 PWL_PATHDATA_TYPE type; | 102 PWL_PATHDATA_TYPE type; |
103 }; | 103 }; |
104 | 104 |
105 class IPWL_SpellCheck; | 105 class IPWL_SpellCheck; |
106 | 106 |
107 class PWL_CLASS CPWL_Utils | 107 class CPWL_Utils |
108 { | 108 { |
109 public: | 109 public: |
110 static CPDF_Rect InflateR
ect(const CPDF_Rect& rcRect, FX_FLOAT fSize); | 110 static CPDF_Rect InflateR
ect(const CPDF_Rect& rcRect, FX_FLOAT fSize); |
111 static CPDF_Rect DeflateR
ect(const CPDF_Rect& rcRect, FX_FLOAT fSize); | 111 static CPDF_Rect DeflateR
ect(const CPDF_Rect& rcRect, FX_FLOAT fSize); |
112 static FX_BOOL Intersec
tRect(const CPDF_Rect& rect1, const CPDF_Rect& rect2); | 112 static FX_BOOL Intersec
tRect(const CPDF_Rect& rect1, const CPDF_Rect& rect2); |
113 static FX_BOOL Contains
Rect(const CPDF_Rect& rcParent, const CPDF_Rect& rcChild); | 113 static FX_BOOL Contains
Rect(const CPDF_Rect& rcParent, const CPDF_Rect& rcChild); |
114 static CPDF_Rect ScaleRec
t(const CPDF_Rect& rcRect,FX_FLOAT fScale); | 114 static CPDF_Rect ScaleRec
t(const CPDF_Rect& rcRect,FX_FLOAT fScale); |
115 static CPVT_WordRange OverlapWordRange
(const CPVT_WordRange& wr1, const CPVT_WordRange& wr2); | 115 static CPVT_WordRange OverlapWordRange
(const CPVT_WordRange& wr1, const CPVT_WordRange& wr2); |
116 static CPDF_Rect GetCente
rSquare(const CPDF_Rect & rect); | 116 static CPDF_Rect GetCente
rSquare(const CPDF_Rect & rect); |
117 static CPWL_Color Substrac
tColor(const CPWL_Color & sColor,FX_FLOAT fColorSub); | 117 static CPWL_Color Substrac
tColor(const CPWL_Color & sColor,FX_FLOAT fColorSub); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 static void
GetGraphics_UpArrow(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Re
ct& crBBox, const PWL_PATH_TYPE type); | 234 static void
GetGraphics_UpArrow(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Re
ct& crBBox, const PWL_PATH_TYPE type); |
235 static void
GetGraphics_UpLeftArrow(CFX_ByteString& sPathData, CFX_PathData& path, const CPD
F_Rect& crBBox, const PWL_PATH_TYPE type); | 235 static void
GetGraphics_UpLeftArrow(CFX_ByteString& sPathData, CFX_PathData& path, const CPD
F_Rect& crBBox, const PWL_PATH_TYPE type); |
236 static void
GetGraphics_Graph(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Rect
& crBBox, const PWL_PATH_TYPE type); | 236 static void
GetGraphics_Graph(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Rect
& crBBox, const PWL_PATH_TYPE type); |
237 static void
GetGraphics_Paperclip(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_
Rect& crBBox, const PWL_PATH_TYPE type); | 237 static void
GetGraphics_Paperclip(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_
Rect& crBBox, const PWL_PATH_TYPE type); |
238 static void
GetGraphics_Attachment(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF
_Rect& crBBox, const PWL_PATH_TYPE type); | 238 static void
GetGraphics_Attachment(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF
_Rect& crBBox, const PWL_PATH_TYPE type); |
239 static void
GetGraphics_Tag(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Rect&
crBBox, const PWL_PATH_TYPE type); | 239 static void
GetGraphics_Tag(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Rect&
crBBox, const PWL_PATH_TYPE type); |
240 static void
GetGraphics_Foxit(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Rect
& crBBox, const PWL_PATH_TYPE type); | 240 static void
GetGraphics_Foxit(CFX_ByteString& sPathData, CFX_PathData& path, const CPDF_Rect
& crBBox, const PWL_PATH_TYPE type); |
241 }; | 241 }; |
242 | 242 |
243 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ | 243 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ |
OLD | NEW |