| 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 _FXFA | 7 #ifndef _FXFA |
| 8 #define _FXFA | 8 #define _FXFA |
| 9 class IFDE_XMLElement; | 9 class IFDE_XMLElement; |
| 10 class CXFA_Node; | 10 class CXFA_Node; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 XFA_EVENT_InitCalculate, | 378 XFA_EVENT_InitCalculate, |
| 379 XFA_EVENT_InitVariables, | 379 XFA_EVENT_InitVariables, |
| 380 XFA_EVENT_Calculate, | 380 XFA_EVENT_Calculate, |
| 381 XFA_EVENT_Validate, | 381 XFA_EVENT_Validate, |
| 382 XFA_EVENT_Unknown, | 382 XFA_EVENT_Unknown, |
| 383 }; | 383 }; |
| 384 #define XFA_VALIDATE_preSubmit 1 | 384 #define XFA_VALIDATE_preSubmit 1 |
| 385 #define XFA_VALIDATE_prePrint 2 | 385 #define XFA_VALIDATE_prePrint 2 |
| 386 #define XFA_VALIDATE_preExecute 3 | 386 #define XFA_VALIDATE_preExecute 3 |
| 387 #define XFA_VALIDATE_preSave 4 | 387 #define XFA_VALIDATE_preSave 4 |
| 388 class CXFA_EventParam : public CFX_Object | 388 class CXFA_EventParam |
| 389 { | 389 { |
| 390 public: | 390 public: |
| 391 CXFA_EventParam() | 391 CXFA_EventParam() |
| 392 { | 392 { |
| 393 m_pTarget = NULL; | 393 m_pTarget = NULL; |
| 394 m_eType = XFA_EVENT_Unknown; | 394 m_eType = XFA_EVENT_Unknown; |
| 395 m_wsResult.Empty(); | 395 m_wsResult.Empty(); |
| 396 Reset(); | 396 Reset(); |
| 397 } | 397 } |
| 398 void Reset() | 398 void Reset() |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 virtual FX_INT32 GetPageViewIndex() = 0; | 485 virtual FX_INT32 GetPageViewIndex() = 0; |
| 486 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0; | 486 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0; |
| 487 | 487 |
| 488 virtual void GetDisplayMatrix(CFX_Matrix &mt, const C
FX_Rect &rtDisp, FX_INT32 iRotate) = 0; | 488 virtual void GetDisplayMatrix(CFX_Matrix &mt, const C
FX_Rect &rtDisp, FX_INT32 iRotate) = 0; |
| 489 | 489 |
| 490 virtual FX_INT32 LoadPageView(IFX_Pause *pPause = NULL) = 0; | 490 virtual FX_INT32 LoadPageView(IFX_Pause *pPause = NULL) = 0; |
| 491 virtual void UnloadPageView() = 0; | 491 virtual void UnloadPageView() = 0; |
| 492 virtual XFA_HWIDGET GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; | 492 virtual XFA_HWIDGET GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 493 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; | 493 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; |
| 494 }; | 494 }; |
| 495 class CXFA_RenderOptions : public CFX_Object | 495 class CXFA_RenderOptions |
| 496 { | 496 { |
| 497 public: | 497 public: |
| 498 CXFA_RenderOptions() | 498 CXFA_RenderOptions() |
| 499 : m_bPrint(FALSE) | 499 : m_bPrint(FALSE) |
| 500 , m_bHighlight(TRUE) | 500 , m_bHighlight(TRUE) |
| 501 { | 501 { |
| 502 } | 502 } |
| 503 FX_BOOL m_bPrint; | 503 FX_BOOL m_bPrint; |
| 504 FX_BOOL m_bHighlight; | 504 FX_BOOL m_bHighlight; |
| 505 }; | 505 }; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 | 621 |
| 622 virtual FX_BOOL StartChecksum() = 0; | 622 virtual FX_BOOL StartChecksum() = 0; |
| 623 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr
cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0; | 623 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr
cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0; |
| 624 virtual void FinishChecksum() = 0; | 624 virtual void FinishChecksum() = 0; |
| 625 virtual void GetChecksum(CFX_ByteString &bsCh
ecksum) = 0; | 625 virtual void GetChecksum(CFX_ByteString &bsCh
ecksum) = 0; |
| 626 protected: | 626 protected: |
| 627 ~IXFA_ChecksumContext() { } | 627 ~IXFA_ChecksumContext() { } |
| 628 }; | 628 }; |
| 629 IXFA_ChecksumContext* XFA_Checksum_Create(); | 629 IXFA_ChecksumContext* XFA_Checksum_Create(); |
| 630 #endif | 630 #endif |
| OLD | NEW |