1 // Copyright 2014 The PDFium Authors 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 7 #ifndef XFA_FXFA_FXFA_H_ 8 #define XFA_FXFA_FXFA_H_ 9 10 // Note, values must match fpdf_formfill.h JSPLATFORM_ALERT_BUTTON_* flags. 11 enum class AlertButton { 12 kDefault = 0, 13 kOK = 0, 14 kOKCancel = 1, 15 kYesNo = 2, 16 kYesNoCancel = 3, 17 }; 18 19 // Note, values must match fpdf_formfill.h JSPLATFORM_ALERT_ICON_* flags. 20 enum class AlertIcon { 21 kDefault = 0, 22 kError = 0, 23 kWarning = 1, 24 kQuestion = 2, 25 kStatus = 3, 26 kAsterisk = 4, 27 }; 28 29 // Note, values must match fpdf_formfill.h JSPLATFORM_ALERT_RETURN_* flags. 30 enum class AlertReturn { 31 kOK = 1, 32 kCancel = 2, 33 kNo = 3, 34 kYes = 4, 35 }; 36 37 // Note, values must match fpdf_formfill.h FORMTYPE_* flags. 38 enum class FormType { 39 kNone = 0, 40 kAcroForm = 1, 41 kXFAFull = 2, 42 kXFAForeground = 3, 43 }; 44 45 enum class XFA_PrintOpt : uint8_t { 46 kShowDialog = 1 << 0, 47 kCanCancel = 1 << 1, 48 kShrinkPage = 1 << 2, 49 kAsImage = 1 << 3, 50 kReverseOrder = 1 << 4, 51 kPrintAnnot = 1 << 5, 52 }; 53 54 enum class XFA_EventError { 55 kError = -1, 56 kNotExist = 0, 57 kSuccess = 1, 58 kDisabled = 2, 59 }; 60 61 enum class XFA_WidgetStatus : uint16_t { 62 kNone = 0, 63 kAccess = 1 << 0, 64 kButtonDown = 1 << 1, 65 kDisabled = 1 << 2, 66 kFocused = 1 << 3, 67 kPrintable = 1 << 4, 68 kRectCached = 1 << 5, 69 kTextEditValueChanged = 1 << 6, 70 kViewable = 1 << 7, 71 kVisible = 1 << 8 72 }; 73 74 #endif // XFA_FXFA_FXFA_H_ 75