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

Side by Side Diff: fpdfsdk/include/fpdfxfa/fpdfxfa_doc.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 | « 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 FPDFXFA_DOC_H_ 7 #ifndef FPDFXFA_DOC_H_
8 #define FPDFXFA_DOC_H_ 8 #define FPDFXFA_DOC_H_
9 9
10 class CPDFXFA_App; 10 class CPDFXFA_App;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 //dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing 56 //dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing
57 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD dwFlags); 57 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD dwFlags);
58 //dwEvent refer to XFA_WIDGETEVENT_XXX 58 //dwEvent refer to XFA_WIDGETEVENT_XXX
59 virtual void WidgetEvent(IXFA_Widget* hWidget, CXFA_WidgetAcc * pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional = NULL); 59 virtual void WidgetEvent(IXFA_Widget* hWidget, CXFA_WidgetAcc * pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional = NULL);
60 60
61 //return true if render it. 61 //return true if render it.
62 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget, CFX_Gra phics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI){return FALSE;} 62 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget, CFX_Gra phics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI){return FALSE;}
63 63
64 //host method 64 //host method
65 » virtual»FX_INT32» CountPages(IXFA_Doc* hDoc); 65 » virtual»int32_t»CountPages(IXFA_Doc* hDoc);
66 » virtual»FX_INT32» GetCurrentPage(IXFA_Doc* hDoc); 66 » virtual»int32_t»GetCurrentPage(IXFA_Doc* hDoc);
67 » virtual void» » SetCurrentPage(IXFA_Doc* hDoc, FX_INT32 iCurPage ); 67 » virtual void» » SetCurrentPage(IXFA_Doc* hDoc, int32_t iCurPage) ;
68 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc); 68 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc);
69 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL b Enabled); 69 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL b Enabled);
70 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString &wsTitle ); 70 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString &wsTitle );
71 virtual void SetTitle(IXFA_Doc* hDoc, FX_WSTR wsTitle); 71 virtual void SetTitle(IXFA_Doc* hDoc, FX_WSTR wsTitle);
72 virtual void ExportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath, F X_BOOL bXDP = TRUE); 72 virtual void ExportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath, F X_BOOL bXDP = TRUE);
73 virtual void ImportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath); 73 virtual void ImportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath);
74 virtual void GotoURL(IXFA_Doc* hDoc, FX_WSTR bsURL, FX_BOOL b Append = TRUE); 74 virtual void GotoURL(IXFA_Doc* hDoc, FX_WSTR bsURL, FX_BOOL b Append = TRUE);
75 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc); 75 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc);
76 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bE nabled); 76 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bE nabled);
77 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWid get); 77 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWid get);
78 » virtual void» » Print(IXFA_Doc* hDoc, FX_INT32 nStartPage, FX_IN T32 nEndPage, FX_DWORD dwOptions); 78 » virtual void» » Print(IXFA_Doc* hDoc, int32_t nStartPage, int32_ t nEndPage, FX_DWORD dwOptions);
79 79
80 //LayoutPseudo method 80 //LayoutPseudo method
81 » virtual FX_INT32» » » AbsPageCountInBatch(IXFA_Doc* hD oc){return 0;} 81 » virtual int32_t»» » AbsPageCountInBatch(IXFA_Doc* hDoc){retu rn 0;}
82 » virtual FX_INT32» » » AbsPageInBatch(IXFA_Doc* hDoc, I XFA_Widget* hWidget){return 0;} 82 » virtual int32_t»» » AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widg et* hWidget){return 0;}
83 » virtual FX_INT32» » » SheetCountInBatch(IXFA_Doc* hDoc ){return 0;} 83 » virtual int32_t»» » SheetCountInBatch(IXFA_Doc* hDoc){return 0;}
84 » virtual FX_INT32» » » SheetInBatch(IXFA_Doc* hDoc, IXF A_Widget* hWidget){return 0;} 84 » virtual int32_t»» » SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget * hWidget){return 0;}
85 85
86 //SignaturePseudoModel method 86 //SignaturePseudoModel method
87 //TODO: 87 //TODO:
88 » virtual FX_INT32» » » Verify(IXFA_Doc* hDoc, CXFA_Node * pSigNode, FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler, SignatureInfo &in fo*/) {return 0;} 88 » virtual int32_t»» » Verify(IXFA_Doc* hDoc, CXFA_Node* pSigNo de, FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler, SignatureInfo &info*/) {r eturn 0;}
89 virtual FX_BOOL Sign(IXFA_Doc* hDoc, CXFA_NodeLi st* pNodeList, FX_WSTR wsExpression, FX_WSTR wsXMLIdent, FX_WSTR wsValue = FX_WS TRC(L"open"), FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler = NULL, Signatur eInfo &info*/) {return 0;} 89 virtual FX_BOOL Sign(IXFA_Doc* hDoc, CXFA_NodeLi st* pNodeList, FX_WSTR wsExpression, FX_WSTR wsXMLIdent, FX_WSTR wsValue = FX_WS TRC(L"open"), FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler = NULL, Signatur eInfo &info*/) {return 0;}
90 virtual CXFA_NodeList* Enumerate(IXFA_Doc* hDoc) {return 0;} 90 virtual CXFA_NodeList* Enumerate(IXFA_Doc* hDoc) {return 0;}
91 virtual FX_BOOL Clear(IXFA_Doc* hDoc, CXFA_Node* pSigNode, FX_BOOL bCleared = TRUE) {return 0;} 91 virtual FX_BOOL Clear(IXFA_Doc* hDoc, CXFA_Node* pSigNode, FX_BOOL bCleared = TRUE) {return 0;}
92 92
93 //Get document path 93 //Get document path
94 virtual void GetURL(IXFA_Doc* hDoc, CFX_WideString &wsDocURL) ; 94 virtual void GetURL(IXFA_Doc* hDoc, CFX_WideString &wsDocURL) ;
95 virtual FX_ARGB GetHighlightColor(IXFA_Doc* hDoc); 95 virtual FX_ARGB GetHighlightColor(IXFA_Doc* hDoc);
96 virtual void AddDoRecord(IXFA_Widget* hWidget); 96 virtual void AddDoRecord(IXFA_Widget* hWidget);
97 /** 97 /**
98 *Submit data to email, http, ftp. 98 *Submit data to email, http, ftp.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 CFX_MapByteStringToPtr m_XfaGlobalProperty; 148 CFX_MapByteStringToPtr m_XfaGlobalProperty;
149 149
150 CFX_MapByteStringToPtr m_ValueMap; 150 CFX_MapByteStringToPtr m_ValueMap;
151 151
152 IFXJS_Context* m_pJSContext; 152 IFXJS_Context* m_pJSContext;
153 153
154 int m_iDocType; 154 int m_iDocType;
155 }; 155 };
156 156
157 #endif // FPDFXFA_DOC_H_ 157 #endif // 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