| 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/fde_brush.h" | |
| 15 #include "xfa/fde/fde_image.h" | 14 #include "xfa/fde/fde_image.h" |
| 15 #include "xfa/fde/fde_object.h" |
| 16 #include "xfa/fde/fde_path.h" | 16 #include "xfa/fde/fde_path.h" |
| 17 #include "xfa/fde/fde_pen.h" | |
| 18 #include "xfa/fgas/font/fgas_font.h" | 17 #include "xfa/fgas/font/fgas_font.h" |
| 19 | 18 |
| 20 enum FDE_VISUALOBJTYPE { | 19 enum FDE_VISUALOBJTYPE { |
| 21 FDE_VISUALOBJ_Canvas = 0x00, | 20 FDE_VISUALOBJ_Canvas = 0x00, |
| 22 FDE_VISUALOBJ_Text = 0x01, | 21 FDE_VISUALOBJ_Text = 0x01, |
| 23 FDE_VISUALOBJ_Image = 0x02, | 22 FDE_VISUALOBJ_Image = 0x02, |
| 24 FDE_VISUALOBJ_Path = 0x04, | 23 FDE_VISUALOBJ_Path = 0x04, |
| 25 FDE_VISUALOBJ_Widget = 0x08, | 24 FDE_VISUALOBJ_Widget = 0x08, |
| 26 }; | 25 }; |
| 27 | 26 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual FX_POSITION GetFirstFilterPosition(FDE_HVISUALOBJ hImage) = 0; | 70 virtual FX_POSITION GetFirstFilterPosition(FDE_HVISUALOBJ hImage) = 0; |
| 72 virtual const FDE_IMAGEFILTERPARAMS* GetNextFilter(FDE_HVISUALOBJ hImage, | 71 virtual const FDE_IMAGEFILTERPARAMS* GetNextFilter(FDE_HVISUALOBJ hImage, |
| 73 FX_POSITION& pos) = 0; | 72 FX_POSITION& pos) = 0; |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 class IFDE_PathSet : public IFDE_VisualSet { | 75 class IFDE_PathSet : public IFDE_VisualSet { |
| 77 public: | 76 public: |
| 78 virtual IFDE_Path* GetPath(FDE_HVISUALOBJ hPath) = 0; | 77 virtual IFDE_Path* GetPath(FDE_HVISUALOBJ hPath) = 0; |
| 79 virtual int32_t GetFillMode(FDE_HVISUALOBJ hPath) = 0; | 78 virtual int32_t GetFillMode(FDE_HVISUALOBJ hPath) = 0; |
| 80 virtual int32_t GetRenderMode(FDE_HVISUALOBJ hPath) = 0; | 79 virtual int32_t GetRenderMode(FDE_HVISUALOBJ hPath) = 0; |
| 81 virtual IFDE_Pen* GetPen(FDE_HVISUALOBJ hPath) = 0; | 80 virtual CFDE_Pen* GetPen(FDE_HVISUALOBJ hPath) = 0; |
| 82 virtual FX_FLOAT GetPenWidth(FDE_HVISUALOBJ hPath) = 0; | 81 virtual FX_FLOAT GetPenWidth(FDE_HVISUALOBJ hPath) = 0; |
| 83 virtual IFDE_Brush* GetBrush(FDE_HVISUALOBJ hPath) = 0; | 82 virtual CFDE_Brush* GetBrush(FDE_HVISUALOBJ hPath) = 0; |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 enum FDE_WIDGETOBJ { | 85 enum FDE_WIDGETOBJ { |
| 87 FDE_WIDGETOBJ_Unknown = 0x0000, | 86 FDE_WIDGETOBJ_Unknown = 0x0000, |
| 88 FDE_WIDGETOBJ_Anchor = 0x0100, | 87 FDE_WIDGETOBJ_Anchor = 0x0100, |
| 89 FDE_WIDGETOBJ_NamedDest = 0x0200, | 88 FDE_WIDGETOBJ_NamedDest = 0x0200, |
| 90 FDE_WIDGETOBJ_HyperLink = 0x0400, | 89 FDE_WIDGETOBJ_HyperLink = 0x0400, |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 class IFDE_WidgetSet : public IFDE_VisualSet { | 92 class IFDE_WidgetSet : public IFDE_VisualSet { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 114 virtual void Release() = 0; | 113 virtual void Release() = 0; |
| 115 virtual FX_BOOL AttachCanvas(IFDE_CanvasSet* pCanvas) = 0; | 114 virtual FX_BOOL AttachCanvas(IFDE_CanvasSet* pCanvas) = 0; |
| 116 virtual FX_BOOL FilterObjects(uint32_t dwObjects = 0xFFFFFFFF) = 0; | 115 virtual FX_BOOL FilterObjects(uint32_t dwObjects = 0xFFFFFFFF) = 0; |
| 117 virtual void Reset() = 0; | 116 virtual void Reset() = 0; |
| 118 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet*& pVisualSet, | 117 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet*& pVisualSet, |
| 119 FDE_HVISUALOBJ* phCanvasObj = NULL, | 118 FDE_HVISUALOBJ* phCanvasObj = NULL, |
| 120 IFDE_CanvasSet** ppCanvasSet = NULL) = 0; | 119 IFDE_CanvasSet** ppCanvasSet = NULL) = 0; |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 #endif // XFA_FDE_FDE_VISUALSET_H_ | 122 #endif // XFA_FDE_FDE_VISUALSET_H_ |
| OLD | NEW |