| 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 typedef void* FX_HWND; | 10 typedef void* FX_HWND; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #define FXCT_HBEAM 4 | 40 #define FXCT_HBEAM 4 |
| 41 #define FXCT_HAND 5 | 41 #define FXCT_HAND 5 |
| 42 | 42 |
| 43 class IFX_SystemHandler | 43 class IFX_SystemHandler |
| 44 { | 44 { |
| 45 public: | 45 public: |
| 46 virtual ~IFX_SystemHandler() {} | 46 virtual ~IFX_SystemHandler() {} |
| 47 virtual void InvalidateRect(FX_HWND hWnd, FX_
RECT rect) = 0; | 47 virtual void InvalidateRect(FX_HWND hWnd, FX_
RECT rect) = 0; |
| 48 virtual void OutputSelectedRect(void* pFormFi
ller, CPDF_Rect&rect) = 0; | 48 virtual void OutputSelectedRect(void* pFormFi
ller, CPDF_Rect&rect) = 0; |
| 49 | 49 |
| 50 » virtual FX_BOOL»» » » IsSelectionImplemented() = 0; | 50 » virtual bool» » » » IsSelectionImplemented() = 0; |
| 51 | 51 |
| 52 virtual CFX_WideString GetClipboardText(FX_HWND hWnd) = 0; | 52 virtual CFX_WideString GetClipboardText(FX_HWND hWnd) = 0; |
| 53 » virtual FX_BOOL»» » » SetClipboardText(FX_HWND hWnd, C
FX_WideString string) = 0; | 53 » virtual bool» » » » SetClipboardText(FX_HWND hWnd, C
FX_WideString string) = 0; |
| 54 | 54 |
| 55 virtual void ClientToScreen(FX_HWND hWnd, int
32_t& x, int32_t& y) = 0; | 55 virtual void ClientToScreen(FX_HWND hWnd, int
32_t& x, int32_t& y) = 0; |
| 56 virtual void ScreenToClient(FX_HWND hWnd, int
32_t& x, int32_t& y) = 0; | 56 virtual void ScreenToClient(FX_HWND hWnd, int
32_t& x, int32_t& y) = 0; |
| 57 | 57 |
| 58 /*cursor style | 58 /*cursor style |
| 59 FXCT_ARROW | 59 FXCT_ARROW |
| 60 FXCT_NESW | 60 FXCT_NESW |
| 61 FXCT_NWSE | 61 FXCT_NWSE |
| 62 FXCT_VBEAM | 62 FXCT_VBEAM |
| 63 FXCT_HBEAM | 63 FXCT_HBEAM |
| 64 FXCT_HAND | 64 FXCT_HAND |
| 65 */ | 65 */ |
| 66 virtual void SetCursor(int32_t nCursorType) =
0; | 66 virtual void SetCursor(int32_t nCursorType) =
0; |
| 67 | 67 |
| 68 virtual FX_HMENU CreatePopupMenu() = 0; | 68 virtual FX_HMENU CreatePopupMenu() = 0; |
| 69 » virtual FX_BOOL»» » » AppendMenuItem(FX_HMENU hMenu, i
nt32_t nIDNewItem, CFX_WideString string) = 0; | 69 » virtual bool» » » » AppendMenuItem(FX_HMENU hMenu, i
nt32_t nIDNewItem, CFX_WideString string) = 0; |
| 70 » virtual FX_BOOL»» » » EnableMenuItem(FX_HMENU hMenu, i
nt32_t nIDItem, FX_BOOL bEnabled) = 0; | 70 » virtual bool» » » » EnableMenuItem(FX_HMENU hMenu, i
nt32_t nIDItem, bool bEnabled) = 0; |
| 71 virtual int32_t TrackPopupMenu(FX_HMENU hMenu, int32_t x
, int32_t y, FX_HWND hParent) = 0; | 71 virtual int32_t TrackPopupMenu(FX_HMENU hMenu, int32_t x
, int32_t y, FX_HWND hParent) = 0; |
| 72 virtual void DestroyMenu(FX_HMENU hMenu) = 0; | 72 virtual void DestroyMenu(FX_HMENU hMenu) = 0; |
| 73 | 73 |
| 74 virtual CFX_ByteString GetNativeTrueTypeFont(int32_t nCharset)
= 0; | 74 virtual CFX_ByteString GetNativeTrueTypeFont(int32_t nCharset)
= 0; |
| 75 » virtual FX_BOOL»» » » FindNativeTrueTypeFont(int32_t n
Charset, CFX_ByteString sFontFaceName) = 0; | 75 » virtual bool» » » » FindNativeTrueTypeFont(int32_t n
Charset, CFX_ByteString sFontFaceName) = 0; |
| 76 virtual CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_
Document* pDoc, CFX_ByteString sFontFaceName, uint8_t nCharset) = 0; | 76 virtual CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_
Document* pDoc, CFX_ByteString sFontFaceName, uint8_t nCharset) = 0; |
| 77 | 77 |
| 78 virtual int32_t SetTimer(int32_t uElapse, TimerCallback
lpTimerFunc) = 0; | 78 virtual int32_t SetTimer(int32_t uElapse, TimerCallback
lpTimerFunc) = 0; |
| 79 virtual void KillTimer(int32_t nID) = 0; | 79 virtual void KillTimer(int32_t nID) = 0; |
| 80 | 80 |
| 81 | 81 |
| 82 » virtual FX_BOOL»» » » IsSHIFTKeyDown(FX_DWORD nFlag) =
0; | 82 » virtual bool» » » » IsSHIFTKeyDown(FX_DWORD nFlag) =
0; |
| 83 » virtual FX_BOOL»» » » IsCTRLKeyDown(FX_DWORD nFlag) =
0; | 83 » virtual bool» » » » IsCTRLKeyDown(FX_DWORD nFlag) =
0; |
| 84 » virtual FX_BOOL»» » » IsALTKeyDown(FX_DWORD nFlag) = 0
; | 84 » virtual bool» » » » IsALTKeyDown(FX_DWORD nFlag) = 0
; |
| 85 » virtual FX_BOOL»» » » IsINSERTKeyDown(FX_DWORD nFlag)
= 0; | 85 » virtual bool» » » » IsINSERTKeyDown(FX_DWORD nFlag)
= 0; |
| 86 | 86 |
| 87 virtual FX_SYSTEMTIME GetLocalTime() = 0; | 87 virtual FX_SYSTEMTIME GetLocalTime() = 0; |
| 88 | 88 |
| 89 virtual int32_t GetCharSet() = 0; | 89 virtual int32_t GetCharSet() = 0; |
| 90 virtual void SetCharSet(int32_t nCharSet) = 0
; | 90 virtual void SetCharSet(int32_t nCharSet) = 0
; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ | 93 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ |
| OLD | NEW |