| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual ~IXFA_AppProvider() {} | 143 virtual ~IXFA_AppProvider() {} |
| 144 | 144 |
| 145 /** | 145 /** |
| 146 * Specifies the name of the client application in which a form currently | 146 * Specifies the name of the client application in which a form currently |
| 147 * exists. Such as Exchange-Pro. | 147 * exists. Such as Exchange-Pro. |
| 148 */ | 148 */ |
| 149 virtual void SetAppType(const CFX_WideStringC& wsAppType) = 0; | 149 virtual void SetAppType(const CFX_WideStringC& wsAppType) = 0; |
| 150 virtual void GetAppType(CFX_WideString& wsAppType) = 0; | 150 virtual void GetAppType(CFX_WideString& wsAppType) = 0; |
| 151 virtual void SetFoxitAppType(const CFX_WideStringC& wsFoxitAppType) {} | 151 virtual void SetFoxitAppType(const CFX_WideStringC& wsFoxitAppType) {} |
| 152 virtual void GetFoxitAppType(CFX_WideString& wsFoxitAppType) { | 152 virtual void GetFoxitAppType(CFX_WideString& wsFoxitAppType) { |
| 153 wsFoxitAppType.Empty(); | 153 wsFoxitAppType.clear(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 /** | 156 /** |
| 157 * Returns the language of the running host application. Such as zh_CN | 157 * Returns the language of the running host application. Such as zh_CN |
| 158 */ | 158 */ |
| 159 virtual void GetLanguage(CFX_WideString& wsLanguage) = 0; | 159 virtual void GetLanguage(CFX_WideString& wsLanguage) = 0; |
| 160 | 160 |
| 161 /** | 161 /** |
| 162 * Returns the platform of the machine running the script. Such as WIN | 162 * Returns the platform of the machine running the script. Such as WIN |
| 163 */ | 163 */ |
| 164 virtual void GetPlatform(CFX_WideString& wsPlatform) = 0; | 164 virtual void GetPlatform(CFX_WideString& wsPlatform) = 0; |
| 165 | 165 |
| 166 /** | 166 /** |
| 167 * Indicates the packaging of the application that is running the script. Such | 167 * Indicates the packaging of the application that is running the script. Such |
| 168 * as Full | 168 * as Full |
| 169 */ | 169 */ |
| 170 virtual void GetVariation(CFX_WideString& wsVariation) = 0; | 170 virtual void GetVariation(CFX_WideString& wsVariation) = 0; |
| 171 | 171 |
| 172 /** | 172 /** |
| 173 * Indicates the version number of the current application. Such as 9 | 173 * Indicates the version number of the current application. Such as 9 |
| 174 */ | 174 */ |
| 175 virtual void GetVersion(CFX_WideString& wsVersion) = 0; | 175 virtual void GetVersion(CFX_WideString& wsVersion) = 0; |
| 176 virtual void GetFoxitVersion(CFX_WideString& wsFoxitVersion) { | 176 virtual void GetFoxitVersion(CFX_WideString& wsFoxitVersion) { |
| 177 wsFoxitVersion.Empty(); | 177 wsFoxitVersion.clear(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 /** | 180 /** |
| 181 * Get application name, such as Phantom. | 181 * Get application name, such as Phantom. |
| 182 */ | 182 */ |
| 183 virtual void GetAppName(CFX_WideString& wsName) = 0; | 183 virtual void GetAppName(CFX_WideString& wsName) = 0; |
| 184 virtual void GetFoxitAppName(CFX_WideString& wsFoxitName) { | 184 virtual void GetFoxitAppName(CFX_WideString& wsFoxitName) { |
| 185 wsFoxitName.Empty(); | 185 wsFoxitName.clear(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 /** | 188 /** |
| 189 * Causes the system to play a sound. | 189 * Causes the system to play a sound. |
| 190 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 | 190 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 |
| 191 * (Warning)2 (Question)3 (Status)4 (Default) | 191 * (Warning)2 (Question)3 (Status)4 (Default) |
| 192 */ | 192 */ |
| 193 virtual void Beep(uint32_t dwType) = 0; | 193 virtual void Beep(uint32_t dwType) = 0; |
| 194 | 194 |
| 195 /** | 195 /** |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 }; | 429 }; |
| 430 #define XFA_VALIDATE_preSubmit 1 | 430 #define XFA_VALIDATE_preSubmit 1 |
| 431 #define XFA_VALIDATE_prePrint 2 | 431 #define XFA_VALIDATE_prePrint 2 |
| 432 #define XFA_VALIDATE_preExecute 3 | 432 #define XFA_VALIDATE_preExecute 3 |
| 433 #define XFA_VALIDATE_preSave 4 | 433 #define XFA_VALIDATE_preSave 4 |
| 434 class CXFA_EventParam { | 434 class CXFA_EventParam { |
| 435 public: | 435 public: |
| 436 CXFA_EventParam() { | 436 CXFA_EventParam() { |
| 437 m_pTarget = NULL; | 437 m_pTarget = NULL; |
| 438 m_eType = XFA_EVENT_Unknown; | 438 m_eType = XFA_EVENT_Unknown; |
| 439 m_wsResult.Empty(); | 439 m_wsResult.clear(); |
| 440 Reset(); | 440 Reset(); |
| 441 } | 441 } |
| 442 void Reset() { | 442 void Reset() { |
| 443 m_wsChange.Empty(); | 443 m_wsChange.clear(); |
| 444 m_iCommitKey = 0; | 444 m_iCommitKey = 0; |
| 445 m_wsFullText.Empty(); | 445 m_wsFullText.clear(); |
| 446 m_bKeyDown = FALSE; | 446 m_bKeyDown = FALSE; |
| 447 m_bModifier = FALSE; | 447 m_bModifier = FALSE; |
| 448 m_wsNewContentType.Empty(); | 448 m_wsNewContentType.clear(); |
| 449 m_wsNewText.Empty(); | 449 m_wsNewText.clear(); |
| 450 m_wsPrevContentType.Empty(); | 450 m_wsPrevContentType.clear(); |
| 451 m_wsPrevText.Empty(); | 451 m_wsPrevText.clear(); |
| 452 m_bReenter = FALSE; | 452 m_bReenter = FALSE; |
| 453 m_iSelEnd = 0; | 453 m_iSelEnd = 0; |
| 454 m_iSelStart = 0; | 454 m_iSelStart = 0; |
| 455 m_bShift = FALSE; | 455 m_bShift = FALSE; |
| 456 m_wsSoapFaultCode.Empty(); | 456 m_wsSoapFaultCode.clear(); |
| 457 m_wsSoapFaultString.Empty(); | 457 m_wsSoapFaultString.clear(); |
| 458 m_bIsFormReady = FALSE; | 458 m_bIsFormReady = FALSE; |
| 459 m_iValidateActivities = XFA_VALIDATE_preSubmit; | 459 m_iValidateActivities = XFA_VALIDATE_preSubmit; |
| 460 } | 460 } |
| 461 CXFA_WidgetAcc* m_pTarget; | 461 CXFA_WidgetAcc* m_pTarget; |
| 462 XFA_EVENTTYPE m_eType; | 462 XFA_EVENTTYPE m_eType; |
| 463 CFX_WideString m_wsResult; | 463 CFX_WideString m_wsResult; |
| 464 FX_BOOL m_bCancelAction; | 464 FX_BOOL m_bCancelAction; |
| 465 int32_t m_iCommitKey; | 465 int32_t m_iCommitKey; |
| 466 FX_BOOL m_bKeyDown; | 466 FX_BOOL m_bKeyDown; |
| 467 FX_BOOL m_bModifier; | 467 FX_BOOL m_bModifier; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 virtual CXFA_FFWidget* MoveToNext() = 0; | 546 virtual CXFA_FFWidget* MoveToNext() = 0; |
| 547 virtual CXFA_FFWidget* MoveToPrevious() = 0; | 547 virtual CXFA_FFWidget* MoveToPrevious() = 0; |
| 548 virtual CXFA_FFWidget* GetCurrentWidget() = 0; | 548 virtual CXFA_FFWidget* GetCurrentWidget() = 0; |
| 549 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; | 549 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; |
| 550 | 550 |
| 551 protected: | 551 protected: |
| 552 ~IXFA_WidgetIterator() {} | 552 ~IXFA_WidgetIterator() {} |
| 553 }; | 553 }; |
| 554 | 554 |
| 555 #endif // XFA_FXFA_INCLUDE_FXFA_H_ | 555 #endif // XFA_FXFA_INCLUDE_FXFA_H_ |
| OLD | NEW |