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_FDE_FDE_VISUALSET_H_ | 7 #ifndef XFA_FDE_FDE_VISUALSET_H_ |
8 #define XFA_FDE_FDE_VISUALSET_H_ | 8 #define XFA_FDE_FDE_VISUALSET_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
12 #include "core/fxge/include/fx_dib.h" | 12 #include "core/fxge/include/fx_dib.h" |
13 #include "core/fxge/include/fx_ge.h" | 13 #include "core/fxge/include/fx_ge.h" |
| 14 #include "xfa/fde/cfde_path.h" |
14 #include "xfa/fde/fde_object.h" | 15 #include "xfa/fde/fde_object.h" |
15 #include "xfa/fde/fde_path.h" | |
16 #include "xfa/fgas/crt/fgas_memory.h" | 16 #include "xfa/fgas/crt/fgas_memory.h" |
17 #include "xfa/fgas/font/fgas_font.h" | 17 #include "xfa/fgas/font/fgas_font.h" |
18 | 18 |
19 enum FDE_VISUALOBJTYPE { | 19 enum FDE_VISUALOBJTYPE { |
20 FDE_VISUALOBJ_Canvas = 0x00, | 20 FDE_VISUALOBJ_Canvas = 0x00, |
21 FDE_VISUALOBJ_Text = 0x01 | 21 FDE_VISUALOBJ_Text = 0x01 |
22 }; | 22 }; |
23 | 23 |
24 typedef struct FDE_HVISUALOBJ_ { void* pData; } const* FDE_HVISUALOBJ; | 24 typedef struct FDE_HVISUALOBJ_ { void* pData; } const* FDE_HVISUALOBJ; |
25 | 25 |
(...skipping 24 matching lines...) Expand all Loading... |
50 virtual FX_FLOAT GetFontSize(FDE_HVISUALOBJ hText) = 0; | 50 virtual FX_FLOAT GetFontSize(FDE_HVISUALOBJ hText) = 0; |
51 virtual FX_ARGB GetFontColor(FDE_HVISUALOBJ hText) = 0; | 51 virtual FX_ARGB GetFontColor(FDE_HVISUALOBJ hText) = 0; |
52 virtual int32_t GetDisplayPos(FDE_HVISUALOBJ hText, | 52 virtual int32_t GetDisplayPos(FDE_HVISUALOBJ hText, |
53 FXTEXT_CHARPOS* pCharPos, | 53 FXTEXT_CHARPOS* pCharPos, |
54 FX_BOOL bCharCode = FALSE, | 54 FX_BOOL bCharCode = FALSE, |
55 CFX_WideString* pWSForms = NULL) = 0; | 55 CFX_WideString* pWSForms = NULL) = 0; |
56 virtual int32_t GetCharRects(FDE_HVISUALOBJ hText, | 56 virtual int32_t GetCharRects(FDE_HVISUALOBJ hText, |
57 CFX_RectFArray& rtArray) = 0; | 57 CFX_RectFArray& rtArray) = 0; |
58 }; | 58 }; |
59 | 59 |
60 class IFDE_VisualSetIterator { | |
61 public: | |
62 static IFDE_VisualSetIterator* Create(); | |
63 virtual ~IFDE_VisualSetIterator() {} | |
64 virtual void Release() = 0; | |
65 virtual FX_BOOL AttachCanvas(IFDE_CanvasSet* pCanvas) = 0; | |
66 virtual FX_BOOL FilterObjects(uint32_t dwObjects = 0xFFFFFFFF) = 0; | |
67 virtual void Reset() = 0; | |
68 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet*& pVisualSet, | |
69 FDE_HVISUALOBJ* phCanvasObj = NULL, | |
70 IFDE_CanvasSet** ppCanvasSet = NULL) = 0; | |
71 }; | |
72 | |
73 #endif // XFA_FDE_FDE_VISUALSET_H_ | 60 #endif // XFA_FDE_FDE_VISUALSET_H_ |
OLD | NEW |