1 // Copyright 2014 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 7 #ifndef XFA_FWL_FWL_WIDGETDEF_H_ 8 #define XFA_FWL_FWL_WIDGETDEF_H_ 9 10 #define FWL_WGTSTYLE_OverLapper 0 11 #define FWL_WGTSTYLE_Popup (1L << 0) 12 #define FWL_WGTSTYLE_Child (2L << 0) 13 #define FWL_WGTSTYLE_WindowTypeMask (3L << 0) 14 #define FWL_WGTSTYLE_Border (1L << 2) 15 #define FWL_WGTSTYLE_VScroll (1L << 11) 16 #define FWL_WGTSTYLE_Group (1L << 22) 17 #define FWL_WGTSTYLE_NoBackground (1L << 28) 18 19 #define FWL_WGTSTATE_Disabled (1L << 2) 20 #define FWL_WGTSTATE_Focused (1L << 4) 21 #define FWL_WGTSTATE_Invisible (1L << 5) 22 #define FWL_WGTSTATE_MAX (6) 23 24 // Same as enum FWL_VKEYCODE in public/fpdf_fwlevent.h, but duplicated to keep 25 // xfa/fwl standalone. 26 enum XFA_FWL_VKEYCODE { 27 XFA_FWL_VKEY_Back = 0x08, 28 XFA_FWL_VKEY_Tab = 0x09, 29 XFA_FWL_VKEY_NewLine = 0x0A, 30 XFA_FWL_VKEY_Clear = 0x0C, 31 XFA_FWL_VKEY_Return = 0x0D, 32 XFA_FWL_VKEY_Shift = 0x10, 33 XFA_FWL_VKEY_Control = 0x11, 34 XFA_FWL_VKEY_Menu = 0x12, 35 XFA_FWL_VKEY_Pause = 0x13, 36 XFA_FWL_VKEY_Capital = 0x14, 37 XFA_FWL_VKEY_Kana = 0x15, 38 XFA_FWL_VKEY_Hangul = 0x15, 39 XFA_FWL_VKEY_Junja = 0x17, 40 XFA_FWL_VKEY_Final = 0x18, 41 XFA_FWL_VKEY_Hanja = 0x19, 42 XFA_FWL_VKEY_Kanji = 0x19, 43 XFA_FWL_VKEY_Escape = 0x1B, 44 XFA_FWL_VKEY_Convert = 0x1C, 45 XFA_FWL_VKEY_NonConvert = 0x1D, 46 XFA_FWL_VKEY_Accept = 0x1E, 47 XFA_FWL_VKEY_ModeChange = 0x1F, 48 XFA_FWL_VKEY_Space = 0x20, 49 XFA_FWL_VKEY_Prior = 0x21, 50 XFA_FWL_VKEY_Next = 0x22, 51 XFA_FWL_VKEY_End = 0x23, 52 XFA_FWL_VKEY_Home = 0x24, 53 XFA_FWL_VKEY_Left = 0x25, 54 XFA_FWL_VKEY_Up = 0x26, 55 XFA_FWL_VKEY_Right = 0x27, 56 XFA_FWL_VKEY_Down = 0x28, 57 XFA_FWL_VKEY_Select = 0x29, 58 XFA_FWL_VKEY_Print = 0x2A, 59 XFA_FWL_VKEY_Execute = 0x2B, 60 XFA_FWL_VKEY_Snapshot = 0x2C, 61 XFA_FWL_VKEY_Insert = 0x2D, 62 XFA_FWL_VKEY_Delete = 0x2E, 63 XFA_FWL_VKEY_Help = 0x2F, 64 XFA_FWL_VKEY_0 = 0x30, 65 XFA_FWL_VKEY_1 = 0x31, 66 XFA_FWL_VKEY_2 = 0x32, 67 XFA_FWL_VKEY_3 = 0x33, 68 XFA_FWL_VKEY_4 = 0x34, 69 XFA_FWL_VKEY_5 = 0x35, 70 XFA_FWL_VKEY_6 = 0x36, 71 XFA_FWL_VKEY_7 = 0x37, 72 XFA_FWL_VKEY_8 = 0x38, 73 XFA_FWL_VKEY_9 = 0x39, 74 XFA_FWL_VKEY_A = 0x41, 75 XFA_FWL_VKEY_B = 0x42, 76 XFA_FWL_VKEY_C = 0x43, 77 XFA_FWL_VKEY_D = 0x44, 78 XFA_FWL_VKEY_E = 0x45, 79 XFA_FWL_VKEY_F = 0x46, 80 XFA_FWL_VKEY_G = 0x47, 81 XFA_FWL_VKEY_H = 0x48, 82 XFA_FWL_VKEY_I = 0x49, 83 XFA_FWL_VKEY_J = 0x4A, 84 XFA_FWL_VKEY_K = 0x4B, 85 XFA_FWL_VKEY_L = 0x4C, 86 XFA_FWL_VKEY_M = 0x4D, 87 XFA_FWL_VKEY_N = 0x4E, 88 XFA_FWL_VKEY_O = 0x4F, 89 XFA_FWL_VKEY_P = 0x50, 90 XFA_FWL_VKEY_Q = 0x51, 91 XFA_FWL_VKEY_R = 0x52, 92 XFA_FWL_VKEY_S = 0x53, 93 XFA_FWL_VKEY_T = 0x54, 94 XFA_FWL_VKEY_U = 0x55, 95 XFA_FWL_VKEY_V = 0x56, 96 XFA_FWL_VKEY_W = 0x57, 97 XFA_FWL_VKEY_X = 0x58, 98 XFA_FWL_VKEY_Y = 0x59, 99 XFA_FWL_VKEY_Z = 0x5A, 100 XFA_FWL_VKEY_LWin = 0x5B, 101 XFA_FWL_VKEY_Command = 0x5B, 102 XFA_FWL_VKEY_RWin = 0x5C, 103 XFA_FWL_VKEY_Apps = 0x5D, 104 XFA_FWL_VKEY_Sleep = 0x5F, 105 XFA_FWL_VKEY_NumPad0 = 0x60, 106 XFA_FWL_VKEY_NumPad1 = 0x61, 107 XFA_FWL_VKEY_NumPad2 = 0x62, 108 XFA_FWL_VKEY_NumPad3 = 0x63, 109 XFA_FWL_VKEY_NumPad4 = 0x64, 110 XFA_FWL_VKEY_NumPad5 = 0x65, 111 XFA_FWL_VKEY_NumPad6 = 0x66, 112 XFA_FWL_VKEY_NumPad7 = 0x67, 113 XFA_FWL_VKEY_NumPad8 = 0x68, 114 XFA_FWL_VKEY_NumPad9 = 0x69, 115 XFA_FWL_VKEY_Multiply = 0x6A, 116 XFA_FWL_VKEY_Add = 0x6B, 117 XFA_FWL_VKEY_Separator = 0x6C, 118 XFA_FWL_VKEY_Subtract = 0x6D, 119 XFA_FWL_VKEY_Decimal = 0x6E, 120 XFA_FWL_VKEY_Divide = 0x6F, 121 XFA_FWL_VKEY_F1 = 0x70, 122 XFA_FWL_VKEY_F2 = 0x71, 123 XFA_FWL_VKEY_F3 = 0x72, 124 XFA_FWL_VKEY_F4 = 0x73, 125 XFA_FWL_VKEY_F5 = 0x74, 126 XFA_FWL_VKEY_F6 = 0x75, 127 XFA_FWL_VKEY_F7 = 0x76, 128 XFA_FWL_VKEY_F8 = 0x77, 129 XFA_FWL_VKEY_F9 = 0x78, 130 XFA_FWL_VKEY_F10 = 0x79, 131 XFA_FWL_VKEY_F11 = 0x7A, 132 XFA_FWL_VKEY_F12 = 0x7B, 133 XFA_FWL_VKEY_F13 = 0x7C, 134 XFA_FWL_VKEY_F14 = 0x7D, 135 XFA_FWL_VKEY_F15 = 0x7E, 136 XFA_FWL_VKEY_F16 = 0x7F, 137 XFA_FWL_VKEY_F17 = 0x80, 138 XFA_FWL_VKEY_F18 = 0x81, 139 XFA_FWL_VKEY_F19 = 0x82, 140 XFA_FWL_VKEY_F20 = 0x83, 141 XFA_FWL_VKEY_F21 = 0x84, 142 XFA_FWL_VKEY_F22 = 0x85, 143 XFA_FWL_VKEY_F23 = 0x86, 144 XFA_FWL_VKEY_F24 = 0x87, 145 XFA_FWL_VKEY_NunLock = 0x90, 146 XFA_FWL_VKEY_Scroll = 0x91, 147 XFA_FWL_VKEY_LShift = 0xA0, 148 XFA_FWL_VKEY_RShift = 0xA1, 149 XFA_FWL_VKEY_LControl = 0xA2, 150 XFA_FWL_VKEY_RControl = 0xA3, 151 XFA_FWL_VKEY_LMenu = 0xA4, 152 XFA_FWL_VKEY_RMenu = 0xA5, 153 XFA_FWL_VKEY_BROWSER_Back = 0xA6, 154 XFA_FWL_VKEY_BROWSER_Forward = 0xA7, 155 XFA_FWL_VKEY_BROWSER_Refresh = 0xA8, 156 XFA_FWL_VKEY_BROWSER_Stop = 0xA9, 157 XFA_FWL_VKEY_BROWSER_Search = 0xAA, 158 XFA_FWL_VKEY_BROWSER_Favorites = 0xAB, 159 XFA_FWL_VKEY_BROWSER_Home = 0xAC, 160 XFA_FWL_VKEY_VOLUME_Mute = 0xAD, 161 XFA_FWL_VKEY_VOLUME_Down = 0xAE, 162 XFA_FWL_VKEY_VOLUME_Up = 0xAF, 163 XFA_FWL_VKEY_MEDIA_NEXT_Track = 0xB0, 164 XFA_FWL_VKEY_MEDIA_PREV_Track = 0xB1, 165 XFA_FWL_VKEY_MEDIA_Stop = 0xB2, 166 XFA_FWL_VKEY_MEDIA_PLAY_Pause = 0xB3, 167 XFA_FWL_VKEY_MEDIA_LAUNCH_Mail = 0xB4, 168 XFA_FWL_VKEY_MEDIA_LAUNCH_MEDIA_Select = 0xB5, 169 XFA_FWL_VKEY_MEDIA_LAUNCH_APP1 = 0xB6, 170 XFA_FWL_VKEY_MEDIA_LAUNCH_APP2 = 0xB7, 171 XFA_FWL_VKEY_OEM_1 = 0xBA, 172 XFA_FWL_VKEY_OEM_Plus = 0xBB, 173 XFA_FWL_VKEY_OEM_Comma = 0xBC, 174 XFA_FWL_VKEY_OEM_Minus = 0xBD, 175 XFA_FWL_VKEY_OEM_Period = 0xBE, 176 XFA_FWL_VKEY_OEM_2 = 0xBF, 177 XFA_FWL_VKEY_OEM_3 = 0xC0, 178 XFA_FWL_VKEY_OEM_4 = 0xDB, 179 XFA_FWL_VKEY_OEM_5 = 0xDC, 180 XFA_FWL_VKEY_OEM_6 = 0xDD, 181 XFA_FWL_VKEY_OEM_7 = 0xDE, 182 XFA_FWL_VKEY_OEM_8 = 0xDF, 183 XFA_FWL_VKEY_OEM_102 = 0xE2, 184 XFA_FWL_VKEY_ProcessKey = 0xE5, 185 XFA_FWL_VKEY_Packet = 0xE7, 186 XFA_FWL_VKEY_Attn = 0xF6, 187 XFA_FWL_VKEY_Crsel = 0xF7, 188 XFA_FWL_VKEY_Exsel = 0xF8, 189 XFA_FWL_VKEY_Ereof = 0xF9, 190 XFA_FWL_VKEY_Play = 0xFA, 191 XFA_FWL_VKEY_Zoom = 0xFB, 192 XFA_FWL_VKEY_NoName = 0xFC, 193 XFA_FWL_VKEY_PA1 = 0xFD, 194 XFA_FWL_VKEY_OEM_Clear = 0xFE, 195 XFA_FWL_VKEY_Unknown = 0, 196 }; 197 198 #endif // XFA_FWL_FWL_WIDGETDEF_H_ 199