blob: 192bfc20759636d65cc97d732c49ffe566e1d2a7 [file] [log] [blame]
jaepark611adb82016-08-17 11:34:36 -07001// 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
dsinclair114e46a2016-09-29 17:18:21 -07007#ifndef FPDFSDK_PDFSDK_FIELDACTION_H_
8#define FPDFSDK_PDFSDK_FIELDACTION_H_
jaepark611adb82016-08-17 11:34:36 -07009
dsinclaira52ab742016-09-29 13:59:29 -070010#include "core/fxcrt/fx_string.h"
jaepark611adb82016-08-17 11:34:36 -070011
12#ifdef PDF_ENABLE_XFA
13typedef 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
21struct PDFSDK_FieldAction {
22 PDFSDK_FieldAction();
23 PDFSDK_FieldAction(const PDFSDK_FieldAction& other) = delete;
24
25 FX_BOOL bModifier;
26 FX_BOOL bShift;
27 int nCommitKey;
28 CFX_WideString sChange;
29 CFX_WideString sChangeEx;
30 FX_BOOL bKeyDown;
31 int nSelEnd;
32 int nSelStart;
33 CFX_WideString sValue;
34 FX_BOOL bWillCommit;
35 FX_BOOL bFieldFull;
36 FX_BOOL bRC;
37};
38
dsinclair114e46a2016-09-29 17:18:21 -070039#endif // FPDFSDK_PDFSDK_FIELDACTION_H_