| 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 #ifndef _PUBLICMETHODS_H_ | 7 #ifndef _PUBLICMETHODS_H_ |
| 8 #define _PUBLICMETHODS_H_ | 8 #define _PUBLICMETHODS_H_ |
| 9 | 9 |
| 10 class CJS_PublicMethods : public CJS_Object | 10 class CJS_PublicMethods : public CJS_Object |
| 11 { | 11 { |
| 12 public: | 12 public: |
| 13 CJS_PublicMethods(JSFXObject pObject) : CJS_Object(pObject) {}; | 13 CJS_PublicMethods(JSFXObject pObject) : CJS_Object(pObject) {}; |
| 14 virtual ~CJS_PublicMethods(void){}; | 14 virtual ~CJS_PublicMethods(void){}; |
| 15 | 15 |
| 16 public: | 16 public: |
| 17 » static FX_BOOL AFNumber_Format(OBJ_METHOD_PARAMS); | 17 » static FX_BOOL AFNumber_Format(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); |
| 18 » static FX_BOOL AFNumber_Keystroke(OBJ_METHOD_PARAMS); | 18 » static FX_BOOL AFNumber_Keystroke(IFXJS_Context* cc, const CJS_Parameter
s& params, CJS_Value& vRet, JS_ErrorString& sError); |
| 19 » static FX_BOOL AFPercent_Format(OBJ_METHOD_PARAMS); | 19 » static FX_BOOL AFPercent_Format(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); |
| 20 » static FX_BOOL AFPercent_Keystroke(OBJ_METHOD_PARAMS); | 20 » static FX_BOOL AFPercent_Keystroke(IFXJS_Context* cc, const CJS_Paramete
rs& params, CJS_Value& vRet, JS_ErrorString& sError); |
| 21 » static FX_BOOL AFDate_FormatEx(OBJ_METHOD_PARAMS); | 21 » static FX_BOOL AFDate_FormatEx(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); |
| 22 » static FX_BOOL AFDate_KeystrokeEx(OBJ_METHOD_PARAMS); | 22 » static FX_BOOL AFDate_KeystrokeEx(IFXJS_Context* cc, const CJS_Parameter
s& params, CJS_Value& vRet, JS_ErrorString& sError); |
| 23 » static FX_BOOL AFDate_Format(OBJ_METHOD_PARAMS); | 23 » static FX_BOOL AFDate_Format(IFXJS_Context* cc, const CJS_Parameters& pa
rams, CJS_Value& vRet, JS_ErrorString& sError); |
| 24 » static FX_BOOL AFDate_Keystroke(OBJ_METHOD_PARAMS); | 24 » static FX_BOOL AFDate_Keystroke(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); |
| 25 » static FX_BOOL AFTime_FormatEx(OBJ_METHOD_PARAMS); // | 25 » static FX_BOOL AFTime_FormatEx(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); // |
| 26 » static FX_BOOL AFTime_KeystrokeEx(OBJ_METHOD_PARAMS); | 26 » static FX_BOOL AFTime_KeystrokeEx(IFXJS_Context* cc, const CJS_Parameter
s& params, CJS_Value& vRet, JS_ErrorString& sError); |
| 27 » static FX_BOOL AFTime_Format(OBJ_METHOD_PARAMS); | 27 » static FX_BOOL AFTime_Format(IFXJS_Context* cc, const CJS_Parameters& pa
rams, CJS_Value& vRet, JS_ErrorString& sError); |
| 28 » static FX_BOOL AFTime_Keystroke(OBJ_METHOD_PARAMS); | 28 » static FX_BOOL AFTime_Keystroke(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); |
| 29 » static FX_BOOL AFSpecial_Format(OBJ_METHOD_PARAMS); | 29 » static FX_BOOL AFSpecial_Format(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); |
| 30 » static FX_BOOL AFSpecial_Keystroke(OBJ_METHOD_PARAMS); | 30 » static FX_BOOL AFSpecial_Keystroke(IFXJS_Context* cc, const CJS_Paramete
rs& params, CJS_Value& vRet, JS_ErrorString& sError); |
| 31 » static FX_BOOL AFSpecial_KeystrokeEx(OBJ_METHOD_PARAMS);// | 31 » static FX_BOOL AFSpecial_KeystrokeEx(IFXJS_Context* cc, const CJS_Parame
ters& params, CJS_Value& vRet, JS_ErrorString& sError);// |
| 32 » static FX_BOOL AFSimple(OBJ_METHOD_PARAMS); | 32 » static FX_BOOL AFSimple(IFXJS_Context* cc, const CJS_Parameters& params,
CJS_Value& vRet, JS_ErrorString& sError); |
| 33 » static FX_BOOL AFMakeNumber(OBJ_METHOD_PARAMS); | 33 » static FX_BOOL AFMakeNumber(IFXJS_Context* cc, const CJS_Parameters& par
ams, CJS_Value& vRet, JS_ErrorString& sError); |
| 34 » static FX_BOOL AFSimple_Calculate(OBJ_METHOD_PARAMS); | 34 » static FX_BOOL AFSimple_Calculate(IFXJS_Context* cc, const CJS_Parameter
s& params, CJS_Value& vRet, JS_ErrorString& sError); |
| 35 » static FX_BOOL AFRange_Validate(OBJ_METHOD_PARAMS); | 35 » static FX_BOOL AFRange_Validate(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, JS_ErrorString& sError); |
| 36 » static FX_BOOL AFMergeChange(OBJ_METHOD_PARAMS); | 36 » static FX_BOOL AFMergeChange(IFXJS_Context* cc, const CJS_Parameters& pa
rams, CJS_Value& vRet, JS_ErrorString& sError); |
| 37 » static FX_BOOL AFParseDateEx(OBJ_METHOD_PARAMS); | 37 » static FX_BOOL AFParseDateEx(IFXJS_Context* cc, const CJS_Parameters& pa
rams, CJS_Value& vRet, JS_ErrorString& sError); |
| 38 » static FX_BOOL AFExtractNums(OBJ_METHOD_PARAMS); | 38 » static FX_BOOL AFExtractNums(IFXJS_Context* cc, const CJS_Parameters& pa
rams, CJS_Value& vRet, JS_ErrorString& sError); |
| 39 | 39 |
| 40 public: | 40 public: |
| 41 JS_STATIC_GLOBAL_FUN(AFNumber_Format); | 41 JS_STATIC_GLOBAL_FUN(AFNumber_Format); |
| 42 JS_STATIC_GLOBAL_FUN(AFNumber_Keystroke); | 42 JS_STATIC_GLOBAL_FUN(AFNumber_Keystroke); |
| 43 JS_STATIC_GLOBAL_FUN(AFPercent_Format); | 43 JS_STATIC_GLOBAL_FUN(AFPercent_Format); |
| 44 JS_STATIC_GLOBAL_FUN(AFPercent_Keystroke); | 44 JS_STATIC_GLOBAL_FUN(AFPercent_Keystroke); |
| 45 JS_STATIC_GLOBAL_FUN(AFDate_FormatEx); | 45 JS_STATIC_GLOBAL_FUN(AFDate_FormatEx); |
| 46 JS_STATIC_GLOBAL_FUN(AFDate_KeystrokeEx); | 46 JS_STATIC_GLOBAL_FUN(AFDate_KeystrokeEx); |
| 47 JS_STATIC_GLOBAL_FUN(AFDate_Format); | 47 JS_STATIC_GLOBAL_FUN(AFDate_Format); |
| 48 JS_STATIC_GLOBAL_FUN(AFDate_Keystroke); | 48 JS_STATIC_GLOBAL_FUN(AFDate_Keystroke); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 static FX_BOOL IsAlphaNumeric(wchar_t ch); | 92 static FX_BOOL IsAlphaNumeric(wchar_t ch); |
| 93 | 93 |
| 94 static FX_BOOL maskSatisfied(wchar_t c_Change,wchar_t c
_Mask); | 94 static FX_BOOL maskSatisfied(wchar_t c_Change,wchar_t c
_Mask); |
| 95 static FX_BOOL isReservedMaskChar(wchar_t ch); | 95 static FX_BOOL isReservedMaskChar(wchar_t ch); |
| 96 | 96 |
| 97 static double AF_Simple(FX_LPCWSTR sFuction, double dV
alue1, double dValue2); | 97 static double AF_Simple(FX_LPCWSTR sFuction, double dV
alue1, double dValue2); |
| 98 static CJS_Array AF_MakeArrayFromList(v8::Isolate* isolat
e, CJS_Value val); | 98 static CJS_Array AF_MakeArrayFromList(v8::Isolate* isolat
e, CJS_Value val); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 #endif //_PUBLICMETHODS_H_ | 101 #endif //_PUBLICMETHODS_H_ |
| OLD | NEW |