jaepark | 611adb8 | 2016-08-17 11:34:36 -0700 | [diff] [blame] | 1 | // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
dsinclair | 114e46a | 2016-09-29 17:18:21 -0700 | [diff] [blame] | 7 | #ifndef FPDFSDK_PDFSDK_FIELDACTION_H_ |
| 8 | #define FPDFSDK_PDFSDK_FIELDACTION_H_ |
jaepark | 611adb8 | 2016-08-17 11:34:36 -0700 | [diff] [blame] | 9 | |
dsinclair | a52ab74 | 2016-09-29 13:59:29 -0700 | [diff] [blame] | 10 | #include "core/fxcrt/fx_string.h" |
jaepark | 611adb8 | 2016-08-17 11:34:36 -0700 | [diff] [blame] | 11 | |
| 12 | #ifdef PDF_ENABLE_XFA |
| 13 | typedef enum { |
| 14 | PDFSDK_XFA_Click = 0, |
| 15 | PDFSDK_XFA_Full, |
| 16 | PDFSDK_XFA_PreOpen, |
| 17 | PDFSDK_XFA_PostOpen |
| 18 | } PDFSDK_XFAAActionType; |
| 19 | #endif // PDF_ENABLE_XFA |
| 20 | |
| 21 | struct PDFSDK_FieldAction { |
| 22 | PDFSDK_FieldAction(); |
| 23 | PDFSDK_FieldAction(const PDFSDK_FieldAction& other) = delete; |
| 24 | |
tsepez | 4cf5515 | 2016-11-02 14:37:54 -0700 | [diff] [blame] | 25 | bool bModifier; |
| 26 | bool bShift; |
jaepark | 611adb8 | 2016-08-17 11:34:36 -0700 | [diff] [blame] | 27 | int nCommitKey; |
Ryan Harrison | 275e260 | 2017-09-18 14:23:18 -0400 | [diff] [blame] | 28 | WideString sChange; |
| 29 | WideString sChangeEx; |
tsepez | 4cf5515 | 2016-11-02 14:37:54 -0700 | [diff] [blame] | 30 | bool bKeyDown; |
jaepark | 611adb8 | 2016-08-17 11:34:36 -0700 | [diff] [blame] | 31 | int nSelEnd; |
| 32 | int nSelStart; |
Ryan Harrison | 275e260 | 2017-09-18 14:23:18 -0400 | [diff] [blame] | 33 | WideString sValue; |
tsepez | 4cf5515 | 2016-11-02 14:37:54 -0700 | [diff] [blame] | 34 | bool bWillCommit; |
| 35 | bool bFieldFull; |
| 36 | bool bRC; |
jaepark | 611adb8 | 2016-08-17 11:34:36 -0700 | [diff] [blame] | 37 | }; |
| 38 | |
dsinclair | 114e46a | 2016-09-29 17:18:21 -0700 | [diff] [blame] | 39 | #endif // FPDFSDK_PDFSDK_FIELDACTION_H_ |