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 7 #include "xfa/fxfa/parser/xfa_basic_data.h" 8 9 #include "xfa/fxfa/fxfa_basic.h" 10 11 const XFA_AttributeEnumInfo g_XFAEnumData[] = { 12 {0x2a, L"*", XFA_AttributeEnum::Asterisk}, 13 {0x2f, L"/", XFA_AttributeEnum::Slash}, 14 {0x5c, L"\\", XFA_AttributeEnum::Backslash}, 15 {0x239bd, L"on", XFA_AttributeEnum::On}, 16 {0x25356, L"tb", XFA_AttributeEnum::Tb}, 17 {0x25885, L"up", XFA_AttributeEnum::Up}, 18 {0x91b281, L"metaData", XFA_AttributeEnum::MetaData}, 19 {0x1f8dedb, L"delegate", XFA_AttributeEnum::Delegate}, 20 {0x2a6c55a, L"postSubmit", XFA_AttributeEnum::PostSubmit}, 21 {0x31b19c1, L"name", XFA_AttributeEnum::Name}, 22 {0x378a38a, L"cross", XFA_AttributeEnum::Cross}, 23 {0x3848b3f, L"next", XFA_AttributeEnum::Next}, 24 {0x48b6670, L"none", XFA_AttributeEnum::None}, 25 {0x51aafe5, L"shortEdge", XFA_AttributeEnum::ShortEdge}, 26 {0x55264c4, L"1mod10_1mod11", XFA_AttributeEnum::Checksum_1mod10_1mod11}, 27 {0x5a5c519, L"height", XFA_AttributeEnum::Height}, 28 {0x89ce549, L"crossDiagonal", XFA_AttributeEnum::CrossDiagonal}, 29 {0x9f9d0f9, L"all", XFA_AttributeEnum::All}, 30 {0x9f9db48, L"any", XFA_AttributeEnum::Any}, 31 {0xa126261, L"toRight", XFA_AttributeEnum::ToRight}, 32 {0xa36de29, L"matchTemplate", XFA_AttributeEnum::MatchTemplate}, 33 {0xa48d040, L"dpl", XFA_AttributeEnum::Dpl}, 34 {0xa559c05, L"invisible", XFA_AttributeEnum::Invisible}, 35 {0xa7d48e3, L"fit", XFA_AttributeEnum::Fit}, 36 {0xa8a8f80, L"width", XFA_AttributeEnum::Width}, 37 {0xab466bb, L"preSubmit", XFA_AttributeEnum::PreSubmit}, 38 {0xacc5785, L"ipl", XFA_AttributeEnum::Ipl}, 39 {0xafab0f8, L"flateCompress", XFA_AttributeEnum::FlateCompress}, 40 {0xb355816, L"med", XFA_AttributeEnum::Med}, 41 {0xb69ef77, L"odd", XFA_AttributeEnum::Odd}, 42 {0xb69f9bb, L"off", XFA_AttributeEnum::Off}, 43 {0xb843dba, L"pdf", XFA_AttributeEnum::Pdf}, 44 {0xbb912b8, L"row", XFA_AttributeEnum::Row}, 45 {0xbedaf33, L"top", XFA_AttributeEnum::Top}, 46 {0xc56afcc, L"xdp", XFA_AttributeEnum::Xdp}, 47 {0xc56ba02, L"xfd", XFA_AttributeEnum::Xfd}, 48 {0xc56ddf1, L"xml", XFA_AttributeEnum::Xml}, 49 {0xc8b65f3, L"zip", XFA_AttributeEnum::Zip}, 50 {0xc8b89d6, L"zpl", XFA_AttributeEnum::Zpl}, 51 {0xf55d7ee, L"visible", XFA_AttributeEnum::Visible}, 52 {0xfe3596a, L"exclude", XFA_AttributeEnum::Exclude}, 53 {0x109d7ce7, L"mouseEnter", XFA_AttributeEnum::MouseEnter}, 54 {0x10f1bc0c, L"pair", XFA_AttributeEnum::Pair}, 55 {0x1154efe6, L"filter", XFA_AttributeEnum::Filter}, 56 {0x125bc94b, L"moveLast", XFA_AttributeEnum::MoveLast}, 57 {0x12e1f1f0, L"exportAndImport", XFA_AttributeEnum::ExportAndImport}, 58 {0x13000c60, L"push", XFA_AttributeEnum::Push}, 59 {0x138ee315, L"portrait", XFA_AttributeEnum::Portrait}, 60 {0x14da2125, L"default", XFA_AttributeEnum::Default}, 61 {0x157749a5, L"storedProc", XFA_AttributeEnum::StoredProc}, 62 {0x16641198, L"stayBOF", XFA_AttributeEnum::StayBOF}, 63 {0x16b2fc5b, L"stayEOF", XFA_AttributeEnum::StayEOF}, 64 {0x17fad373, L"postPrint", XFA_AttributeEnum::PostPrint}, 65 {0x193207d0, L"usCarrier", XFA_AttributeEnum::UsCarrier}, 66 {0x193ade3e, L"right", XFA_AttributeEnum::Right}, 67 {0x1bfc72d9, L"preOpen", XFA_AttributeEnum::PreOpen}, 68 {0x1cc9317a, L"actual", XFA_AttributeEnum::Actual}, 69 {0x1f31df1e, L"rest", XFA_AttributeEnum::Rest}, 70 {0x1fb1bf14, L"topCenter", XFA_AttributeEnum::TopCenter}, 71 {0x207de667, L"standardSymbol", XFA_AttributeEnum::StandardSymbol}, 72 {0x2196a452, L"initialize", XFA_AttributeEnum::Initialize}, 73 {0x23bd40c7, L"justifyAll", XFA_AttributeEnum::JustifyAll}, 74 {0x247cf3e9, L"normal", XFA_AttributeEnum::Normal}, 75 {0x25aa946b, L"landscape", XFA_AttributeEnum::Landscape}, 76 {0x2739b5c9, L"nonInteractive", XFA_AttributeEnum::NonInteractive}, 77 {0x27410f03, L"mouseExit", XFA_AttributeEnum::MouseExit}, 78 {0x2854e62c, L"minus", XFA_AttributeEnum::Minus}, 79 {0x287e936a, L"diagonalLeft", XFA_AttributeEnum::DiagonalLeft}, 80 {0x2972a98f, L"simplexPaginated", XFA_AttributeEnum::SimplexPaginated}, 81 {0x29d8225f, L"document", XFA_AttributeEnum::Document}, 82 {0x2a9d3016, L"warning", XFA_AttributeEnum::Warning}, 83 {0x2b35b6d9, L"auto", XFA_AttributeEnum::Auto}, 84 {0x2c1653d9, L"below", XFA_AttributeEnum::Below}, 85 {0x2c1f0540, L"bottomLeft", XFA_AttributeEnum::BottomLeft}, 86 {0x2c44e816, L"bottomCenter", XFA_AttributeEnum::BottomCenter}, 87 {0x2cd3e9f3, L"tcpl", XFA_AttributeEnum::Tcpl}, 88 {0x2d08af85, L"text", XFA_AttributeEnum::Text}, 89 {0x2dc478eb, L"grouping", XFA_AttributeEnum::Grouping}, 90 {0x2ef3afdd, L"secureSymbol", XFA_AttributeEnum::SecureSymbol}, 91 {0x2f2dd29a, L"preExecute", XFA_AttributeEnum::PreExecute}, 92 {0x33c43dec, L"docClose", XFA_AttributeEnum::DocClose}, 93 {0x33f25bb5, L"keyset", XFA_AttributeEnum::Keyset}, 94 {0x34e363da, L"vertical", XFA_AttributeEnum::Vertical}, 95 {0x361fa1b6, L"preSave", XFA_AttributeEnum::PreSave}, 96 {0x36f1c6d8, L"preSign", XFA_AttributeEnum::PreSign}, 97 {0x399f02b5, L"bottom", XFA_AttributeEnum::Bottom}, 98 {0x3b0ab096, L"toTop", XFA_AttributeEnum::ToTop}, 99 {0x3c752495, L"verify", XFA_AttributeEnum::Verify}, 100 {0x3ce05d68, L"first", XFA_AttributeEnum::First}, 101 {0x3ecead94, L"contentArea", XFA_AttributeEnum::ContentArea}, 102 {0x40623b5b, L"solid", XFA_AttributeEnum::Solid}, 103 {0x42c6cd8d, L"pessimistic", XFA_AttributeEnum::Pessimistic}, 104 {0x43ddc6bf, L"duplexPaginated", XFA_AttributeEnum::DuplexPaginated}, 105 {0x442f68c8, L"round", XFA_AttributeEnum::Round}, 106 {0x45efb847, L"remerge", XFA_AttributeEnum::Remerge}, 107 {0x46972265, L"ordered", XFA_AttributeEnum::Ordered}, 108 {0x46f95531, L"percent", XFA_AttributeEnum::Percent}, 109 {0x46fd25ae, L"even", XFA_AttributeEnum::Even}, 110 {0x4731d6ba, L"exit", XFA_AttributeEnum::Exit}, 111 {0x4977356b, L"toolTip", XFA_AttributeEnum::ToolTip}, 112 {0x49b980ee, L"orderedOccurrence", XFA_AttributeEnum::OrderedOccurrence}, 113 {0x4a7e2dfe, L"readOnly", XFA_AttributeEnum::ReadOnly}, 114 {0x4c4e8acb, L"currency", XFA_AttributeEnum::Currency}, 115 {0x4dcf25f8, L"concat", XFA_AttributeEnum::Concat}, 116 {0x4febb826, L"Thai", XFA_AttributeEnum::Thai}, 117 {0x50ef95b2, L"embossed", XFA_AttributeEnum::Embossed}, 118 {0x516e35ce, L"formdata", XFA_AttributeEnum::Formdata}, 119 {0x52fa6f0e, L"Greek", XFA_AttributeEnum::Greek}, 120 {0x54034c2f, L"decimal", XFA_AttributeEnum::Decimal}, 121 {0x542c7300, L"select", XFA_AttributeEnum::Select}, 122 {0x551f0ae5, L"longEdge", XFA_AttributeEnum::LongEdge}, 123 {0x55520a8a, L"protected", XFA_AttributeEnum::Protected}, 124 {0x559f76f3, L"bottomRight", XFA_AttributeEnum::BottomRight}, 125 {0x568cb500, L"zero", XFA_AttributeEnum::Zero}, 126 {0x56bcecb7, L"forwardOnly", XFA_AttributeEnum::ForwardOnly}, 127 {0x56bf456b, L"docReady", XFA_AttributeEnum::DocReady}, 128 {0x573cb40c, L"hidden", XFA_AttributeEnum::Hidden}, 129 {0x582e3424, L"include", XFA_AttributeEnum::Include}, 130 {0x58a3dd29, L"dashed", XFA_AttributeEnum::Dashed}, 131 {0x5955b22b, L"multiSelect", XFA_AttributeEnum::MultiSelect}, 132 {0x598d5c53, L"inactive", XFA_AttributeEnum::Inactive}, 133 {0x59c8f27d, L"embed", XFA_AttributeEnum::Embed}, 134 {0x5e7555e8, L"static", XFA_AttributeEnum::Static}, 135 {0x606d4def, L"onEntry", XFA_AttributeEnum::OnEntry}, 136 {0x6195eafb, L"Cyrillic", XFA_AttributeEnum::Cyrillic}, 137 {0x6491b0f3, L"nonBlank", XFA_AttributeEnum::NonBlank}, 138 {0x67bef031, L"topRight", XFA_AttributeEnum::TopRight}, 139 {0x67df5ebd, L"Hebrew", XFA_AttributeEnum::Hebrew}, 140 {0x6aea98be, L"topLeft", XFA_AttributeEnum::TopLeft}, 141 {0x6c51afc1, L"center", XFA_AttributeEnum::Center}, 142 {0x7145e6bf, L"moveFirst", XFA_AttributeEnum::MoveFirst}, 143 {0x7375465c, L"diamond", XFA_AttributeEnum::Diamond}, 144 {0x7461aef4, L"pageOdd", XFA_AttributeEnum::PageOdd}, 145 {0x75f8aeb2, L"1mod10", XFA_AttributeEnum::Checksum_1mod10}, 146 {0x76d708e0, L"Korean", XFA_AttributeEnum::Korean}, 147 {0x789f14d7, L"aboveEmbedded", XFA_AttributeEnum::AboveEmbedded}, 148 {0x792ea39f, L"zipCompress", XFA_AttributeEnum::ZipCompress}, 149 {0x7a5b7193, L"numeric", XFA_AttributeEnum::Numeric}, 150 {0x7abec0d2, L"circle", XFA_AttributeEnum::Circle}, 151 {0x7afbba38, L"toBottom", XFA_AttributeEnum::ToBottom}, 152 {0x7b95e661, L"inverted", XFA_AttributeEnum::Inverted}, 153 {0x7baca2e3, L"update", XFA_AttributeEnum::Update}, 154 {0x7eb5da2c, L"isoname", XFA_AttributeEnum::Isoname}, 155 {0x7f6fd3d7, L"server", XFA_AttributeEnum::Server}, 156 {0x814f82b5, L"position", XFA_AttributeEnum::Position}, 157 {0x82deacf0, L"middleCenter", XFA_AttributeEnum::MiddleCenter}, 158 {0x83a49dc6, L"optional", XFA_AttributeEnum::Optional}, 159 {0x861a116f, L"usePrinterSetting", XFA_AttributeEnum::UsePrinterSetting}, 160 {0x86701ce0, L"outline", XFA_AttributeEnum::Outline}, 161 {0x8808385e, L"indexChange", XFA_AttributeEnum::IndexChange}, 162 {0x891f4606, L"change", XFA_AttributeEnum::Change}, 163 {0x89939f36, L"pageArea", XFA_AttributeEnum::PageArea}, 164 {0x8b5c3b25, L"once", XFA_AttributeEnum::Once}, 165 {0x8b5c6962, L"only", XFA_AttributeEnum::Only}, 166 {0x8b90e1f2, L"open", XFA_AttributeEnum::Open}, 167 {0x8bcfe96e, L"caption", XFA_AttributeEnum::Caption}, 168 {0x8ce83ef8, L"raised", XFA_AttributeEnum::Raised}, 169 {0x8d269cae, L"justify", XFA_AttributeEnum::Justify}, 170 {0x8fd520dc, L"refAndDescendants", XFA_AttributeEnum::RefAndDescendants}, 171 {0x9041d4b0, L"short", XFA_AttributeEnum::Short}, 172 {0x90c94426, L"pageFront", XFA_AttributeEnum::PageFront}, 173 {0x936beee5, L"monospace", XFA_AttributeEnum::Monospace}, 174 {0x947fa00f, L"middle", XFA_AttributeEnum::Middle}, 175 {0x9528a7b4, L"prePrint", XFA_AttributeEnum::PrePrint}, 176 {0x959ab231, L"always", XFA_AttributeEnum::Always}, 177 {0x96d61bf0, L"unknown", XFA_AttributeEnum::Unknown}, 178 {0x997194ee, L"toLeft", XFA_AttributeEnum::ToLeft}, 179 {0x9a83a3cd, L"above", XFA_AttributeEnum::Above}, 180 {0x9d0d71c7, L"dashDot", XFA_AttributeEnum::DashDot}, 181 {0x9df56f3e, L"gregorian", XFA_AttributeEnum::Gregorian}, 182 {0x9f6723fd, L"Roman", XFA_AttributeEnum::Roman}, 183 {0x9f693b21, L"mouseDown", XFA_AttributeEnum::MouseDown}, 184 {0xa1429b36, L"symbol", XFA_AttributeEnum::Symbol}, 185 {0xa5aa45cb, L"pageEven", XFA_AttributeEnum::PageEven}, 186 {0xa68635f1, L"sign", XFA_AttributeEnum::Sign}, 187 {0xa7315093, L"addNew", XFA_AttributeEnum::AddNew}, 188 {0xa7a773fa, L"star", XFA_AttributeEnum::Star}, 189 {0xa7d57b45, L"optimistic", XFA_AttributeEnum::Optimistic}, 190 {0xa8077321, L"rl-tb", XFA_AttributeEnum::Rl_tb}, 191 {0xa8f1468d, L"middleRight", XFA_AttributeEnum::MiddleRight}, 192 {0xaa84a1f1, L"maintain", XFA_AttributeEnum::Maintain}, 193 {0xab40b12c, L"package", XFA_AttributeEnum::Package}, 194 {0xac8b4d85, L"SimplifiedChinese", XFA_AttributeEnum::SimplifiedChinese}, 195 {0xadae6744, L"toCenter", XFA_AttributeEnum::ToCenter}, 196 {0xb0129df1, L"back", XFA_AttributeEnum::Back}, 197 {0xb0f088cf, L"unspecified", XFA_AttributeEnum::Unspecified}, 198 {0xb1271067, L"batchOptimistic", XFA_AttributeEnum::BatchOptimistic}, 199 {0xb18313a1, L"bold", XFA_AttributeEnum::Bold}, 200 {0xb1833cad, L"both", XFA_AttributeEnum::Both}, 201 {0xb221123f, L"butt", XFA_AttributeEnum::Butt}, 202 {0xb40c36bf, L"client", XFA_AttributeEnum::Client}, 203 {0xb56c7053, L"2mod10", XFA_AttributeEnum::Checksum_2mod10}, 204 {0xb683a345, L"imageOnly", XFA_AttributeEnum::ImageOnly}, 205 {0xb7732dea, L"horizontal", XFA_AttributeEnum::Horizontal}, 206 {0xb88652a4, L"dotted", XFA_AttributeEnum::Dotted}, 207 {0xbb2f2880, L"userControl", XFA_AttributeEnum::UserControl}, 208 {0xbbb79c5d, L"diagonalRight", XFA_AttributeEnum::DiagonalRight}, 209 {0xbd077154, L"consumeData", XFA_AttributeEnum::ConsumeData}, 210 {0xbd3fb11e, L"check", XFA_AttributeEnum::Check}, 211 {0xbde9abda, L"data", XFA_AttributeEnum::Data}, 212 {0xbf5a02d8, L"down", XFA_AttributeEnum::Down}, 213 {0xbf7450ee, L"sansSerif", XFA_AttributeEnum::SansSerif}, 214 {0xc02d649f, L"inline", XFA_AttributeEnum::Inline}, 215 {0xc11a9e3a, L"TraditionalChinese", XFA_AttributeEnum::TraditionalChinese}, 216 {0xc16169d8, L"warn", XFA_AttributeEnum::Warn}, 217 {0xc16f071f, L"refOnly", XFA_AttributeEnum::RefOnly}, 218 {0xc27c8ba5, L"interactiveForms", XFA_AttributeEnum::InteractiveForms}, 219 {0xc2d1b15c, L"word", XFA_AttributeEnum::Word}, 220 {0xc3621288, L"unordered", XFA_AttributeEnum::Unordered}, 221 {0xc5251981, L"required", XFA_AttributeEnum::Required}, 222 {0xc7088e7d, L"importOnly", XFA_AttributeEnum::ImportOnly}, 223 {0xc72cf0e3, L"belowEmbedded", XFA_AttributeEnum::BelowEmbedded}, 224 {0xc819cf07, L"Japanese", XFA_AttributeEnum::Japanese}, 225 {0xcdce56b3, L"full", XFA_AttributeEnum::Full}, 226 {0xce0122e3, L"rl-row", XFA_AttributeEnum::Rl_row}, 227 {0xcf7d71f1, L"Vietnamese", XFA_AttributeEnum::Vietnamese}, 228 {0xcfde3e09, L"EastEuropeanRoman", XFA_AttributeEnum::EastEuropeanRoman}, 229 {0xd576d08e, L"mouseUp", XFA_AttributeEnum::MouseUp}, 230 {0xd7a92904, L"exportOnly", XFA_AttributeEnum::ExportOnly}, 231 {0xd8ed1467, L"clear", XFA_AttributeEnum::Clear}, 232 {0xd95657a6, L"click", XFA_AttributeEnum::Click}, 233 {0xd96c7de5, L"base64", XFA_AttributeEnum::Base64}, 234 {0xd9f47f36, L"close", XFA_AttributeEnum::Close}, 235 {0xdb075bde, L"host", XFA_AttributeEnum::Host}, 236 {0xdb103411, L"global", XFA_AttributeEnum::Global}, 237 {0xdb647188, L"blank", XFA_AttributeEnum::Blank}, 238 {0xdb9be968, L"table", XFA_AttributeEnum::Table}, 239 {0xdf590fbb, L"import", XFA_AttributeEnum::Import}, 240 {0xe0e573fb, L"custom", XFA_AttributeEnum::Custom}, 241 {0xe0ecc79a, L"middleLeft", XFA_AttributeEnum::MiddleLeft}, 242 {0xe1452019, L"postExecute", XFA_AttributeEnum::PostExecute}, 243 {0xe1911d98, L"radix", XFA_AttributeEnum::Radix}, 244 {0xe25fa7b8, L"postOpen", XFA_AttributeEnum::PostOpen}, 245 {0xe28dce7e, L"enter", XFA_AttributeEnum::Enter}, 246 {0xe2c44de4, L"ignore", XFA_AttributeEnum::Ignore}, 247 {0xe2cd8c61, L"lr-tb", XFA_AttributeEnum::Lr_tb}, 248 {0xe2da8336, L"fantasy", XFA_AttributeEnum::Fantasy}, 249 {0xe31d5396, L"italic", XFA_AttributeEnum::Italic}, 250 {0xe7ada113, L"author", XFA_AttributeEnum::Author}, 251 {0xe8e7cc18, L"toEdge", XFA_AttributeEnum::ToEdge}, 252 {0xe97aa98b, L"choice", XFA_AttributeEnum::Choice}, 253 {0xeafd2a38, L"disabled", XFA_AttributeEnum::Disabled}, 254 {0xeb2b7972, L"crossHatch", XFA_AttributeEnum::CrossHatch}, 255 {0xeb2db2d7, L"dataRef", XFA_AttributeEnum::DataRef}, 256 {0xec35dc6e, L"dashDotDot", XFA_AttributeEnum::DashDotDot}, 257 {0xef85d351, L"square", XFA_AttributeEnum::Square}, 258 {0xf2102445, L"dynamic", XFA_AttributeEnum::Dynamic}, 259 {0xf272c7be, L"manual", XFA_AttributeEnum::Manual}, 260 {0xf2bbb64d, L"etched", XFA_AttributeEnum::Etched}, 261 {0xf3b8fc6c, L"validationState", XFA_AttributeEnum::ValidationState}, 262 {0xf42f2b81, L"cursive", XFA_AttributeEnum::Cursive}, 263 {0xf54481d4, L"last", XFA_AttributeEnum::Last}, 264 {0xf5ad782b, L"left", XFA_AttributeEnum::Left}, 265 {0xf616da2e, L"link", XFA_AttributeEnum::Link}, 266 {0xf6b4afb0, L"long", XFA_AttributeEnum::Long}, 267 {0xf8636460, L"internationalCarrier", 268 XFA_AttributeEnum::InternationalCarrier}, 269 {0xf9fb37ac, L"PDF1.3", XFA_AttributeEnum::PDF1_3}, 270 {0xf9fb37af, L"PDF1.6", XFA_AttributeEnum::PDF1_6}, 271 {0xfbce7f19, L"serif", XFA_AttributeEnum::Serif}, 272 {0xfc82d695, L"postSave", XFA_AttributeEnum::PostSave}, 273 {0xfcef86b5, L"ready", XFA_AttributeEnum::Ready}, 274 {0xfd54fbb7, L"postSign", XFA_AttributeEnum::PostSign}, 275 {0xfdc0aae2, L"Arabic", XFA_AttributeEnum::Arabic}, 276 {0xfe06d2ca, L"error", XFA_AttributeEnum::Error}, 277 {0xfefc4885, L"urlencoded", XFA_AttributeEnum::Urlencoded}, 278 {0xff795ad2, L"lowered", XFA_AttributeEnum::Lowered}, 279 }; 280 const int32_t g_iXFAEnumCount = 281 sizeof(g_XFAEnumData) / sizeof(XFA_AttributeEnumInfo); 282