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

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

Issue 1155273002: Replace XFA_HWIDGET with IXFA_Widget* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@ixfa_doc
Patch Set: Rebase. 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 | « no previous file | fpdfsdk/include/fsdk_annothandler.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 27 matching lines...) Expand all
38 void ReleaseSDKDoc(); 38 void ReleaseSDKDoc();
39 39
40 void FXRect2PDFRect(const CFX_RectF& fxRectF, CPDF_Rect& pdfRect); 40 void FXRect2PDFRect(const CFX_RectF& fxRectF, CPDF_Rect& pdfRect);
41 41
42 public: 42 public:
43 virtual void SetChangeMark(IXFA_Doc* hDoc); 43 virtual void SetChangeMark(IXFA_Doc* hDoc);
44 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc); 44 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc);
45 //used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. 45 //used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros.
46 virtual void InvalidateRect(IXFA_PageView* pPageView, const C FX_RectF& rt, FX_DWORD dwFlags = 0); 46 virtual void InvalidateRect(IXFA_PageView* pPageView, const C FX_RectF& rt, FX_DWORD dwFlags = 0);
47 //used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. 47 //used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros.
48 » virtual void» » InvalidateRect(XFA_HWIDGET hWidget, FX_DWORD dwF lags = 0); 48 » virtual void» » InvalidateRect(IXFA_Widget* hWidget, FX_DWORD dw Flags = 0);
49 //show or hide caret 49 //show or hide caret
50 » virtual void» » DisplayCaret(XFA_HWIDGET hWidget, FX_BOOL bVisib le, const CFX_RectF* pRtAnchor); 50 » virtual void» » DisplayCaret(IXFA_Widget* hWidget, FX_BOOL bVisi ble, const CFX_RectF* pRtAnchor);
51 //dwPos: (0:bottom 1:top) 51 //dwPos: (0:bottom 1:top)
52 » virtual FX_BOOL»» GetPopupPos(XFA_HWIDGET hWidget, FX_FLOAT fMinPo pup, FX_FLOAT fMaxPopup, 52 » virtual FX_BOOL»» GetPopupPos(IXFA_Widget* hWidget, FX_FLOAT fMinP opup, FX_FLOAT fMaxPopup,
53 const CFX_RectF &rtAncho r, CFX_RectF &rtPopup); 53 const CFX_RectF &rtAncho r, CFX_RectF &rtPopup);
54 » virtual FX_BOOL»» PopupMenu(XFA_HWIDGET hWidget, CFX_PointF ptPopu p, const CFX_RectF* pRectExclude = NULL); 54 » virtual FX_BOOL»» PopupMenu(IXFA_Widget* hWidget, CFX_PointF ptPop up, const CFX_RectF* pRectExclude = NULL);
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(XFA_HWIDGET 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(XFA_HWIDGET hWidget, CFX_Grap hics* 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 FX_INT32 CountPages(IXFA_Doc* hDoc);
66 virtual FX_INT32 GetCurrentPage(IXFA_Doc* hDoc); 66 virtual FX_INT32 GetCurrentPage(IXFA_Doc* hDoc);
67 virtual void SetCurrentPage(IXFA_Doc* hDoc, FX_INT32 iCurPage ); 67 virtual void SetCurrentPage(IXFA_Doc* hDoc, FX_INT32 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, XFA_HWIDGET hWidg et); 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, FX_INT32 nStartPage, FX_IN T32 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 FX_INT32 AbsPageCountInBatch(IXFA_Doc* hD oc){return 0;}
82 » virtual FX_INT32» » » AbsPageInBatch(IXFA_Doc* hDoc, X FA_HWIDGET hWidget){return 0;} 82 » virtual FX_INT32» » » AbsPageInBatch(IXFA_Doc* hDoc, I XFA_Widget* hWidget){return 0;}
83 virtual FX_INT32 SheetCountInBatch(IXFA_Doc* hDoc ){return 0;} 83 virtual FX_INT32 SheetCountInBatch(IXFA_Doc* hDoc ){return 0;}
84 » virtual FX_INT32» » » SheetInBatch(IXFA_Doc* hDoc, XFA _HWIDGET hWidget){return 0;} 84 » virtual FX_INT32» » » SheetInBatch(IXFA_Doc* hDoc, IXF A_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 FX_INT32 Verify(IXFA_Doc* hDoc, CXFA_Node * pSigNode, FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler, SignatureInfo &in fo*/) {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;} 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(XFA_HWIDGET hWidget); 96 » virtual void» » AddDoRecord(IXFA_Widget* hWidget);
97 /** 97 /**
98 *Submit data to email, http, ftp. 98 *Submit data to email, http, ftp.
99 * @param[in] hDoc The document handler. 99 * @param[in] hDoc The document handler.
100 * @param[in] eFormat Determines the format in which the data will be su bmitted. XFA_ATTRIBUTEENUM_Xdp, XFA_ATTRIBUTEENUM_Xml... 100 * @param[in] eFormat Determines the format in which the data will be su bmitted. XFA_ATTRIBUTEENUM_Xdp, XFA_ATTRIBUTEENUM_Xml...
101 * @param[in] wsTarget The URL to which the data will be submitted. 101 * @param[in] wsTarget The URL to which the data will be submitted.
102 * @param[in] eEncoding The encoding of text content. 102 * @param[in] eEncoding The encoding of text content.
103 * @param[in] pXDPContent Controls what subset of the data is submitted, used only when the format property is xdp. 103 * @param[in] pXDPContent Controls what subset of the data is submitted, used only when the format property is xdp.
104 * @param[in] bEmbedPDF, specifies whether PDF is embedded in the submit ted content or not. 104 * @param[in] bEmbedPDF, specifies whether PDF is embedded in the submit ted content or not.
105 */ 105 */
106 virtual FX_BOOL SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit); 106 virtual FX_BOOL SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit);
(...skipping 41 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 | « no previous file | fpdfsdk/include/fsdk_annothandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698