| 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_FXFA_INCLUDE_FXFA_H_ | 7 #ifndef XFA_FXFA_INCLUDE_FXFA_H_ |
| 8 #define XFA_FXFA_INCLUDE_FXFA_H_ | 8 #define XFA_FXFA_INCLUDE_FXFA_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 XFA_WidgetStatus_Disabled = 1 << 2, | 136 XFA_WidgetStatus_Disabled = 1 << 2, |
| 137 XFA_WidgetStatus_Focused = 1 << 3, | 137 XFA_WidgetStatus_Focused = 1 << 3, |
| 138 XFA_WidgetStatus_Highlight = 1 << 4, | 138 XFA_WidgetStatus_Highlight = 1 << 4, |
| 139 XFA_WidgetStatus_Printable = 1 << 5, | 139 XFA_WidgetStatus_Printable = 1 << 5, |
| 140 XFA_WidgetStatus_RectCached = 1 << 6, | 140 XFA_WidgetStatus_RectCached = 1 << 6, |
| 141 XFA_WidgetStatus_TextEditValueChanged = 1 << 7, | 141 XFA_WidgetStatus_TextEditValueChanged = 1 << 7, |
| 142 XFA_WidgetStatus_Viewable = 1 << 8, | 142 XFA_WidgetStatus_Viewable = 1 << 8, |
| 143 XFA_WidgetStatus_Visible = 1 << 9 | 143 XFA_WidgetStatus_Visible = 1 << 9 |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 enum XFA_EVENTTYPE { | |
| 147 XFA_EVENT_Click, | |
| 148 XFA_EVENT_Change, | |
| 149 XFA_EVENT_DocClose, | |
| 150 XFA_EVENT_DocReady, | |
| 151 XFA_EVENT_Enter, | |
| 152 XFA_EVENT_Exit, | |
| 153 XFA_EVENT_Full, | |
| 154 XFA_EVENT_IndexChange, | |
| 155 XFA_EVENT_Initialize, | |
| 156 XFA_EVENT_MouseDown, | |
| 157 XFA_EVENT_MouseEnter, | |
| 158 XFA_EVENT_MouseExit, | |
| 159 XFA_EVENT_MouseUp, | |
| 160 XFA_EVENT_PostExecute, | |
| 161 XFA_EVENT_PostOpen, | |
| 162 XFA_EVENT_PostPrint, | |
| 163 XFA_EVENT_PostSave, | |
| 164 XFA_EVENT_PostSign, | |
| 165 XFA_EVENT_PostSubmit, | |
| 166 XFA_EVENT_PreExecute, | |
| 167 XFA_EVENT_PreOpen, | |
| 168 XFA_EVENT_PrePrint, | |
| 169 XFA_EVENT_PreSave, | |
| 170 XFA_EVENT_PreSign, | |
| 171 XFA_EVENT_PreSubmit, | |
| 172 XFA_EVENT_Ready, | |
| 173 XFA_EVENT_InitCalculate, | |
| 174 XFA_EVENT_InitVariables, | |
| 175 XFA_EVENT_Calculate, | |
| 176 XFA_EVENT_Validate, | |
| 177 XFA_EVENT_Unknown, | |
| 178 }; | |
| 179 | |
| 180 enum XFA_WIDGETORDER { | 146 enum XFA_WIDGETORDER { |
| 181 XFA_WIDGETORDER_PreOrder, | 147 XFA_WIDGETORDER_PreOrder, |
| 182 }; | 148 }; |
| 183 | 149 |
| 184 enum XFA_WIDGETTYPE { | 150 enum XFA_WIDGETTYPE { |
| 185 XFA_WIDGETTYPE_Barcode, | 151 XFA_WIDGETTYPE_Barcode, |
| 186 XFA_WIDGETTYPE_PushButton, | 152 XFA_WIDGETTYPE_PushButton, |
| 187 XFA_WIDGETTYPE_CheckButton, | 153 XFA_WIDGETTYPE_CheckButton, |
| 188 XFA_WIDGETTYPE_RadioButton, | 154 XFA_WIDGETTYPE_RadioButton, |
| 189 XFA_WIDGETTYPE_DatetimeEdit, | 155 XFA_WIDGETTYPE_DatetimeEdit, |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 virtual FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc, | 393 virtual FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc, |
| 428 const CFX_ByteStringC& szPropName, | 394 const CFX_ByteStringC& szPropName, |
| 429 CFXJSE_Value* pValue) = 0; | 395 CFXJSE_Value* pValue) = 0; |
| 430 virtual CPDF_Document* OpenPDF(CXFA_FFDoc* hDoc, | 396 virtual CPDF_Document* OpenPDF(CXFA_FFDoc* hDoc, |
| 431 IFX_FileRead* pFile, | 397 IFX_FileRead* pFile, |
| 432 FX_BOOL bTakeOverFile) = 0; | 398 FX_BOOL bTakeOverFile) = 0; |
| 433 virtual IFX_FileRead* OpenLinkedFile(CXFA_FFDoc* hDoc, | 399 virtual IFX_FileRead* OpenLinkedFile(CXFA_FFDoc* hDoc, |
| 434 const CFX_WideString& wsLink) = 0; | 400 const CFX_WideString& wsLink) = 0; |
| 435 }; | 401 }; |
| 436 | 402 |
| 437 class CXFA_EventParam { | |
| 438 public: | |
| 439 CXFA_EventParam() { | |
| 440 m_pTarget = NULL; | |
| 441 m_eType = XFA_EVENT_Unknown; | |
| 442 m_wsResult.clear(); | |
| 443 Reset(); | |
| 444 } | |
| 445 void Reset() { | |
| 446 m_wsChange.clear(); | |
| 447 m_iCommitKey = 0; | |
| 448 m_wsFullText.clear(); | |
| 449 m_bKeyDown = FALSE; | |
| 450 m_bModifier = FALSE; | |
| 451 m_wsNewContentType.clear(); | |
| 452 m_wsNewText.clear(); | |
| 453 m_wsPrevContentType.clear(); | |
| 454 m_wsPrevText.clear(); | |
| 455 m_bReenter = FALSE; | |
| 456 m_iSelEnd = 0; | |
| 457 m_iSelStart = 0; | |
| 458 m_bShift = FALSE; | |
| 459 m_wsSoapFaultCode.clear(); | |
| 460 m_wsSoapFaultString.clear(); | |
| 461 m_bIsFormReady = FALSE; | |
| 462 m_iValidateActivities = XFA_VALIDATE_preSubmit; | |
| 463 } | |
| 464 CXFA_WidgetAcc* m_pTarget; | |
| 465 XFA_EVENTTYPE m_eType; | |
| 466 CFX_WideString m_wsResult; | |
| 467 FX_BOOL m_bCancelAction; | |
| 468 int32_t m_iCommitKey; | |
| 469 FX_BOOL m_bKeyDown; | |
| 470 FX_BOOL m_bModifier; | |
| 471 FX_BOOL m_bReenter; | |
| 472 int32_t m_iSelEnd; | |
| 473 int32_t m_iSelStart; | |
| 474 FX_BOOL m_bShift; | |
| 475 CFX_WideString m_wsChange; | |
| 476 CFX_WideString m_wsFullText; | |
| 477 CFX_WideString m_wsNewContentType; | |
| 478 CFX_WideString m_wsNewText; | |
| 479 CFX_WideString m_wsPrevContentType; | |
| 480 CFX_WideString m_wsPrevText; | |
| 481 CFX_WideString m_wsSoapFaultCode; | |
| 482 CFX_WideString m_wsSoapFaultString; | |
| 483 FX_BOOL m_bIsFormReady; | |
| 484 int32_t m_iValidateActivities; | |
| 485 }; | |
| 486 | |
| 487 class CXFA_RenderOptions { | 403 class CXFA_RenderOptions { |
| 488 public: | 404 public: |
| 489 CXFA_RenderOptions() : m_bPrint(FALSE), m_bHighlight(TRUE) {} | 405 CXFA_RenderOptions() : m_bPrint(FALSE), m_bHighlight(TRUE) {} |
| 490 FX_BOOL m_bPrint; | 406 FX_BOOL m_bPrint; |
| 491 FX_BOOL m_bHighlight; | 407 FX_BOOL m_bHighlight; |
| 492 }; | 408 }; |
| 493 | 409 |
| 494 class IXFA_WidgetIterator { | 410 class IXFA_WidgetIterator { |
| 495 public: | 411 public: |
| 496 virtual ~IXFA_WidgetIterator() {} | 412 virtual ~IXFA_WidgetIterator() {} |
| 497 | 413 |
| 498 virtual void Reset() = 0; | 414 virtual void Reset() = 0; |
| 499 virtual CXFA_FFWidget* MoveToFirst() = 0; | 415 virtual CXFA_FFWidget* MoveToFirst() = 0; |
| 500 virtual CXFA_FFWidget* MoveToLast() = 0; | 416 virtual CXFA_FFWidget* MoveToLast() = 0; |
| 501 virtual CXFA_FFWidget* MoveToNext() = 0; | 417 virtual CXFA_FFWidget* MoveToNext() = 0; |
| 502 virtual CXFA_FFWidget* MoveToPrevious() = 0; | 418 virtual CXFA_FFWidget* MoveToPrevious() = 0; |
| 503 virtual CXFA_FFWidget* GetCurrentWidget() = 0; | 419 virtual CXFA_FFWidget* GetCurrentWidget() = 0; |
| 504 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; | 420 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; |
| 505 }; | 421 }; |
| 506 | 422 |
| 507 #endif // XFA_FXFA_INCLUDE_FXFA_H_ | 423 #endif // XFA_FXFA_INCLUDE_FXFA_H_ |
| OLD | NEW |