Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Side by Side Diff: xfa/src/fdp/include/fde_psr.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/src/fdp/include/fde_pen.h ('k') | xfa/src/fdp/include/fde_rdr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 _FDE_PARSER 7 #ifndef _FDE_PARSER
8 #define _FDE_PARSER 8 #define _FDE_PARSER
9 enum FDE_VISUALOBJTYPE { 9 enum FDE_VISUALOBJTYPE {
10 FDE_VISUALOBJ_Canvas = 0x00, 10 FDE_VISUALOBJ_Canvas = 0x00,
(...skipping 17 matching lines...) Expand all
28 class IFDE_CanvasSet : public IFDE_VisualSet 28 class IFDE_CanvasSet : public IFDE_VisualSet
29 { 29 {
30 public: 30 public:
31 virtual FX_POSITION GetFirstPosition(FDE_HVISUALOBJ hCanvas) = 0; 31 virtual FX_POSITION GetFirstPosition(FDE_HVISUALOBJ hCanvas) = 0;
32 virtual FDE_HVISUALOBJ GetNext(FDE_HVISUALOBJ hCanvas, FX_POSIT ION &pos, IFDE_VisualSet *&pVisualSet) = 0; 32 virtual FDE_HVISUALOBJ GetNext(FDE_HVISUALOBJ hCanvas, FX_POSIT ION &pos, IFDE_VisualSet *&pVisualSet) = 0;
33 virtual FDE_HVISUALOBJ GetParentCanvas(FDE_HVISUALOBJ hCanvas, IFDE_VisualSet *&pVisualSet) = 0; 33 virtual FDE_HVISUALOBJ GetParentCanvas(FDE_HVISUALOBJ hCanvas, IFDE_VisualSet *&pVisualSet) = 0;
34 }; 34 };
35 class IFDE_TextSet : public IFDE_VisualSet 35 class IFDE_TextSet : public IFDE_VisualSet
36 { 36 {
37 public: 37 public:
38 virtual FX_INT32» » » GetString(FDE_HVISUALOBJ hText, CFX_Wide String &wsText) = 0; 38 virtual int32_t» » » GetString(FDE_HVISUALOBJ hText, CFX_Wide String &wsText) = 0;
39 virtual IFX_Font* GetFont(FDE_HVISUALOBJ hText) = 0; 39 virtual IFX_Font* GetFont(FDE_HVISUALOBJ hText) = 0;
40 virtual FX_FLOAT GetFontSize(FDE_HVISUALOBJ hText) = 0; 40 virtual FX_FLOAT GetFontSize(FDE_HVISUALOBJ hText) = 0;
41 virtual FX_ARGB GetFontColor(FDE_HVISUALOBJ hTex t) = 0; 41 virtual FX_ARGB GetFontColor(FDE_HVISUALOBJ hTex t) = 0;
42 virtual FX_INT32» » » GetDisplayPos(FDE_HVISUALOBJ hText, FXTE XT_CHARPOS *pCharPos, FX_BOOL bCharCode = FALSE, CFX_WideString *pWSForms = NULL ) = 0; 42 virtual int32_t» » » GetDisplayPos(FDE_HVISUALOBJ hText, FXTE XT_CHARPOS *pCharPos, FX_BOOL bCharCode = FALSE, CFX_WideString *pWSForms = NULL ) = 0;
43 virtual FX_INT32» » » GetCharRects(FDE_HVISUALOBJ hText, CFX_R ectFArray &rtArray) = 0; 43 virtual int32_t» » » GetCharRects(FDE_HVISUALOBJ hText, CFX_R ectFArray &rtArray) = 0;
44 }; 44 };
45 class IFDE_ImageSet : public IFDE_VisualSet 45 class IFDE_ImageSet : public IFDE_VisualSet
46 { 46 {
47 public: 47 public:
48 virtual IFDE_Image* GetImage(FDE_HVISUALOBJ hImage) = 0; 48 virtual IFDE_Image* GetImage(FDE_HVISUALOBJ hImage) = 0;
49 virtual FX_POSITION GetFirstFilterPosition(F DE_HVISUALOBJ hImage) = 0; 49 virtual FX_POSITION GetFirstFilterPosition(F DE_HVISUALOBJ hImage) = 0;
50 virtual FDE_LPCIMAGEFILTERPARAMS GetNextFilter(FDE_HVISUALOBJ hImage, FX_ POSITION &pos) = 0; 50 virtual FDE_LPCIMAGEFILTERPARAMS GetNextFilter(FDE_HVISUALOBJ hImage, FX_ POSITION &pos) = 0;
51 }; 51 };
52 #define FDE_FILLMODE_Alternate 1 52 #define FDE_FILLMODE_Alternate 1
53 #define FDE_FILLMODE_Winding 2 53 #define FDE_FILLMODE_Winding 2
54 #define FDE_PATHRENDER_Stroke 1 54 #define FDE_PATHRENDER_Stroke 1
55 #define FDE_PATHRENDER_Fill 2 55 #define FDE_PATHRENDER_Fill 2
56 #define FDE_PATHRENDER_FillStroke 3 56 #define FDE_PATHRENDER_FillStroke 3
57 class IFDE_PathSet : public IFDE_VisualSet 57 class IFDE_PathSet : public IFDE_VisualSet
58 { 58 {
59 public: 59 public:
60 virtual IFDE_Path* GetPath(FDE_HVISUALOBJ hPath) = 0; 60 virtual IFDE_Path* GetPath(FDE_HVISUALOBJ hPath) = 0;
61 virtual FX_INT32» » GetFillMode(FDE_HVISUALOBJ hPath) = 0; 61 virtual int32_t» » GetFillMode(FDE_HVISUALOBJ hPath) = 0;
62 virtual FX_INT32» » GetRenderMode(FDE_HVISUALOBJ hPath) = 0; 62 virtual int32_t» » GetRenderMode(FDE_HVISUALOBJ hPath) = 0;
63 virtual IFDE_Pen* GetPen(FDE_HVISUALOBJ hPath) = 0; 63 virtual IFDE_Pen* GetPen(FDE_HVISUALOBJ hPath) = 0;
64 virtual FX_FLOAT GetPenWidth(FDE_HVISUALOBJ hPath) = 0; 64 virtual FX_FLOAT GetPenWidth(FDE_HVISUALOBJ hPath) = 0;
65 virtual IFDE_Brush* GetBrush(FDE_HVISUALOBJ hPath) = 0; 65 virtual IFDE_Brush* GetBrush(FDE_HVISUALOBJ hPath) = 0;
66 }; 66 };
67 enum FDE_WIDGETOBJ { 67 enum FDE_WIDGETOBJ {
68 FDE_WIDGETOBJ_Unknown = 0x0000, 68 FDE_WIDGETOBJ_Unknown = 0x0000,
69 FDE_WIDGETOBJ_Anchor = 0x0100, 69 FDE_WIDGETOBJ_Anchor = 0x0100,
70 FDE_WIDGETOBJ_NamedDest = 0x0200, 70 FDE_WIDGETOBJ_NamedDest = 0x0200,
71 FDE_WIDGETOBJ_HyperLink = 0x0400, 71 FDE_WIDGETOBJ_HyperLink = 0x0400,
72 }; 72 };
73 #define FDE_WIDGETPARAM_Uri 1 73 #define FDE_WIDGETPARAM_Uri 1
74 #define FDE_WIDGETPARAM_Rects 2 74 #define FDE_WIDGETPARAM_Rects 2
75 class IFDE_WidgetSet : public IFDE_VisualSet 75 class IFDE_WidgetSet : public IFDE_VisualSet
76 { 76 {
77 public: 77 public:
78 virtual FDE_WIDGETOBJ GetWidgetType(FDE_HVISUALOBJ hWidget) = 0; 78 virtual FDE_WIDGETOBJ GetWidgetType(FDE_HVISUALOBJ hWidget) = 0;
79 virtual FX_FLOAT» » GetFloat(FDE_HVISUALOBJ hWidget, FX_INT32 iParam eter, FX_FLOAT fDefVal = 0.0f) = 0; 79 virtual FX_FLOAT» » GetFloat(FDE_HVISUALOBJ hWidget, int32_t iParame ter, FX_FLOAT fDefVal = 0.0f) = 0;
80 virtual FX_INT32» » GetInteger(FDE_HVISUALOBJ hWidget, FX_INT32 iPar ameter, FX_INT32 iDefVal = 0) = 0; 80 virtual int32_t» » GetInteger(FDE_HVISUALOBJ hWidget, int32_t iPara meter, int32_t iDefVal = 0) = 0;
81 virtual FX_BOOL» » » GetString(FDE_HVISUALOBJ hWidget, FX_INT 32 iParameter, CFX_WideString &wsValue) = 0; 81 virtual FX_BOOL» » » GetString(FDE_HVISUALOBJ hWidget, int32_ t iParameter, CFX_WideString &wsValue) = 0;
82 virtual FX_BOOL» » » GetRects(FDE_HVISUALOBJ hWidget, FX_INT3 2 iParameter, CFX_RectFArray &rects) = 0; 82 virtual FX_BOOL» » » GetRects(FDE_HVISUALOBJ hWidget, int32_t iParameter, CFX_RectFArray &rects) = 0;
83 }; 83 };
84 class IFDE_VisualSetIterator 84 class IFDE_VisualSetIterator
85 { 85 {
86 public: 86 public:
87 static IFDE_VisualSetIterator* Create(); 87 static IFDE_VisualSetIterator* Create();
88 virtual void Release() = 0; 88 virtual void Release() = 0;
89 virtual FX_BOOL AttachCanvas(IFDE_Canvas Set *pCanvas) = 0; 89 virtual FX_BOOL AttachCanvas(IFDE_Canvas Set *pCanvas) = 0;
90 virtual FX_BOOL FilterObjects(FX_DWORD d wObjects = 0xFFFFFFFF) = 0; 90 virtual FX_BOOL FilterObjects(FX_DWORD d wObjects = 0xFFFFFFFF) = 0;
91 virtual void Reset() = 0; 91 virtual void Reset() = 0;
92 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet *&pVisual Set, FDE_HVISUALOBJ *phCanvasObj = NULL, IFDE_CanvasSet **ppCanvasSet = NULL) = 0; 92 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet *&pVisual Set, FDE_HVISUALOBJ *phCanvasObj = NULL, IFDE_CanvasSet **ppCanvasSet = NULL) = 0;
93 }; 93 };
94 #endif 94 #endif
OLDNEW
« no previous file with comments | « xfa/src/fdp/include/fde_pen.h ('k') | xfa/src/fdp/include/fde_rdr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698