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_FDP_INCLUDE_FDE_PSR_H_ | 7 #ifndef XFA_SRC_FDP_INCLUDE_FDE_PSR_H_ |
8 #define XFA_SRC_FDP_INCLUDE_FDE_PSR_H_ | 8 #define XFA_SRC_FDP_INCLUDE_FDE_PSR_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_coordinates.h" | 10 #include "core/include/fxcrt/fx_coordinates.h" |
11 #include "core/include/fxcrt/fx_system.h" | 11 #include "core/include/fxcrt/fx_system.h" |
12 #include "core/include/fxge/fx_dib.h" | 12 #include "core/include/fxge/fx_dib.h" |
13 #include "core/include/fxge/fx_ge.h" | 13 #include "core/include/fxge/fx_ge.h" |
14 #include "xfa/src/fdp/include/fde_brs.h" | 14 #include "xfa/src/fdp/include/fde_brs.h" |
15 #include "xfa/src/fdp/include/fde_img.h" | 15 #include "xfa/src/fdp/include/fde_img.h" |
16 #include "xfa/src/fdp/include/fde_pen.h" | 16 #include "xfa/src/fdp/include/fde_pen.h" |
17 #include "xfa/src/fdp/include/fde_pth.h" | 17 #include "xfa/src/fdp/include/fde_pth.h" |
18 #include "xfa/src/fgas/include/fx_fnt.h" | 18 #include "xfa/src/fgas/include/fx_fnt.h" |
19 | 19 |
20 enum FDE_VISUALOBJTYPE { | 20 enum FDE_VISUALOBJTYPE { |
21 FDE_VISUALOBJ_Canvas = 0x00, | 21 FDE_VISUALOBJ_Canvas = 0x00, |
22 FDE_VISUALOBJ_Text = 0x01, | 22 FDE_VISUALOBJ_Text = 0x01, |
23 FDE_VISUALOBJ_Image = 0x02, | 23 FDE_VISUALOBJ_Image = 0x02, |
24 FDE_VISUALOBJ_Path = 0x04, | 24 FDE_VISUALOBJ_Path = 0x04, |
25 FDE_VISUALOBJ_Widget = 0x08, | 25 FDE_VISUALOBJ_Widget = 0x08, |
26 }; | 26 }; |
27 | 27 |
28 typedef struct _FDE_HVISUALOBJ { void* pData; } const* FDE_HVISUALOBJ; | 28 typedef struct FDE_HVISUALOBJ_ { void* pData; } const* FDE_HVISUALOBJ; |
29 | 29 |
30 class IFDE_VisualSet { | 30 class IFDE_VisualSet { |
31 public: | 31 public: |
32 virtual ~IFDE_VisualSet() {} | 32 virtual ~IFDE_VisualSet() {} |
33 virtual FDE_VISUALOBJTYPE GetType() = 0; | 33 virtual FDE_VISUALOBJTYPE GetType() = 0; |
34 virtual FX_BOOL GetBBox(FDE_HVISUALOBJ hVisualObj, CFX_RectF& bbox) = 0; | 34 virtual FX_BOOL GetBBox(FDE_HVISUALOBJ hVisualObj, CFX_RectF& bbox) = 0; |
35 virtual FX_BOOL GetMatrix(FDE_HVISUALOBJ hVisualObj, CFX_Matrix& matrix) = 0; | 35 virtual FX_BOOL GetMatrix(FDE_HVISUALOBJ hVisualObj, CFX_Matrix& matrix) = 0; |
36 virtual FX_BOOL GetRect(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) = 0; | 36 virtual FX_BOOL GetRect(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) = 0; |
37 virtual FX_BOOL GetClip(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) = 0; | 37 virtual FX_BOOL GetClip(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) = 0; |
38 }; | 38 }; |
(...skipping 17 matching lines...) Expand all Loading... |
56 FXTEXT_CHARPOS* pCharPos, | 56 FXTEXT_CHARPOS* pCharPos, |
57 FX_BOOL bCharCode = FALSE, | 57 FX_BOOL bCharCode = FALSE, |
58 CFX_WideString* pWSForms = NULL) = 0; | 58 CFX_WideString* pWSForms = NULL) = 0; |
59 virtual int32_t GetCharRects(FDE_HVISUALOBJ hText, | 59 virtual int32_t GetCharRects(FDE_HVISUALOBJ hText, |
60 CFX_RectFArray& rtArray) = 0; | 60 CFX_RectFArray& rtArray) = 0; |
61 }; | 61 }; |
62 class IFDE_ImageSet : public IFDE_VisualSet { | 62 class IFDE_ImageSet : public IFDE_VisualSet { |
63 public: | 63 public: |
64 virtual IFDE_Image* GetImage(FDE_HVISUALOBJ hImage) = 0; | 64 virtual IFDE_Image* GetImage(FDE_HVISUALOBJ hImage) = 0; |
65 virtual FX_POSITION GetFirstFilterPosition(FDE_HVISUALOBJ hImage) = 0; | 65 virtual FX_POSITION GetFirstFilterPosition(FDE_HVISUALOBJ hImage) = 0; |
66 virtual FDE_LPCIMAGEFILTERPARAMS GetNextFilter(FDE_HVISUALOBJ hImage, | 66 virtual const FDE_IMAGEFILTERPARAMS* GetNextFilter(FDE_HVISUALOBJ hImage, |
67 FX_POSITION& pos) = 0; | 67 FX_POSITION& pos) = 0; |
68 }; | 68 }; |
69 #define FDE_FILLMODE_Alternate 1 | 69 #define FDE_FILLMODE_Alternate 1 |
70 #define FDE_FILLMODE_Winding 2 | 70 #define FDE_FILLMODE_Winding 2 |
71 #define FDE_PATHRENDER_Stroke 1 | 71 #define FDE_PATHRENDER_Stroke 1 |
72 #define FDE_PATHRENDER_Fill 2 | 72 #define FDE_PATHRENDER_Fill 2 |
73 #define FDE_PATHRENDER_FillStroke 3 | 73 #define FDE_PATHRENDER_FillStroke 3 |
74 class IFDE_PathSet : public IFDE_VisualSet { | 74 class IFDE_PathSet : public IFDE_VisualSet { |
75 public: | 75 public: |
76 virtual IFDE_Path* GetPath(FDE_HVISUALOBJ hPath) = 0; | 76 virtual IFDE_Path* GetPath(FDE_HVISUALOBJ hPath) = 0; |
77 virtual int32_t GetFillMode(FDE_HVISUALOBJ hPath) = 0; | 77 virtual int32_t GetFillMode(FDE_HVISUALOBJ hPath) = 0; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual void Release() = 0; | 111 virtual void Release() = 0; |
112 virtual FX_BOOL AttachCanvas(IFDE_CanvasSet* pCanvas) = 0; | 112 virtual FX_BOOL AttachCanvas(IFDE_CanvasSet* pCanvas) = 0; |
113 virtual FX_BOOL FilterObjects(FX_DWORD dwObjects = 0xFFFFFFFF) = 0; | 113 virtual FX_BOOL FilterObjects(FX_DWORD dwObjects = 0xFFFFFFFF) = 0; |
114 virtual void Reset() = 0; | 114 virtual void Reset() = 0; |
115 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet*& pVisualSet, | 115 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet*& pVisualSet, |
116 FDE_HVISUALOBJ* phCanvasObj = NULL, | 116 FDE_HVISUALOBJ* phCanvasObj = NULL, |
117 IFDE_CanvasSet** ppCanvasSet = NULL) = 0; | 117 IFDE_CanvasSet** ppCanvasSet = NULL) = 0; |
118 }; | 118 }; |
119 | 119 |
120 #endif // XFA_SRC_FDP_INCLUDE_FDE_PSR_H_ | 120 #endif // XFA_SRC_FDP_INCLUDE_FDE_PSR_H_ |
OLD | NEW |