OLD | NEW |
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 XFA_INCLUDE_FXFA_FXFA_H_ | 7 #ifndef XFA_INCLUDE_FXFA_FXFA_H_ |
8 #define XFA_INCLUDE_FXFA_FXFA_H_ | 8 #define XFA_INCLUDE_FXFA_FXFA_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual void GetAppName(CFX_WideString& wsName) = 0; | 206 virtual void GetAppName(CFX_WideString& wsName) = 0; |
207 virtual void GetFoxitAppName(CFX_WideString& wsFoxitName) { | 207 virtual void GetFoxitAppName(CFX_WideString& wsFoxitName) { |
208 wsFoxitName.Empty(); | 208 wsFoxitName.Empty(); |
209 } | 209 } |
210 | 210 |
211 /** | 211 /** |
212 * Causes the system to play a sound. | 212 * Causes the system to play a sound. |
213 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 | 213 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 |
214 * (Warning)2 (Question)3 (Status)4 (Default) | 214 * (Warning)2 (Question)3 (Status)4 (Default) |
215 */ | 215 */ |
216 virtual void Beep(FX_DWORD dwType) = 0; | 216 virtual void Beep(uint32_t dwType) = 0; |
217 | 217 |
218 /** | 218 /** |
219 * Displays a message box. | 219 * Displays a message box. |
220 * @param[in] dwIconType Icon type, refer to XFA_MBICON. | 220 * @param[in] dwIconType Icon type, refer to XFA_MBICON. |
221 * @param[in] dwButtonType Button type, refer to XFA_MESSAGEBUTTON. | 221 * @param[in] dwButtonType Button type, refer to XFA_MESSAGEBUTTON. |
222 * @return A valid integer representing the value of the button pressed by the | 222 * @return A valid integer representing the value of the button pressed by the |
223 * user, refer to XFA_ID. | 223 * user, refer to XFA_ID. |
224 */ | 224 */ |
225 virtual int32_t MsgBox(const CFX_WideStringC& wsMessage, | 225 virtual int32_t MsgBox(const CFX_WideStringC& wsMessage, |
226 const CFX_WideStringC& wsTitle = FX_WSTRC(L""), | 226 const CFX_WideStringC& wsTitle = FX_WSTRC(L""), |
227 FX_DWORD dwIconType = 0, | 227 uint32_t dwIconType = 0, |
228 FX_DWORD dwButtonType = 0) = 0; | 228 uint32_t dwButtonType = 0) = 0; |
229 | 229 |
230 /** | 230 /** |
231 * Get a response from the user. | 231 * Get a response from the user. |
232 * @param[in] bMark - Mask the user input with * (asterisks) when true, | 232 * @param[in] bMark - Mask the user input with * (asterisks) when true, |
233 */ | 233 */ |
234 virtual void Response(CFX_WideString& wsAnswer, | 234 virtual void Response(CFX_WideString& wsAnswer, |
235 const CFX_WideStringC& wsQuestion, | 235 const CFX_WideStringC& wsQuestion, |
236 const CFX_WideStringC& wsTitle = FX_WSTRC(L""), | 236 const CFX_WideStringC& wsTitle = FX_WSTRC(L""), |
237 const CFX_WideStringC& wsDefaultAnswer = FX_WSTRC(L""), | 237 const CFX_WideStringC& wsDefaultAnswer = FX_WSTRC(L""), |
238 FX_BOOL bMark = TRUE) = 0; | 238 FX_BOOL bMark = TRUE) = 0; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 FX_BOOL bOpen = TRUE) = 0; | 288 FX_BOOL bOpen = TRUE) = 0; |
289 virtual IFWL_AdapterTimerMgr* GetTimerMgr() = 0; | 289 virtual IFWL_AdapterTimerMgr* GetTimerMgr() = 0; |
290 }; | 290 }; |
291 class IXFA_FontMgr { | 291 class IXFA_FontMgr { |
292 public: | 292 public: |
293 static IXFA_FontMgr* CreateDefault(); | 293 static IXFA_FontMgr* CreateDefault(); |
294 virtual ~IXFA_FontMgr(); | 294 virtual ~IXFA_FontMgr(); |
295 | 295 |
296 virtual IFX_Font* GetFont(IXFA_Doc* hDoc, | 296 virtual IFX_Font* GetFont(IXFA_Doc* hDoc, |
297 const CFX_WideStringC& wsFontFamily, | 297 const CFX_WideStringC& wsFontFamily, |
298 FX_DWORD dwFontStyles, | 298 uint32_t dwFontStyles, |
299 uint16_t wCodePage = 0xFFFF) = 0; | 299 uint16_t wCodePage = 0xFFFF) = 0; |
300 virtual IFX_Font* GetDefaultFont(IXFA_Doc* hDoc, | 300 virtual IFX_Font* GetDefaultFont(IXFA_Doc* hDoc, |
301 const CFX_WideStringC& wsFontFamily, | 301 const CFX_WideStringC& wsFontFamily, |
302 FX_DWORD dwFontStyles, | 302 uint32_t dwFontStyles, |
303 uint16_t wCodePage = 0xFFFF) = 0; | 303 uint16_t wCodePage = 0xFFFF) = 0; |
304 }; | 304 }; |
305 class IXFA_App { | 305 class IXFA_App { |
306 public: | 306 public: |
307 static IXFA_App* Create(IXFA_AppProvider* pProvider); | 307 static IXFA_App* Create(IXFA_AppProvider* pProvider); |
308 virtual ~IXFA_App(); | 308 virtual ~IXFA_App(); |
309 | 309 |
310 virtual IXFA_DocHandler* GetDocHandler() = 0; | 310 virtual IXFA_DocHandler* GetDocHandler() = 0; |
311 virtual IXFA_Doc* CreateDoc(IXFA_DocProvider* pProvider, | 311 virtual IXFA_Doc* CreateDoc(IXFA_DocProvider* pProvider, |
312 IFX_FileRead* pStream, | 312 IFX_FileRead* pStream, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 #define XFA_WIDGETEVENT_ListItemRemoved 7 | 361 #define XFA_WIDGETEVENT_ListItemRemoved 7 |
362 #define XFA_WIDGETEVENT_ListItemAdded 8 | 362 #define XFA_WIDGETEVENT_ListItemAdded 8 |
363 #define XFA_WIDGETEVENT_AccessChanged 9 | 363 #define XFA_WIDGETEVENT_AccessChanged 9 |
364 class IXFA_DocProvider { | 364 class IXFA_DocProvider { |
365 public: | 365 public: |
366 virtual ~IXFA_DocProvider() {} | 366 virtual ~IXFA_DocProvider() {} |
367 | 367 |
368 virtual void SetChangeMark(IXFA_Doc* hDoc) = 0; | 368 virtual void SetChangeMark(IXFA_Doc* hDoc) = 0; |
369 virtual void InvalidateRect(IXFA_PageView* pPageView, | 369 virtual void InvalidateRect(IXFA_PageView* pPageView, |
370 const CFX_RectF& rt, | 370 const CFX_RectF& rt, |
371 FX_DWORD dwFlags = 0) = 0; | 371 uint32_t dwFlags = 0) = 0; |
372 virtual void DisplayCaret(IXFA_Widget* hWidget, | 372 virtual void DisplayCaret(IXFA_Widget* hWidget, |
373 FX_BOOL bVisible, | 373 FX_BOOL bVisible, |
374 const CFX_RectF* pRtAnchor) = 0; | 374 const CFX_RectF* pRtAnchor) = 0; |
375 virtual FX_BOOL GetPopupPos(IXFA_Widget* hWidget, | 375 virtual FX_BOOL GetPopupPos(IXFA_Widget* hWidget, |
376 FX_FLOAT fMinPopup, | 376 FX_FLOAT fMinPopup, |
377 FX_FLOAT fMaxPopup, | 377 FX_FLOAT fMaxPopup, |
378 const CFX_RectF& rtAnchor, | 378 const CFX_RectF& rtAnchor, |
379 CFX_RectF& rtPopup) = 0; | 379 CFX_RectF& rtPopup) = 0; |
380 virtual FX_BOOL PopupMenu(IXFA_Widget* hWidget, | 380 virtual FX_BOOL PopupMenu(IXFA_Widget* hWidget, |
381 CFX_PointF ptPopup, | 381 CFX_PointF ptPopup, |
382 const CFX_RectF* pRectExclude = NULL) = 0; | 382 const CFX_RectF* pRectExclude = NULL) = 0; |
383 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD dwFlags) = 0; | 383 virtual void PageViewEvent(IXFA_PageView* pPageView, uint32_t dwFlags) = 0; |
384 virtual void WidgetEvent(IXFA_Widget* hWidget, | 384 virtual void WidgetEvent(IXFA_Widget* hWidget, |
385 CXFA_WidgetAcc* pWidgetData, | 385 CXFA_WidgetAcc* pWidgetData, |
386 FX_DWORD dwEvent, | 386 uint32_t dwEvent, |
387 void* pParam = NULL, | 387 void* pParam = NULL, |
388 void* pAdditional = NULL) = 0; | 388 void* pAdditional = NULL) = 0; |
389 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget, | 389 virtual FX_BOOL RenderCustomWidget(IXFA_Widget* hWidget, |
390 CFX_Graphics* pGS, | 390 CFX_Graphics* pGS, |
391 CFX_Matrix* pMatrix, | 391 CFX_Matrix* pMatrix, |
392 const CFX_RectF& rtUI) { | 392 const CFX_RectF& rtUI) { |
393 return FALSE; | 393 return FALSE; |
394 } | 394 } |
395 virtual int32_t CountPages(IXFA_Doc* hDoc) = 0; | 395 virtual int32_t CountPages(IXFA_Doc* hDoc) = 0; |
396 virtual int32_t GetCurrentPage(IXFA_Doc* hDoc) = 0; | 396 virtual int32_t GetCurrentPage(IXFA_Doc* hDoc) = 0; |
397 virtual void SetCurrentPage(IXFA_Doc* hDoc, int32_t iCurPage) = 0; | 397 virtual void SetCurrentPage(IXFA_Doc* hDoc, int32_t iCurPage) = 0; |
398 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc) = 0; | 398 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc) = 0; |
399 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled) = 0; | 399 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled) = 0; |
400 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString& wsTitle) = 0; | 400 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString& wsTitle) = 0; |
401 virtual void SetTitle(IXFA_Doc* hDoc, const CFX_WideStringC& wsTitle) = 0; | 401 virtual void SetTitle(IXFA_Doc* hDoc, const CFX_WideStringC& wsTitle) = 0; |
402 virtual void ExportData(IXFA_Doc* hDoc, | 402 virtual void ExportData(IXFA_Doc* hDoc, |
403 const CFX_WideStringC& wsFilePath, | 403 const CFX_WideStringC& wsFilePath, |
404 FX_BOOL bXDP = TRUE) = 0; | 404 FX_BOOL bXDP = TRUE) = 0; |
405 virtual void ImportData(IXFA_Doc* hDoc, | 405 virtual void ImportData(IXFA_Doc* hDoc, |
406 const CFX_WideStringC& wsFilePath) = 0; | 406 const CFX_WideStringC& wsFilePath) = 0; |
407 virtual void GotoURL(IXFA_Doc* hDoc, | 407 virtual void GotoURL(IXFA_Doc* hDoc, |
408 const CFX_WideStringC& bsURL, | 408 const CFX_WideStringC& bsURL, |
409 FX_BOOL bAppend = TRUE) = 0; | 409 FX_BOOL bAppend = TRUE) = 0; |
410 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc) = 0; | 410 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc) = 0; |
411 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled) = 0; | 411 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled) = 0; |
412 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWidget) = 0; | 412 virtual void SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWidget) = 0; |
413 virtual void Print(IXFA_Doc* hDoc, | 413 virtual void Print(IXFA_Doc* hDoc, |
414 int32_t nStartPage, | 414 int32_t nStartPage, |
415 int32_t nEndPage, | 415 int32_t nEndPage, |
416 FX_DWORD dwOptions) = 0; | 416 uint32_t dwOptions) = 0; |
417 virtual int32_t AbsPageCountInBatch(IXFA_Doc* hDoc) = 0; | 417 virtual int32_t AbsPageCountInBatch(IXFA_Doc* hDoc) = 0; |
418 virtual int32_t AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) = 0; | 418 virtual int32_t AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) = 0; |
419 virtual int32_t SheetCountInBatch(IXFA_Doc* hDoc) = 0; | 419 virtual int32_t SheetCountInBatch(IXFA_Doc* hDoc) = 0; |
420 virtual int32_t SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) = 0; | 420 virtual int32_t SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget* hWidget) = 0; |
421 virtual int32_t Verify(IXFA_Doc* hDoc, | 421 virtual int32_t Verify(IXFA_Doc* hDoc, |
422 CXFA_Node* pSigNode, | 422 CXFA_Node* pSigNode, |
423 FX_BOOL bUsed = TRUE) { | 423 FX_BOOL bUsed = TRUE) { |
424 return 0; | 424 return 0; |
425 } | 425 } |
426 virtual FX_BOOL Sign(IXFA_Doc* hDoc, | 426 virtual FX_BOOL Sign(IXFA_Doc* hDoc, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 #define XFA_PARSESTATUS_SyntaxErr -1 | 471 #define XFA_PARSESTATUS_SyntaxErr -1 |
472 #define XFA_PARSESTATUS_Ready 0 | 472 #define XFA_PARSESTATUS_Ready 0 |
473 #define XFA_PARSESTATUS_Done 100 | 473 #define XFA_PARSESTATUS_Done 100 |
474 class IXFA_DocHandler { | 474 class IXFA_DocHandler { |
475 public: | 475 public: |
476 virtual ~IXFA_DocHandler() {} | 476 virtual ~IXFA_DocHandler() {} |
477 | 477 |
478 virtual void ReleaseDoc(IXFA_Doc* hDoc) = 0; | 478 virtual void ReleaseDoc(IXFA_Doc* hDoc) = 0; |
479 virtual IXFA_DocProvider* GetDocProvider(IXFA_Doc* hDoc) = 0; | 479 virtual IXFA_DocProvider* GetDocProvider(IXFA_Doc* hDoc) = 0; |
480 | 480 |
481 virtual FX_DWORD GetDocType(IXFA_Doc* hDoc) = 0; | 481 virtual uint32_t GetDocType(IXFA_Doc* hDoc) = 0; |
482 virtual int32_t StartLoad(IXFA_Doc* hDoc) = 0; | 482 virtual int32_t StartLoad(IXFA_Doc* hDoc) = 0; |
483 virtual int32_t DoLoad(IXFA_Doc* hDoc, IFX_Pause* pPause = NULL) = 0; | 483 virtual int32_t DoLoad(IXFA_Doc* hDoc, IFX_Pause* pPause = NULL) = 0; |
484 virtual void StopLoad(IXFA_Doc* hDoc) = 0; | 484 virtual void StopLoad(IXFA_Doc* hDoc) = 0; |
485 | 485 |
486 virtual IXFA_DocView* CreateDocView(IXFA_Doc* hDoc, FX_DWORD dwView = 0) = 0; | 486 virtual IXFA_DocView* CreateDocView(IXFA_Doc* hDoc, uint32_t dwView = 0) = 0; |
487 | 487 |
488 virtual int32_t CountPackages(IXFA_Doc* hDoc) = 0; | 488 virtual int32_t CountPackages(IXFA_Doc* hDoc) = 0; |
489 virtual void GetPackageName(IXFA_Doc* hDoc, | 489 virtual void GetPackageName(IXFA_Doc* hDoc, |
490 int32_t iPackage, | 490 int32_t iPackage, |
491 CFX_WideStringC& wsPackage) = 0; | 491 CFX_WideStringC& wsPackage) = 0; |
492 | 492 |
493 virtual FX_BOOL SavePackage(IXFA_Doc* hDoc, | 493 virtual FX_BOOL SavePackage(IXFA_Doc* hDoc, |
494 const CFX_WideStringC& wsPackage, | 494 const CFX_WideStringC& wsPackage, |
495 IFX_FileWrite* pFile, | 495 IFX_FileWrite* pFile, |
496 IXFA_ChecksumContext* pCSContext = NULL) = 0; | 496 IXFA_ChecksumContext* pCSContext = NULL) = 0; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 virtual void GetPageViewRect(CFX_RectF& rtPage) = 0; | 643 virtual void GetPageViewRect(CFX_RectF& rtPage) = 0; |
644 | 644 |
645 virtual void GetDisplayMatrix(CFX_Matrix& mt, | 645 virtual void GetDisplayMatrix(CFX_Matrix& mt, |
646 const CFX_Rect& rtDisp, | 646 const CFX_Rect& rtDisp, |
647 int32_t iRotate) = 0; | 647 int32_t iRotate) = 0; |
648 | 648 |
649 virtual int32_t LoadPageView(IFX_Pause* pPause = NULL) = 0; | 649 virtual int32_t LoadPageView(IFX_Pause* pPause = NULL) = 0; |
650 virtual void UnloadPageView() = 0; | 650 virtual void UnloadPageView() = 0; |
651 virtual IXFA_Widget* GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; | 651 virtual IXFA_Widget* GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; |
652 virtual IXFA_WidgetIterator* CreateWidgetIterator( | 652 virtual IXFA_WidgetIterator* CreateWidgetIterator( |
653 FX_DWORD dwTraverseWay = XFA_TRAVERSEWAY_Form, | 653 uint32_t dwTraverseWay = XFA_TRAVERSEWAY_Form, |
654 FX_DWORD dwWidgetFilter = XFA_WIDGETFILTER_Visible | | 654 uint32_t dwWidgetFilter = XFA_WIDGETFILTER_Visible | |
655 XFA_WIDGETFILTER_Viewable | | 655 XFA_WIDGETFILTER_Viewable | |
656 XFA_WIDGETFILTER_AllType) = 0; | 656 XFA_WIDGETFILTER_AllType) = 0; |
657 }; | 657 }; |
658 class CXFA_RenderOptions { | 658 class CXFA_RenderOptions { |
659 public: | 659 public: |
660 CXFA_RenderOptions() : m_bPrint(FALSE), m_bHighlight(TRUE) {} | 660 CXFA_RenderOptions() : m_bPrint(FALSE), m_bHighlight(TRUE) {} |
661 FX_BOOL m_bPrint; | 661 FX_BOOL m_bPrint; |
662 FX_BOOL m_bHighlight; | 662 FX_BOOL m_bHighlight; |
663 }; | 663 }; |
664 #define XFA_RENDERSTATUS_Ready 1 | 664 #define XFA_RENDERSTATUS_Ready 1 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 #define XFA_WIDGETSTATUS_Focused 0x00000100 | 710 #define XFA_WIDGETSTATUS_Focused 0x00000100 |
711 class IXFA_WidgetHandler { | 711 class IXFA_WidgetHandler { |
712 public: | 712 public: |
713 virtual ~IXFA_WidgetHandler() {} | 713 virtual ~IXFA_WidgetHandler() {} |
714 | 714 |
715 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent, | 715 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent, |
716 XFA_WIDGETTYPE eType, | 716 XFA_WIDGETTYPE eType, |
717 IXFA_Widget* hBefore = NULL) = 0; | 717 IXFA_Widget* hBefore = NULL) = 0; |
718 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget) = 0; | 718 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget) = 0; |
719 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF& rt) = 0; | 719 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF& rt) = 0; |
720 virtual FX_DWORD GetStatus(IXFA_Widget* hWidget) = 0; | 720 virtual uint32_t GetStatus(IXFA_Widget* hWidget) = 0; |
721 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget, | 721 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget, |
722 CFX_RectF& rtBox, | 722 CFX_RectF& rtBox, |
723 FX_DWORD dwStatus, | 723 uint32_t dwStatus, |
724 FX_BOOL bDrawFocus = FALSE) = 0; | 724 FX_BOOL bDrawFocus = FALSE) = 0; |
725 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget) = 0; | 725 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget) = 0; |
726 | 726 |
727 virtual void GetName(IXFA_Widget* hWidget, | 727 virtual void GetName(IXFA_Widget* hWidget, |
728 CFX_WideString& wsName, | 728 CFX_WideString& wsName, |
729 int32_t iNameType = 0) = 0; | 729 int32_t iNameType = 0) = 0; |
730 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, | 730 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, |
731 CFX_WideString& wsToolTip) = 0; | 731 CFX_WideString& wsToolTip) = 0; |
732 virtual void SetPrivateData(IXFA_Widget* hWidget, | 732 virtual void SetPrivateData(IXFA_Widget* hWidget, |
733 void* module_id, | 733 void* module_id, |
734 void* pData, | 734 void* pData, |
735 PD_CALLBACK_FREEDATA callback) = 0; | 735 PD_CALLBACK_FREEDATA callback) = 0; |
736 virtual void* GetPrivateData(IXFA_Widget* hWidget, void* module_id) = 0; | 736 virtual void* GetPrivateData(IXFA_Widget* hWidget, void* module_id) = 0; |
737 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget) = 0; | 737 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget) = 0; |
738 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget) = 0; | 738 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget) = 0; |
739 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget, | 739 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget, |
740 FX_DWORD dwFlags, | 740 uint32_t dwFlags, |
741 FX_FLOAT fx, | 741 FX_FLOAT fx, |
742 FX_FLOAT fy) = 0; | 742 FX_FLOAT fy) = 0; |
743 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget, | 743 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget, |
744 FX_DWORD dwFlags, | 744 uint32_t dwFlags, |
745 FX_FLOAT fx, | 745 FX_FLOAT fx, |
746 FX_FLOAT fy) = 0; | 746 FX_FLOAT fy) = 0; |
747 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget, | 747 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget, |
748 FX_DWORD dwFlags, | 748 uint32_t dwFlags, |
749 FX_FLOAT fx, | 749 FX_FLOAT fx, |
750 FX_FLOAT fy) = 0; | 750 FX_FLOAT fy) = 0; |
751 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget, | 751 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget, |
752 FX_DWORD dwFlags, | 752 uint32_t dwFlags, |
753 FX_FLOAT fx, | 753 FX_FLOAT fx, |
754 FX_FLOAT fy) = 0; | 754 FX_FLOAT fy) = 0; |
755 virtual FX_BOOL OnMouseWheel(IXFA_Widget* hWidget, | 755 virtual FX_BOOL OnMouseWheel(IXFA_Widget* hWidget, |
756 FX_DWORD dwFlags, | 756 uint32_t dwFlags, |
757 int16_t zDelta, | 757 int16_t zDelta, |
758 FX_FLOAT fx, | 758 FX_FLOAT fx, |
759 FX_FLOAT fy) = 0; | 759 FX_FLOAT fy) = 0; |
760 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget, | 760 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget, |
761 FX_DWORD dwFlags, | 761 uint32_t dwFlags, |
762 FX_FLOAT fx, | 762 FX_FLOAT fx, |
763 FX_FLOAT fy) = 0; | 763 FX_FLOAT fy) = 0; |
764 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget, | 764 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget, |
765 FX_DWORD dwFlags, | 765 uint32_t dwFlags, |
766 FX_FLOAT fx, | 766 FX_FLOAT fx, |
767 FX_FLOAT fy) = 0; | 767 FX_FLOAT fy) = 0; |
768 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget, | 768 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget, |
769 FX_DWORD dwFlags, | 769 uint32_t dwFlags, |
770 FX_FLOAT fx, | 770 FX_FLOAT fx, |
771 FX_FLOAT fy) = 0; | 771 FX_FLOAT fy) = 0; |
772 | 772 |
773 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget, | 773 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget, |
774 FX_DWORD dwKeyCode, | 774 uint32_t dwKeyCode, |
775 FX_DWORD dwFlags) = 0; | 775 uint32_t dwFlags) = 0; |
776 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget, | 776 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget, |
777 FX_DWORD dwKeyCode, | 777 uint32_t dwKeyCode, |
778 FX_DWORD dwFlags) = 0; | 778 uint32_t dwFlags) = 0; |
779 virtual FX_BOOL OnChar(IXFA_Widget* hWidget, | 779 virtual FX_BOOL OnChar(IXFA_Widget* hWidget, |
780 FX_DWORD dwChar, | 780 uint32_t dwChar, |
781 FX_DWORD dwFlags) = 0; | 781 uint32_t dwFlags) = 0; |
782 virtual FX_DWORD OnHitTest(IXFA_Widget* hWidget, | 782 virtual uint32_t OnHitTest(IXFA_Widget* hWidget, |
783 FX_FLOAT fx, | 783 FX_FLOAT fx, |
784 FX_FLOAT fy) = 0; | 784 FX_FLOAT fy) = 0; |
785 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, | 785 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, |
786 FX_FLOAT fx, | 786 FX_FLOAT fx, |
787 FX_FLOAT fy) = 0; | 787 FX_FLOAT fy) = 0; |
788 | 788 |
789 virtual void RenderWidget(IXFA_Widget* hWidget, | 789 virtual void RenderWidget(IXFA_Widget* hWidget, |
790 CFX_Graphics* pGS, | 790 CFX_Graphics* pGS, |
791 CFX_Matrix* pMatrix = NULL, | 791 CFX_Matrix* pMatrix = NULL, |
792 FX_BOOL bHighlight = FALSE) = 0; | 792 FX_BOOL bHighlight = FALSE) = 0; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 size_t size = 0) = 0; | 837 size_t size = 0) = 0; |
838 virtual void FinishChecksum() = 0; | 838 virtual void FinishChecksum() = 0; |
839 virtual void GetChecksum(CFX_ByteString& bsChecksum) = 0; | 839 virtual void GetChecksum(CFX_ByteString& bsChecksum) = 0; |
840 | 840 |
841 protected: | 841 protected: |
842 ~IXFA_ChecksumContext() {} | 842 ~IXFA_ChecksumContext() {} |
843 }; | 843 }; |
844 IXFA_ChecksumContext* XFA_Checksum_Create(); | 844 IXFA_ChecksumContext* XFA_Checksum_Create(); |
845 | 845 |
846 #endif // XFA_INCLUDE_FXFA_FXFA_H_ | 846 #endif // XFA_INCLUDE_FXFA_FXFA_H_ |
OLD | NEW |