| 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" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { |
| 50 public: | 50 public: |
| 51 virtual ~IFX_SystemHandler() {} | 51 virtual ~IFX_SystemHandler() {} |
| 52 virtual void InvalidateRect(FX_HWND hWnd, FX_RECT rect) = 0; | 52 virtual void InvalidateRect(FX_HWND hWnd, FX_RECT rect) = 0; |
| 53 virtual void OutputSelectedRect(void* pFormFiller, CFX_FloatRect& rect) = 0; | 53 virtual void OutputSelectedRect(void* pFormFiller, CPDF_Rect& rect) = 0; |
| 54 | 54 |
| 55 virtual FX_BOOL IsSelectionImplemented() = 0; | 55 virtual FX_BOOL IsSelectionImplemented() = 0; |
| 56 | 56 |
| 57 virtual CFX_WideString GetClipboardText(FX_HWND hWnd) = 0; | 57 virtual CFX_WideString GetClipboardText(FX_HWND hWnd) = 0; |
| 58 virtual FX_BOOL SetClipboardText(FX_HWND hWnd, CFX_WideString string) = 0; | 58 virtual FX_BOOL SetClipboardText(FX_HWND hWnd, CFX_WideString string) = 0; |
| 59 | 59 |
| 60 virtual void ClientToScreen(FX_HWND hWnd, int32_t& x, int32_t& y) = 0; | 60 virtual void ClientToScreen(FX_HWND hWnd, int32_t& x, int32_t& y) = 0; |
| 61 virtual void ScreenToClient(FX_HWND hWnd, int32_t& x, int32_t& y) = 0; | 61 virtual void ScreenToClient(FX_HWND hWnd, int32_t& x, int32_t& y) = 0; |
| 62 | 62 |
| 63 /*cursor style | 63 /*cursor style |
| (...skipping 34 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 |