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

Side by Side Diff: fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h

Issue 1835693002: Remove FX_DWORD from fpdfsdk/ and testing/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 | « fpdfsdk/include/fpdfxfa/fpdfxfa_app.h ('k') | fpdfsdk/include/fpdfxfa/fpdfxfa_util.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 FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv); 43 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv);
44 44
45 void FXRect2PDFRect(const CFX_RectF& fxRectF, CFX_FloatRect& pdfRect); 45 void FXRect2PDFRect(const CFX_RectF& fxRectF, CFX_FloatRect& pdfRect);
46 46
47 virtual void SetChangeMark(IXFA_Doc* hDoc); 47 virtual void SetChangeMark(IXFA_Doc* hDoc);
48 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc); 48 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc);
49 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. 49 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros.
50 virtual void InvalidateRect(IXFA_PageView* pPageView, 50 virtual void InvalidateRect(IXFA_PageView* pPageView,
51 const CFX_RectF& rt, 51 const CFX_RectF& rt,
52 FX_DWORD dwFlags = 0); 52 uint32_t dwFlags = 0);
53 // used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. 53 // used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros.
54 virtual void InvalidateRect(IXFA_Widget* hWidget, FX_DWORD dwFlags = 0); 54 virtual void InvalidateRect(IXFA_Widget* hWidget, uint32_t dwFlags = 0);
55 // show or hide caret 55 // show or hide caret
56 virtual void DisplayCaret(IXFA_Widget* hWidget, 56 virtual void DisplayCaret(IXFA_Widget* hWidget,
57 FX_BOOL bVisible, 57 FX_BOOL bVisible,
58 const CFX_RectF* pRtAnchor); 58 const CFX_RectF* pRtAnchor);
59 // dwPos: (0:bottom 1:top) 59 // dwPos: (0:bottom 1:top)
60 virtual FX_BOOL GetPopupPos(IXFA_Widget* hWidget, 60 virtual FX_BOOL GetPopupPos(IXFA_Widget* hWidget,
61 FX_FLOAT fMinPopup, 61 FX_FLOAT fMinPopup,
62 FX_FLOAT fMaxPopup, 62 FX_FLOAT fMaxPopup,
63 const CFX_RectF& rtAnchor, 63 const CFX_RectF& rtAnchor,
64 CFX_RectF& rtPopup); 64 CFX_RectF& rtPopup);
65 virtual FX_BOOL PopupMenu(IXFA_Widget* hWidget, 65 virtual FX_BOOL PopupMenu(IXFA_Widget* hWidget,
66 CFX_PointF ptPopup, 66 CFX_PointF ptPopup,
67 const CFX_RectF* pRectExclude = NULL); 67 const CFX_RectF* pRectExclude = NULL);
68 68
69 // dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing 69 // dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing
70 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD dwFlags); 70 virtual void PageViewEvent(IXFA_PageView* pPageView, uint32_t dwFlags);
71 // dwEvent refer to XFA_WIDGETEVENT_XXX 71 // dwEvent refer to XFA_WIDGETEVENT_XXX
72 virtual void WidgetEvent(IXFA_Widget* hWidget, 72 virtual void WidgetEvent(IXFA_Widget* hWidget,
73 CXFA_WidgetAcc* pWidgetData, 73 CXFA_WidgetAcc* pWidgetData,
74 FX_DWORD dwEvent, 74 uint32_t dwEvent,
75 void* pParam = NULL, 75 void* pParam = NULL,
76 void* pAdditional = NULL); 76 void* pAdditional = NULL);
77 77
78 // return true if render it. 78 // return true if render it.
79 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget, 79 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget,
80 CFX_Graphics* pGS, 80 CFX_Graphics* pGS,
81 CFX_Matrix* pMatrix, 81 CFX_Matrix* pMatrix,
82 const CFX_RectF& rtUI) { 82 const CFX_RectF& rtUI) {
83 return FALSE; 83 return FALSE;
84 } 84 }
(...skipping 12 matching lines...) Expand all
97 virtual void ImportData(IXFA_Doc* hDoc, const CFX_WideStringC& wsFilePath); 97 virtual void ImportData(IXFA_Doc* hDoc, const CFX_WideStringC& wsFilePath);
98 virtual void GotoURL(IXFA_Doc* hDoc, 98 virtual void GotoURL(IXFA_Doc* hDoc,
99 const CFX_WideStringC& bsURL, 99 const CFX_WideStringC& bsURL,
100 FX_BOOL bAppend = TRUE); 100 FX_BOOL bAppend = TRUE);
101 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc); 101 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc);
102 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled); 102 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled);
103 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWidget); 103 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWidget);
104 virtual void Print(IXFA_Doc* hDoc, 104 virtual void Print(IXFA_Doc* hDoc,
105 int32_t nStartPage, 105 int32_t nStartPage,
106 int32_t nEndPage, 106 int32_t nEndPage,
107 FX_DWORD dwOptions); 107 uint32_t dwOptions);
108 108
109 // LayoutPseudo method 109 // LayoutPseudo method
110 virtual int32_t AbsPageCountInBatch(IXFA_Doc* hDoc) { return 0; } 110 virtual int32_t AbsPageCountInBatch(IXFA_Doc* hDoc) { return 0; }
111 virtual int32_t AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) { 111 virtual int32_t AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) {
112 return 0; 112 return 0;
113 } 113 }
114 virtual int32_t SheetCountInBatch(IXFA_Doc* hDoc) { return 0; } 114 virtual int32_t SheetCountInBatch(IXFA_Doc* hDoc) { return 0; }
115 virtual int32_t SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) { 115 virtual int32_t SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) {
116 return 0; 116 return 0;
117 } 117 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 IXFA_Doc* m_pXFADoc; 226 IXFA_Doc* m_pXFADoc;
227 IXFA_DocView* m_pXFADocView; 227 IXFA_DocView* m_pXFADocView;
228 CPDFXFA_App* m_pApp; 228 CPDFXFA_App* m_pApp;
229 IJS_Context* m_pJSContext; 229 IJS_Context* m_pJSContext;
230 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; 230 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList;
231 LoadStatus m_nLoadStatus; 231 LoadStatus m_nLoadStatus;
232 int m_nPageCount; 232 int m_nPageCount;
233 }; 233 };
234 234
235 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ 235 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fpdfxfa/fpdfxfa_app.h ('k') | fpdfsdk/include/fpdfxfa/fpdfxfa_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698