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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 class IXFA_AppProvider { | 175 class IXFA_AppProvider { |
176 public: | 176 public: |
177 virtual ~IXFA_AppProvider() {} | 177 virtual ~IXFA_AppProvider() {} |
178 | 178 |
179 /** | 179 /** |
180 * Specifies the name of the client application in which a form currently | 180 * Specifies the name of the client application in which a form currently |
181 * exists. Such as Exchange-Pro. | 181 * exists. Such as Exchange-Pro. |
182 */ | 182 */ |
183 virtual void SetAppType(const CFX_WideStringC& wsAppType) = 0; | 183 virtual void SetAppType(const CFX_WideStringC& wsAppType) = 0; |
184 virtual void GetAppType(CFX_WideString& wsAppType) = 0; | 184 virtual void GetAppType(CFX_WideString& wsAppType) = 0; |
185 virtual void SetFoxitAppType(const CFX_WideStringC& wsFoxitAppType) = 0; | |
186 virtual void GetFoxitAppType(CFX_WideString& wsFoxitAppType) = 0; | |
187 | 185 |
188 /** | 186 /** |
189 * Returns the language of the running host application. Such as zh_CN | 187 * Returns the language of the running host application. Such as zh_CN |
190 */ | 188 */ |
191 virtual void GetLanguage(CFX_WideString& wsLanguage) = 0; | 189 virtual void GetLanguage(CFX_WideString& wsLanguage) = 0; |
192 | 190 |
193 /** | 191 /** |
194 * Returns the platform of the machine running the script. Such as WIN | 192 * Returns the platform of the machine running the script. Such as WIN |
195 */ | 193 */ |
196 virtual void GetPlatform(CFX_WideString& wsPlatform) = 0; | 194 virtual void GetPlatform(CFX_WideString& wsPlatform) = 0; |
197 | 195 |
198 /** | 196 /** |
199 * Indicates the packaging of the application that is running the script. Such | 197 * Indicates the packaging of the application that is running the script. Such |
200 * as Full | 198 * as Full |
201 */ | 199 */ |
202 virtual void GetVariation(CFX_WideString& wsVariation) = 0; | 200 virtual void GetVariation(CFX_WideString& wsVariation) = 0; |
203 | 201 |
204 /** | 202 /** |
205 * Indicates the version number of the current application. Such as 9 | 203 * Indicates the version number of the current application. Such as 9 |
206 */ | 204 */ |
207 virtual void GetVersion(CFX_WideString& wsVersion) = 0; | 205 virtual void GetVersion(CFX_WideString& wsVersion) = 0; |
208 virtual void GetFoxitVersion(CFX_WideString& wsFoxitVersion) = 0; | |
209 | 206 |
210 /** | 207 /** |
211 * Get application name, such as Phantom. | 208 * Get application name, such as Phantom. |
212 */ | 209 */ |
213 virtual void GetAppName(CFX_WideString& wsName) = 0; | 210 virtual void GetAppName(CFX_WideString& wsName) = 0; |
214 virtual void GetFoxitAppName(CFX_WideString& wsFoxitName) = 0; | |
215 | 211 |
216 /** | 212 /** |
217 * Causes the system to play a sound. | 213 * Causes the system to play a sound. |
218 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 | 214 * @param[in] dwType The system code for the appropriate sound.0 (Error)1 |
219 * (Warning)2 (Question)3 (Status)4 (Default) | 215 * (Warning)2 (Question)3 (Status)4 (Default) |
220 */ | 216 */ |
221 virtual void Beep(uint32_t dwType) = 0; | 217 virtual void Beep(uint32_t dwType) = 0; |
222 | 218 |
223 /** | 219 /** |
224 * Displays a message box. | 220 * Displays a message box. |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 virtual void Reset() = 0; | 390 virtual void Reset() = 0; |
395 virtual CXFA_FFWidget* MoveToFirst() = 0; | 391 virtual CXFA_FFWidget* MoveToFirst() = 0; |
396 virtual CXFA_FFWidget* MoveToLast() = 0; | 392 virtual CXFA_FFWidget* MoveToLast() = 0; |
397 virtual CXFA_FFWidget* MoveToNext() = 0; | 393 virtual CXFA_FFWidget* MoveToNext() = 0; |
398 virtual CXFA_FFWidget* MoveToPrevious() = 0; | 394 virtual CXFA_FFWidget* MoveToPrevious() = 0; |
399 virtual CXFA_FFWidget* GetCurrentWidget() = 0; | 395 virtual CXFA_FFWidget* GetCurrentWidget() = 0; |
400 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; | 396 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; |
401 }; | 397 }; |
402 | 398 |
403 #endif // XFA_FXFA_INCLUDE_FXFA_H_ | 399 #endif // XFA_FXFA_INCLUDE_FXFA_H_ |
OLD | NEW |