| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "../../include/javascript/JavaScript.h" | 7 #include "../../include/javascript/JavaScript.h" |
| 8 #include "../../include/javascript/IJavaScript.h" | 8 #include "../../include/javascript/IJavaScript.h" |
| 9 #include "../../include/javascript/JS_Define.h" | 9 #include "../../include/javascript/JS_Define.h" |
| 10 #include "../../include/javascript/JS_Object.h" | 10 #include "../../include/javascript/JS_Object.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 JS_STATIC_CONST_ENTRY_NUMBER(hidden, 1) | 30 JS_STATIC_CONST_ENTRY_NUMBER(hidden, 1) |
| 31 JS_STATIC_CONST_ENTRY_NUMBER(noPrint, 2) | 31 JS_STATIC_CONST_ENTRY_NUMBER(noPrint, 2) |
| 32 JS_STATIC_CONST_ENTRY_NUMBER(noView, 3) | 32 JS_STATIC_CONST_ENTRY_NUMBER(noView, 3) |
| 33 END_JS_STATIC_CONST() | 33 END_JS_STATIC_CONST() |
| 34 | 34 |
| 35 IMPLEMENT_JS_CLASS_CONST(CJS_Display, display) | 35 IMPLEMENT_JS_CLASS_CONST(CJS_Display, display) |
| 36 | 36 |
| 37 /* ------------------------------ font ------------------------------ */ | 37 /* ------------------------------ font ------------------------------ */ |
| 38 | 38 |
| 39 BEGIN_JS_STATIC_CONST(CJS_Font) | 39 BEGIN_JS_STATIC_CONST(CJS_Font) |
| 40 JS_STATIC_CONST_ENTRY_STRING(Times, Times - Roman) | 40 JS_STATIC_CONST_ENTRY_STRING(Times, Times-Roman) |
| 41 JS_STATIC_CONST_ENTRY_STRING(TimesB, Times - Bold) | 41 JS_STATIC_CONST_ENTRY_STRING(TimesB, Times-Bold) |
| 42 JS_STATIC_CONST_ENTRY_STRING(TimesI, Times - Italic) | 42 JS_STATIC_CONST_ENTRY_STRING(TimesI, Times-Italic) |
| 43 JS_STATIC_CONST_ENTRY_STRING(TimesBI, Times - BoldItalic) | 43 JS_STATIC_CONST_ENTRY_STRING(TimesBI, Times-BoldItalic) |
| 44 JS_STATIC_CONST_ENTRY_STRING(Helv, Helvetica) | 44 JS_STATIC_CONST_ENTRY_STRING(Helv, Helvetica) |
| 45 JS_STATIC_CONST_ENTRY_STRING(HelvB, Helvetica - Bold) | 45 JS_STATIC_CONST_ENTRY_STRING(HelvB, Helvetica-Bold) |
| 46 JS_STATIC_CONST_ENTRY_STRING(HelvI, Helvetica - Oblique) | 46 JS_STATIC_CONST_ENTRY_STRING(HelvI, Helvetica-Oblique) |
| 47 JS_STATIC_CONST_ENTRY_STRING(HelvBI, Helvetica - BoldOblique) | 47 JS_STATIC_CONST_ENTRY_STRING(HelvBI, Helvetica-BoldOblique) |
| 48 JS_STATIC_CONST_ENTRY_STRING(Cour, Courier) | 48 JS_STATIC_CONST_ENTRY_STRING(Cour, Courier) |
| 49 JS_STATIC_CONST_ENTRY_STRING(CourB, Courier - Bold) | 49 JS_STATIC_CONST_ENTRY_STRING(CourB, Courier-Bold) |
| 50 JS_STATIC_CONST_ENTRY_STRING(CourI, Courier - Oblique) | 50 JS_STATIC_CONST_ENTRY_STRING(CourI, Courier-Oblique) |
| 51 JS_STATIC_CONST_ENTRY_STRING(CourBI, Courier - BoldOblique) | 51 JS_STATIC_CONST_ENTRY_STRING(CourBI, Courier-BoldOblique) |
| 52 JS_STATIC_CONST_ENTRY_STRING(Symbol, Symbol) | 52 JS_STATIC_CONST_ENTRY_STRING(Symbol, Symbol) |
| 53 JS_STATIC_CONST_ENTRY_STRING(ZapfD, ZapfDingbats) | 53 JS_STATIC_CONST_ENTRY_STRING(ZapfD, ZapfDingbats) |
| 54 END_JS_STATIC_CONST() | 54 END_JS_STATIC_CONST() |
| 55 | 55 |
| 56 IMPLEMENT_JS_CLASS_CONST(CJS_Font, font) | 56 IMPLEMENT_JS_CLASS_CONST(CJS_Font, font) |
| 57 | 57 |
| 58 /* ------------------------------ highlight ------------------------------ */ | 58 /* ------------------------------ highlight ------------------------------ */ |
| 59 | 59 |
| 60 BEGIN_JS_STATIC_CONST(CJS_Highlight) | 60 BEGIN_JS_STATIC_CONST(CJS_Highlight) |
| 61 JS_STATIC_CONST_ENTRY_STRING(n, none) | 61 JS_STATIC_CONST_ENTRY_STRING(n, none) |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 { | 256 { |
| 257 const FX_WCHAR* ArrayName = L"RE_SSN_COMMIT"; | 257 const FX_WCHAR* ArrayName = L"RE_SSN_COMMIT"; |
| 258 const FX_WCHAR* ArrayContent[] = { | 258 const FX_WCHAR* ArrayContent[] = { |
| 259 L"\\d{3}(\\.|[- ])?\\d{2}(\\.|[- ])?\\d{4}"}; | 259 L"\\d{3}(\\.|[- ])?\\d{2}(\\.|[- ])?\\d{4}"}; |
| 260 DEFINE_GLOBAL_ARRAY(pRuntime); | 260 DEFINE_GLOBAL_ARRAY(pRuntime); |
| 261 } | 261 } |
| 262 | 262 |
| 263 return 0; | 263 return 0; |
| 264 } | 264 } |
| OLD | NEW |