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

Side by Side Diff: xfa/include/fxfa/fxfa.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/include/fxbarcode/BC_BarCode.h ('k') | xfa/include/fxfa/fxfa_basic.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 FXFA_H_ 7 #ifndef FXFA_H_
8 #define FXFA_H_ 8 #define FXFA_H_
9 9
10 class IFDE_XMLElement; 10 class IFDE_XMLElement;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 (W arning)2 (Question)3 (Status)4 (Default) 210 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 (W arning)2 (Question)3 (Status)4 (Default)
211 */ 211 */
212 virtual void Beep(FX_DWORD dwType) = 0; 212 virtual void Beep(FX_DWORD dwType) = 0;
213 213
214 /** 214 /**
215 * Displays a message box. 215 * Displays a message box.
216 * @param[in] dwIconType Icon type, refer to XFA_MBICON. 216 * @param[in] dwIconType Icon type, refer to XFA_MBICON.
217 * @param[in] dwButtonType Button type, refer to XFA_MESSAGEBUTTON. 217 * @param[in] dwButtonType Button type, refer to XFA_MESSAGEBUTTON.
218 * @return A valid integer representing the value of the button pressed by t he user, refer to XFA_ID. 218 * @return A valid integer representing the value of the button pressed by t he user, refer to XFA_ID.
219 */ 219 */
220 virtual FX_INT32 MsgBox(FX_WSTR wsMessage, FX_WSTR wsTitle = FX_WSTRC(L""), 220 virtual int32_t MsgBox(FX_WSTR wsMessage, FX_WSTR wsTitle = FX_WSTRC(L""),
221 FX_DWORD dwIconType = 0, FX_DWORD dwButtonType = 0) = 0; 221 FX_DWORD dwIconType = 0, FX_DWORD dwButtonType = 0) = 0;
222 222
223 /** 223 /**
224 * Get a response from the user. 224 * Get a response from the user.
225 * @param[in] bMark - Mask the user input with * (asterisks) when true, 225 * @param[in] bMark - Mask the user input with * (asterisks) when true,
226 */ 226 */
227 virtual void Response(CFX_WideString &wsAnswer, FX_WSTR wsQuestion, FX_WSTR wsTitle = FX_WSTRC(L""), 227 virtual void Response(CFX_WideString &wsAnswer, FX_WSTR wsQuestion, FX_WSTR wsTitle = FX_WSTRC(L""),
228 FX_WSTR wsDefaultAnswer = FX_WSTRC(L""), FX_BOOL bMark = TRUE) = 0; 228 FX_WSTR wsDefaultAnswer = FX_WSTRC(L""), FX_BOOL bMark = TRUE) = 0;
229 229
230 virtual FX_INT32 GetDocumentCountInBatch() = 0; 230 virtual int32_t GetDocumentCountInBatch() = 0;
231 virtual FX_INT32 GetCurDocumentInBatch() = 0; 231 virtual int32_t GetCurDocumentInBatch() = 0;
232 232
233 /** 233 /**
234 * Download something from somewhere. 234 * Download something from somewhere.
235 * @param[in] wsURL - http, ftp, such as "http://www.w3.org/TR/REC-xml-names /". 235 * @param[in] wsURL - http, ftp, such as "http://www.w3.org/TR/REC-xml-names /".
236 */ 236 */
237 virtual IFX_FileRead* DownloadURL(FX_WSTR wsURL) = 0; 237 virtual IFX_FileRead* DownloadURL(FX_WSTR wsURL) = 0;
238 238
239 /** 239 /**
240 * POST data to the given url. 240 * POST data to the given url.
241 * @param[in] wsURL the URL being uploaded. 241 * @param[in] wsURL the URL being uploaded.
(...skipping 10 matching lines...) Expand all
252 252
253 /** 253 /**
254 * PUT data to the given url. 254 * PUT data to the given url.
255 * @param[in] wsURL the URL being uploaded. 255 * @param[in] wsURL the URL being uploaded.
256 * @param[in] wsData the data being uploaded. 256 * @param[in] wsData the data being uploaded.
257 * @param[in] wsEncode the encode of data including UTF-8, UTF-16, ISO8 859-1, any recognized [IANA]character encoding 257 * @param[in] wsEncode the encode of data including UTF-8, UTF-16, ISO8 859-1, any recognized [IANA]character encoding
258 * @return TRUE Server permitted the post request, FALSE otherwise. 258 * @return TRUE Server permitted the post request, FALSE otherwise.
259 */ 259 */
260 virtual FX_BOOL PutRequestURL(FX_WSTR wsURL, FX_WSTR wsData, FX_WSTR wsE ncode) = 0; 260 virtual FX_BOOL PutRequestURL(FX_WSTR wsURL, FX_WSTR wsData, FX_WSTR wsE ncode) = 0;
261 261
262 virtual void LoadString(FX_INT32 iStringID, CFX_WideString &wsString) = 0; 262 virtual void LoadString(int32_t iStringID, CFX_WideString &wsString) = 0;
263 virtual FX_BOOL ShowFileDialog(FX_WSTR wsTitle, FX_WSTR wsFilter, CFX_WideSt ringArray &wsPathArr, FX_BOOL bOpen = TRUE) = 0; 263 virtual FX_BOOL ShowFileDialog(FX_WSTR wsTitle, FX_WSTR wsFilter, CFX_WideSt ringArray &wsPathArr, FX_BOOL bOpen = TRUE) = 0;
264 virtual IFWL_AdapterTimerMgr* GetTimerMgr() = 0; 264 virtual IFWL_AdapterTimerMgr* GetTimerMgr() = 0;
265 }; 265 };
266 class IXFA_FontMgr 266 class IXFA_FontMgr
267 { 267 {
268 public: 268 public:
269 static IXFA_FontMgr* CreateDefault(); 269 static IXFA_FontMgr* CreateDefault();
270 virtual ~IXFA_FontMgr(); 270 virtual ~IXFA_FontMgr();
271 271
272 virtual IFX_Font* GetFont(IXFA_Doc* hDoc, FX_WSTR wsFontFamily, FX_DWORD d wFontStyles, FX_WORD wCodePage = 0xFFFF) = 0; 272 virtual IFX_Font* GetFont(IXFA_Doc* hDoc, FX_WSTR wsFontFamily, FX_DWORD d wFontStyles, FX_WORD wCodePage = 0xFFFF) = 0;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 virtual void DisplayCaret(IXFA_Widget* hWidget, FX_BOOL bVisi ble, const CFX_RectF* pRtAnchor) = 0; 335 virtual void DisplayCaret(IXFA_Widget* hWidget, FX_BOOL bVisi ble, const CFX_RectF* pRtAnchor) = 0;
336 virtual FX_BOOL GetPopupPos(IXFA_Widget* hWidget, FX_FLOAT fMinP opup, FX_FLOAT fMaxPopup, 336 virtual FX_BOOL GetPopupPos(IXFA_Widget* hWidget, FX_FLOAT fMinP opup, FX_FLOAT fMaxPopup,
337 const CFX_RectF &rtAnchor, CFX_RectF &rtPopu p) = 0; 337 const CFX_RectF &rtAnchor, CFX_RectF &rtPopu p) = 0;
338 virtual FX_BOOL PopupMenu(IXFA_Widget* hWidget, CFX_PointF ptPop up, const CFX_RectF* pRectExclude = NULL) = 0; 338 virtual FX_BOOL PopupMenu(IXFA_Widget* hWidget, CFX_PointF ptPop up, const CFX_RectF* pRectExclude = NULL) = 0;
339 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD dwFlags) = 0; 339 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD dwFlags) = 0;
340 virtual void WidgetEvent(IXFA_Widget* hWidget, CXFA_WidgetAcc * pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional = NULL) = 0; 340 virtual void WidgetEvent(IXFA_Widget* hWidget, CXFA_WidgetAcc * pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional = NULL) = 0;
341 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget, CFX_Gra phics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI) 341 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget, CFX_Gra phics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI)
342 { 342 {
343 return FALSE; 343 return FALSE;
344 } 344 }
345 virtual» FX_INT32» CountPages(IXFA_Doc* hDoc) = 0; 345 virtual» int32_t»CountPages(IXFA_Doc* hDoc) = 0;
346 virtual» FX_INT32» GetCurrentPage(IXFA_Doc* hDoc) = 0; 346 virtual» int32_t»GetCurrentPage(IXFA_Doc* hDoc) = 0;
347 virtual void» » SetCurrentPage(IXFA_Doc* hDoc, FX_INT32 iCurPage ) = 0; 347 virtual void» » SetCurrentPage(IXFA_Doc* hDoc, int32_t iCurPage) = 0;
348 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc) = 0; 348 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc) = 0;
349 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL b Enabled) = 0; 349 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL b Enabled) = 0;
350 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString &wsTitle ) = 0; 350 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString &wsTitle ) = 0;
351 virtual void SetTitle(IXFA_Doc* hDoc, FX_WSTR wsTitle) = 0; 351 virtual void SetTitle(IXFA_Doc* hDoc, FX_WSTR wsTitle) = 0;
352 virtual void ExportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath, F X_BOOL bXDP = TRUE) = 0; 352 virtual void ExportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath, F X_BOOL bXDP = TRUE) = 0;
353 virtual void ImportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath) = 0; 353 virtual void ImportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath) = 0;
354 virtual void GotoURL(IXFA_Doc* hDoc, FX_WSTR bsURL, FX_BOOL b Append = TRUE) = 0; 354 virtual void GotoURL(IXFA_Doc* hDoc, FX_WSTR bsURL, FX_BOOL b Append = TRUE) = 0;
355 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc) = 0; 355 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc) = 0;
356 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bE nabled) = 0; 356 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bE nabled) = 0;
357 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWid get) = 0; 357 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWid get) = 0;
358 virtual void» » Print(IXFA_Doc* hDoc, FX_INT32 nStartPage, FX_IN T32 nEndPage, FX_DWORD dwOptions) = 0; 358 virtual void» » Print(IXFA_Doc* hDoc, int32_t nStartPage, int32_ t nEndPage, FX_DWORD dwOptions) = 0;
359 virtual FX_INT32» » » AbsPageCountInBatch(IXFA_Doc* hDoc) = 0; 359 virtual int32_t» » » AbsPageCountInBatch(IXFA_Doc* hDoc) = 0;
360 virtual FX_INT32» » » AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widg et* hWidget) = 0; 360 virtual int32_t» » » AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widg et* hWidget) = 0;
361 virtual FX_INT32» » » SheetCountInBatch(IXFA_Doc* hDoc) = 0; 361 virtual int32_t» » » SheetCountInBatch(IXFA_Doc* hDoc) = 0;
362 virtual FX_INT32» » » SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget * hWidget) = 0; 362 virtual int32_t» » » SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget * hWidget) = 0;
363 virtual FX_INT32» » » Verify(IXFA_Doc* hDoc, CXFA_Node* pSigNo de, FX_BOOL bUsed = TRUE) 363 virtual int32_t» » » Verify(IXFA_Doc* hDoc, CXFA_Node* pSigNo de, FX_BOOL bUsed = TRUE)
364 { 364 {
365 return 0; 365 return 0;
366 } 366 }
367 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) 367 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)
368 { 368 {
369 return 0; 369 return 0;
370 } 370 }
371 virtual CXFA_NodeList* Enumerate(IXFA_Doc* hDoc) 371 virtual CXFA_NodeList* Enumerate(IXFA_Doc* hDoc)
372 { 372 {
373 return 0; 373 return 0;
(...skipping 28 matching lines...) Expand all
402 #define XFA_PARSESTATUS_Done 100 402 #define XFA_PARSESTATUS_Done 100
403 class IXFA_DocHandler 403 class IXFA_DocHandler
404 { 404 {
405 public: 405 public:
406 virtual ~IXFA_DocHandler() { } 406 virtual ~IXFA_DocHandler() { }
407 407
408 virtual void ReleaseDoc(IXFA_Doc* hDoc) = 0; 408 virtual void ReleaseDoc(IXFA_Doc* hDoc) = 0;
409 virtual IXFA_DocProvider* GetDocProvider(IXFA_Doc* hDoc) = 0; 409 virtual IXFA_DocProvider* GetDocProvider(IXFA_Doc* hDoc) = 0;
410 410
411 virtual FX_DWORD GetDocType(IXFA_Doc* hDoc) = 0; 411 virtual FX_DWORD GetDocType(IXFA_Doc* hDoc) = 0;
412 virtual» FX_INT32» » » StartLoad(IXFA_Doc* hDoc) = 0; 412 virtual» int32_t»» » StartLoad(IXFA_Doc* hDoc) = 0;
413 virtual FX_INT32» » » DoLoad(IXFA_Doc* hDoc, IFX_Pause *pPause = NULL) = 0; 413 virtual int32_t» » » DoLoad(IXFA_Doc* hDoc, IFX_Pause *pPause = NULL) = 0;
414 virtual void StopLoad(IXFA_Doc* hDoc) = 0; 414 virtual void StopLoad(IXFA_Doc* hDoc) = 0;
415 415
416 virtual IXFA_DocView* CreateDocView(IXFA_Doc* hDoc, FX_DWORD d wView = 0) = 0; 416 virtual IXFA_DocView* CreateDocView(IXFA_Doc* hDoc, FX_DWORD d wView = 0) = 0;
417 417
418 virtual FX_INT32» » » CountPackages(IXFA_Doc* hDoc) = 0; 418 virtual int32_t» » » CountPackages(IXFA_Doc* hDoc) = 0;
419 virtual» void» » » » GetPackageName(IXFA_Doc* hDoc, F X_INT32 iPackage, CFX_WideStringC &wsPackage) = 0; 419 virtual» void» » » » GetPackageName(IXFA_Doc* hDoc, i nt32_t iPackage, CFX_WideStringC &wsPackage) = 0;
420 420
421 virtual FX_BOOL SavePackage(IXFA_Doc* hDoc, FX_W STR wsPackage, IFX_FileWrite* pFile, IXFA_ChecksumContext *pCSContext = NULL) = 0; 421 virtual FX_BOOL SavePackage(IXFA_Doc* hDoc, FX_W STR wsPackage, IFX_FileWrite* pFile, IXFA_ChecksumContext *pCSContext = NULL) = 0;
422 virtual FX_BOOL CloseDoc(IXFA_Doc* hDoc) = 0; 422 virtual FX_BOOL CloseDoc(IXFA_Doc* hDoc) = 0;
423 423
424 virtual FX_BOOL ImportData(IXFA_Doc* hDoc, IFX_F ileRead* pStream, FX_BOOL bXDP = TRUE) = 0; 424 virtual FX_BOOL ImportData(IXFA_Doc* hDoc, IFX_F ileRead* pStream, FX_BOOL bXDP = TRUE) = 0;
425 virtual void SetJSERuntime(IXFA_Doc* hDoc, FX JSE_HRUNTIME hRuntime) = 0; 425 virtual void SetJSERuntime(IXFA_Doc* hDoc, FX JSE_HRUNTIME hRuntime) = 0;
426 virtual FXJSE_HVALUE GetXFAScriptObject(IXFA_Doc* hDoc) = 0; 426 virtual FXJSE_HVALUE GetXFAScriptObject(IXFA_Doc* hDoc) = 0;
427 virtual XFA_ATTRIBUTEENUM GetRestoreState(IXFA_Doc* hDoc) = 0; 427 virtual XFA_ATTRIBUTEENUM GetRestoreState(IXFA_Doc* hDoc) = 0;
428 virtual FX_BOOL RunDocScript(IXFA_Doc* hDoc, XFA _SCRIPTTYPE eScriptType, FX_WSTR wsScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hThisObject) = 0; 428 virtual FX_BOOL RunDocScript(IXFA_Doc* hDoc, XFA _SCRIPTTYPE eScriptType, FX_WSTR wsScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hThisObject) = 0;
429 }; 429 };
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 m_bShift = FALSE; 491 m_bShift = FALSE;
492 m_wsSoapFaultCode.Empty(); 492 m_wsSoapFaultCode.Empty();
493 m_wsSoapFaultString.Empty(); 493 m_wsSoapFaultString.Empty();
494 m_bIsFormReady = FALSE; 494 m_bIsFormReady = FALSE;
495 m_iValidateActivities = XFA_VALIDATE_preSubmit; 495 m_iValidateActivities = XFA_VALIDATE_preSubmit;
496 } 496 }
497 CXFA_WidgetAcc* m_pTarget; 497 CXFA_WidgetAcc* m_pTarget;
498 XFA_EVENTTYPE m_eType; 498 XFA_EVENTTYPE m_eType;
499 CFX_WideString m_wsResult; 499 CFX_WideString m_wsResult;
500 FX_BOOL m_bCancelAction; 500 FX_BOOL m_bCancelAction;
501 FX_INT32» » m_iCommitKey; 501 int32_t» » m_iCommitKey;
502 FX_BOOL m_bKeyDown; 502 FX_BOOL m_bKeyDown;
503 FX_BOOL m_bModifier; 503 FX_BOOL m_bModifier;
504 FX_BOOL m_bReenter; 504 FX_BOOL m_bReenter;
505 FX_INT32» » m_iSelEnd; 505 int32_t» » m_iSelEnd;
506 FX_INT32» » m_iSelStart; 506 int32_t» » m_iSelStart;
507 FX_BOOL m_bShift; 507 FX_BOOL m_bShift;
508 CFX_WideString m_wsChange; 508 CFX_WideString m_wsChange;
509 CFX_WideString m_wsFullText; 509 CFX_WideString m_wsFullText;
510 CFX_WideString m_wsNewContentType; 510 CFX_WideString m_wsNewContentType;
511 CFX_WideString m_wsNewText; 511 CFX_WideString m_wsNewText;
512 CFX_WideString m_wsPrevContentType; 512 CFX_WideString m_wsPrevContentType;
513 CFX_WideString m_wsPrevText; 513 CFX_WideString m_wsPrevText;
514 CFX_WideString m_wsSoapFaultCode; 514 CFX_WideString m_wsSoapFaultCode;
515 CFX_WideString m_wsSoapFaultString; 515 CFX_WideString m_wsSoapFaultString;
516 FX_BOOL m_bIsFormReady; 516 FX_BOOL m_bIsFormReady;
517 FX_INT32» » m_iValidateActivities; 517 int32_t» » m_iValidateActivities;
518 }; 518 };
519 #define XFA_EVENTERROR_Sucess 1 519 #define XFA_EVENTERROR_Sucess 1
520 #define XFA_EVENTERROR_Error -1 520 #define XFA_EVENTERROR_Error -1
521 #define XFA_EVENTERROR_NotExist 0 521 #define XFA_EVENTERROR_NotExist 0
522 #define XFA_EVENTERROR_Disabled 2 522 #define XFA_EVENTERROR_Disabled 2
523 enum XFA_WIDGETORDER { 523 enum XFA_WIDGETORDER {
524 XFA_WIDGETORDER_PreOrder, 524 XFA_WIDGETORDER_PreOrder,
525 }; 525 };
526 class IXFA_DocView 526 class IXFA_DocView
527 { 527 {
528 public: 528 public:
529 virtual ~IXFA_DocView() { } 529 virtual ~IXFA_DocView() { }
530 530
531 virtual IXFA_Doc* GetDoc() = 0; 531 virtual IXFA_Doc* GetDoc() = 0;
532 virtual» FX_INT32» » » StartLayout(FX_INT32 iStartPage = 0) = 0; 532 virtual» int32_t»» » StartLayout(int32_t iStartPage = 0) = 0;
533 virtual FX_INT32» » » DoLayout(IFX_Pause *pPause = NULL) = 0; 533 virtual int32_t» » » DoLayout(IFX_Pause *pPause = NULL) = 0;
534 virtual void StopLayout() = 0; 534 virtual void StopLayout() = 0;
535 535
536 virtual FX_INT32» » » GetLayoutStatus() = 0; 536 virtual int32_t» » » GetLayoutStatus() = 0;
537 virtual void UpdateDocView() = 0; 537 virtual void UpdateDocView() = 0;
538 virtual FX_INT32» » » CountPageViews() = 0; 538 virtual int32_t» » » CountPageViews() = 0;
539 virtual IXFA_PageView*» » GetPageView(FX_INT32 nIndex) = 0; 539 virtual IXFA_PageView*» » GetPageView(int32_t nIndex) = 0;
540 virtual IXFA_Widget* GetWidgetByName(FX_WSTR wsName) = 0; 540 virtual IXFA_Widget* GetWidgetByName(FX_WSTR wsName) = 0;
541 virtual CXFA_WidgetAcc* GetWidgetAccByName(FX_WSTR wsName) = 0; 541 virtual CXFA_WidgetAcc* GetWidgetAccByName(FX_WSTR wsName) = 0;
542 virtual void ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc = NULL) = 0; 542 virtual void ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc = NULL) = 0;
543 virtual FX_INT32» » » ProcessWidgetEvent(CXFA_EventParam* pPar am, CXFA_WidgetAcc* pWidgetAcc = NULL) = 0; 543 virtual int32_t» » » ProcessWidgetEvent(CXFA_EventParam* pPar am, CXFA_WidgetAcc* pWidgetAcc = NULL) = 0;
544 virtual IXFA_WidgetHandler* GetWidgetHandler() = 0; 544 virtual IXFA_WidgetHandler* GetWidgetHandler() = 0;
545 virtual IXFA_WidgetIterator* CreateWidgetIterator() = 0; 545 virtual IXFA_WidgetIterator* CreateWidgetIterator() = 0;
546 virtual IXFA_WidgetAccIterator* CreateWidgetAccIterator(XFA_WIDGETORDER eOrd er = XFA_WIDGETORDER_PreOrder) = 0; 546 virtual IXFA_WidgetAccIterator* CreateWidgetAccIterator(XFA_WIDGETORDER eOrd er = XFA_WIDGETORDER_PreOrder) = 0;
547 virtual IXFA_Widget* GetFocusWidget() = 0; 547 virtual IXFA_Widget* GetFocusWidget() = 0;
548 virtual void KillFocus() = 0; 548 virtual void KillFocus() = 0;
549 virtual FX_BOOL SetFocus(IXFA_Widget* hWidget) = 0; 549 virtual FX_BOOL SetFocus(IXFA_Widget* hWidget) = 0;
550 }; 550 };
551 #define XFA_TRAVERSEWAY_Tranvalse 0x0001 551 #define XFA_TRAVERSEWAY_Tranvalse 0x0001
552 #define XFA_TRAVERSEWAY_Form 0x0002 552 #define XFA_TRAVERSEWAY_Form 0x0002
553 #define XFA_WIDGETFILTER_Visible 0x0001 553 #define XFA_WIDGETFILTER_Visible 0x0001
554 #define XFA_WIDGETFILTER_Viewable 0x0010 554 #define XFA_WIDGETFILTER_Viewable 0x0010
555 #define XFA_WIDGETFILTER_Printable 0x0020 555 #define XFA_WIDGETFILTER_Printable 0x0020
556 #define XFA_WIDGETFILTER_Field 0x0100 556 #define XFA_WIDGETFILTER_Field 0x0100
557 #define XFA_WIDGETFILTER_AllType 0x0F00 557 #define XFA_WIDGETFILTER_AllType 0x0F00
558 class IXFA_PageView 558 class IXFA_PageView
559 { 559 {
560 public: 560 public:
561 virtual ~IXFA_PageView() { } 561 virtual ~IXFA_PageView() { }
562 562
563 virtual IXFA_DocView* GetDocView() = 0; 563 virtual IXFA_DocView* GetDocView() = 0;
564 virtual FX_INT32» » GetPageViewIndex() = 0; 564 virtual int32_t» » GetPageViewIndex() = 0;
565 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0; 565 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0;
566 566
567 virtual void» » » GetDisplayMatrix(CFX_Matrix &mt, const C FX_Rect &rtDisp, FX_INT32 iRotate) = 0; 567 virtual void» » » GetDisplayMatrix(CFX_Matrix &mt, const C FX_Rect &rtDisp, int32_t iRotate) = 0;
568 568
569 virtual FX_INT32» » LoadPageView(IFX_Pause *pPause = NULL) = 0; 569 virtual int32_t» » LoadPageView(IFX_Pause *pPause = NULL) = 0;
570 virtual void UnloadPageView() = 0; 570 virtual void UnloadPageView() = 0;
571 virtual IXFA_Widget* GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; 571 virtual IXFA_Widget* GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0;
572 virtual IXFA_WidgetIterator* CreateWidgetIterator(FX_DWORD dwTraverseWay = X FA_TRAVERSEWAY_Form, FX_DWORD dwWidgetFilter = XFA_WIDGETFILTER_Visible | XFA_WI DGETFILTER_Viewable | XFA_WIDGETFILTER_AllType) = 0; 572 virtual IXFA_WidgetIterator* CreateWidgetIterator(FX_DWORD dwTraverseWay = X FA_TRAVERSEWAY_Form, FX_DWORD dwWidgetFilter = XFA_WIDGETFILTER_Visible | XFA_WI DGETFILTER_Viewable | XFA_WIDGETFILTER_AllType) = 0;
573 }; 573 };
574 class CXFA_RenderOptions 574 class CXFA_RenderOptions
575 { 575 {
576 public: 576 public:
577 CXFA_RenderOptions() 577 CXFA_RenderOptions()
578 : m_bPrint(FALSE) 578 : m_bPrint(FALSE)
579 , m_bHighlight(TRUE) 579 , m_bHighlight(TRUE)
580 { 580 {
581 } 581 }
582 FX_BOOL m_bPrint; 582 FX_BOOL m_bPrint;
583 FX_BOOL m_bHighlight; 583 FX_BOOL m_bHighlight;
584 }; 584 };
585 #define XFA_RENDERSTATUS_Ready 1 585 #define XFA_RENDERSTATUS_Ready 1
586 #define XFA_RENDERSTATUS_ToBeContinued 2 586 #define XFA_RENDERSTATUS_ToBeContinued 2
587 #define XFA_RENDERSTATUS_Done 3 587 #define XFA_RENDERSTATUS_Done 3
588 #define XFA_RENDERSTATUS_Failed -1 588 #define XFA_RENDERSTATUS_Failed -1
589 class IXFA_RenderContext 589 class IXFA_RenderContext
590 { 590 {
591 public: 591 public:
592 virtual void Release() = 0; 592 virtual void Release() = 0;
593 virtual FX_INT32» StartRender(IXFA_PageView* pPageView, CFX_Graphics* pGS, const CFX_Matrix& pMatrix, const CXFA_RenderOptions& options) = 0; 593 virtual int32_t» StartRender(IXFA_PageView* pPageView, CFX_Graphics* pGS, const CFX_Matrix& pMatrix, const CXFA_RenderOptions& options) = 0;
594 virtual FX_INT32» DoRender(IFX_Pause* pPause = NULL) = 0; 594 virtual int32_t» DoRender(IFX_Pause* pPause = NULL) = 0;
595 virtual void StopRender() = 0; 595 virtual void StopRender() = 0;
596 protected: 596 protected:
597 ~IXFA_RenderContext() { } 597 ~IXFA_RenderContext() { }
598 }; 598 };
599 IXFA_RenderContext* XFA_RenderContext_Create(); 599 IXFA_RenderContext* XFA_RenderContext_Create();
600 enum XFA_WIDGETTYPE { 600 enum XFA_WIDGETTYPE {
601 XFA_WIDGETTYPE_Barcode, 601 XFA_WIDGETTYPE_Barcode,
602 XFA_WIDGETTYPE_PushButton, 602 XFA_WIDGETTYPE_PushButton,
603 XFA_WIDGETTYPE_CheckButton, 603 XFA_WIDGETTYPE_CheckButton,
604 XFA_WIDGETTYPE_RadioButton, 604 XFA_WIDGETTYPE_RadioButton,
(...skipping 26 matching lines...) Expand all
631 public: 631 public:
632 virtual ~IXFA_WidgetHandler() { } 632 virtual ~IXFA_WidgetHandler() { }
633 633
634 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent, XFA_W IDGETTYPE eType, IXFA_Widget* hBefore = NULL) = 0; 634 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent, XFA_W IDGETTYPE eType, IXFA_Widget* hBefore = NULL) = 0;
635 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget) = 0; 635 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget) = 0;
636 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF &rt) = 0; 636 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF &rt) = 0;
637 virtual FX_DWORD GetStatus(IXFA_Widget* hWidget) = 0; 637 virtual FX_DWORD GetStatus(IXFA_Widget* hWidget) = 0;
638 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget, CFX_RectF &rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE) = 0; 638 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget, CFX_RectF &rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE) = 0;
639 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget) = 0; 639 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget) = 0;
640 640
641 virtual void» » » GetName(IXFA_Widget* hWidget, CFX_WideSt ring &wsName, FX_INT32 iNameType = 0) = 0; 641 virtual void» » » GetName(IXFA_Widget* hWidget, CFX_WideSt ring &wsName, int32_t iNameType = 0) = 0;
642 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, CFX_Wid eString &wsToolTip) = 0; 642 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, CFX_Wid eString &wsToolTip) = 0;
643 virtual void SetPrivateData(IXFA_Widget* hWidget, FX_ LPVOID module_id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback) = 0; 643 virtual void SetPrivateData(IXFA_Widget* hWidget, FX_ LPVOID module_id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback) = 0;
644 virtual FX_LPVOID GetPrivateData(IXFA_Widget* hWidget, FX_ LPVOID module_id) = 0; 644 virtual FX_LPVOID GetPrivateData(IXFA_Widget* hWidget, FX_ LPVOID module_id) = 0;
645 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget) = 0; 645 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget) = 0;
646 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget) = 0; 646 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget) = 0;
647 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget, FX_D WORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; 647 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget, FX_D WORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0;
648 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget, FX_DWO RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; 648 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget, FX_DWO RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0;
649 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget, FX _DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; 649 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget, FX _DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0;
650 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget, FX_DWO RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; 650 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget, FX_DWO RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0;
651 virtual FX_BOOL» » » OnMouseWheel(IXFA_Widget* hWidget, FX_DW ORD dwFlags, FX_SHORT zDelta, FX_FLOAT fx, FX_FLOAT fy) = 0; 651 virtual FX_BOOL» » » OnMouseWheel(IXFA_Widget* hWidget, FX_DW ORD dwFlags, int16_t zDelta, FX_FLOAT fx, FX_FLOAT fy) = 0;
652 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget, FX_D WORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; 652 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget, FX_D WORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0;
653 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget, FX_DWO RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; 653 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget, FX_DWO RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0;
654 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget, FX _DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; 654 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget, FX _DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0;
655 655
656 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget, FX_DWORD dwKeyCode, FX_DWORD dwFlags) = 0; 656 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget, FX_DWORD dwKeyCode, FX_DWORD dwFlags) = 0;
657 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget, FX_DWORD d wKeyCode, FX_DWORD dwFlags) = 0; 657 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget, FX_DWORD d wKeyCode, FX_DWORD dwFlags) = 0;
658 virtual FX_BOOL OnChar(IXFA_Widget* hWidget, FX_DWORD dw Char, FX_DWORD dwFlags) = 0; 658 virtual FX_BOOL OnChar(IXFA_Widget* hWidget, FX_DWORD dw Char, FX_DWORD dwFlags) = 0;
659 virtual FX_DWORD OnHitTest(IXFA_Widget* hWidget, FX_FLOAT fx, FX_FLOAT fy) = 0; 659 virtual FX_DWORD OnHitTest(IXFA_Widget* hWidget, FX_FLOAT fx, FX_FLOAT fy) = 0;
660 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, FX_FLO AT fx, FX_FLOAT fy) = 0; 660 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, FX_FLO AT fx, FX_FLOAT fy) = 0;
661 661
662 virtual void RenderWidget(IXFA_Widget* hWidget, CFX_G raphics* pGS, CFX_Matrix* pMatrix = NULL, FX_BOOL bHighlight = FALSE) = 0; 662 virtual void RenderWidget(IXFA_Widget* hWidget, CFX_G raphics* pGS, CFX_Matrix* pMatrix = NULL, FX_BOOL bHighlight = FALSE) = 0;
663 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA _EVENTTYPE eEventType) = 0; 663 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA _EVENTTYPE eEventType) = 0;
664 virtual FX_INT32» » ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_Ev entParam* pParam) = 0; 664 virtual int32_t» » ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_Ev entParam* pParam) = 0;
665 }; 665 };
666 class IXFA_WidgetIterator 666 class IXFA_WidgetIterator
667 { 667 {
668 public: 668 public:
669 virtual void Release() = 0; 669 virtual void Release() = 0;
670 virtual void Reset() = 0; 670 virtual void Reset() = 0;
671 virtual IXFA_Widget* MoveToFirst() = 0; 671 virtual IXFA_Widget* MoveToFirst() = 0;
672 virtual IXFA_Widget* MoveToLast() = 0; 672 virtual IXFA_Widget* MoveToLast() = 0;
673 virtual IXFA_Widget* MoveToNext() = 0; 673 virtual IXFA_Widget* MoveToNext() = 0;
674 virtual IXFA_Widget* MoveToPrevious() = 0; 674 virtual IXFA_Widget* MoveToPrevious() = 0;
(...skipping 26 matching lines...) Expand all
701 virtual FX_BOOL StartChecksum() = 0; 701 virtual FX_BOOL StartChecksum() = 0;
702 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0; 702 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0;
703 virtual void FinishChecksum() = 0; 703 virtual void FinishChecksum() = 0;
704 virtual void GetChecksum(CFX_ByteString &bsCh ecksum) = 0; 704 virtual void GetChecksum(CFX_ByteString &bsCh ecksum) = 0;
705 protected: 705 protected:
706 ~IXFA_ChecksumContext() { } 706 ~IXFA_ChecksumContext() { }
707 }; 707 };
708 IXFA_ChecksumContext* XFA_Checksum_Create(); 708 IXFA_ChecksumContext* XFA_Checksum_Create();
709 709
710 #endif // FXFA_H_ 710 #endif // FXFA_H_
OLDNEW
« no previous file with comments | « xfa/include/fxbarcode/BC_BarCode.h ('k') | xfa/include/fxfa/fxfa_basic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698