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 FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ |
8 #define FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ | 8 #define FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ |
9 | 9 |
10 #include "core/include/fpdfapi/fpdf_parser.h" | 10 #include "core/include/fpdfapi/fpdf_parser.h" |
11 #include "core/include/fxcrt/fx_coordinates.h" | 11 #include "core/include/fxcrt/fx_coordinates.h" |
12 #include "core/include/fxcrt/fx_system.h" | 12 #include "core/include/fxcrt/fx_system.h" |
13 | 13 |
14 class CPDF_Document; | 14 class CPDF_Document; |
15 class CPDF_Font; | 15 class CPDF_Font; |
16 | 16 |
17 typedef void* FX_HWND; | 17 typedef void* FX_HWND; |
18 typedef void* FX_HMENU; | 18 typedef void* FX_HMENU; |
19 typedef void (*TimerCallback)(int32_t idEvent); | 19 typedef void (*TimerCallback)(int32_t idEvent); |
20 | 20 |
21 typedef struct _FX_SYSTEMTIME { | 21 struct FX_SYSTEMTIME { |
22 _FX_SYSTEMTIME() | 22 FX_SYSTEMTIME() |
23 : wYear(0), | 23 : wYear(0), |
24 wMonth(0), | 24 wMonth(0), |
25 wDayOfWeek(0), | 25 wDayOfWeek(0), |
26 wDay(0), | 26 wDay(0), |
27 wHour(0), | 27 wHour(0), |
28 wMinute(0), | 28 wMinute(0), |
29 wSecond(0), | 29 wSecond(0), |
30 wMilliseconds(0) {} | 30 wMilliseconds(0) {} |
31 FX_WORD wYear; | 31 FX_WORD wYear; |
32 FX_WORD wMonth; | 32 FX_WORD wMonth; |
33 FX_WORD wDayOfWeek; | 33 FX_WORD wDayOfWeek; |
34 FX_WORD wDay; | 34 FX_WORD wDay; |
35 FX_WORD wHour; | 35 FX_WORD wHour; |
36 FX_WORD wMinute; | 36 FX_WORD wMinute; |
37 FX_WORD wSecond; | 37 FX_WORD wSecond; |
38 FX_WORD wMilliseconds; | 38 FX_WORD wMilliseconds; |
39 } FX_SYSTEMTIME; | 39 }; |
40 | 40 |
41 // cursor style | 41 // cursor style |
42 #define FXCT_ARROW 0 | 42 #define FXCT_ARROW 0 |
43 #define FXCT_NESW 1 | 43 #define FXCT_NESW 1 |
44 #define FXCT_NWSE 2 | 44 #define FXCT_NWSE 2 |
45 #define FXCT_VBEAM 3 | 45 #define FXCT_VBEAM 3 |
46 #define FXCT_HBEAM 4 | 46 #define FXCT_HBEAM 4 |
47 #define FXCT_HAND 5 | 47 #define FXCT_HAND 5 |
48 | 48 |
49 class IFX_SystemHandler { | 49 class IFX_SystemHandler { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 virtual FX_BOOL IsALTKeyDown(FX_DWORD nFlag) = 0; | 98 virtual FX_BOOL IsALTKeyDown(FX_DWORD nFlag) = 0; |
99 virtual FX_BOOL IsINSERTKeyDown(FX_DWORD nFlag) = 0; | 99 virtual FX_BOOL IsINSERTKeyDown(FX_DWORD nFlag) = 0; |
100 | 100 |
101 virtual FX_SYSTEMTIME GetLocalTime() = 0; | 101 virtual FX_SYSTEMTIME GetLocalTime() = 0; |
102 | 102 |
103 virtual int32_t GetCharSet() = 0; | 103 virtual int32_t GetCharSet() = 0; |
104 virtual void SetCharSet(int32_t nCharSet) = 0; | 104 virtual void SetCharSet(int32_t nCharSet) = 0; |
105 }; | 105 }; |
106 | 106 |
107 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ | 107 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ |
OLD | NEW |