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_PDFWINDOW_PWL_WND_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
9 | 9 |
| 10 #include <vector> |
| 11 |
10 #include "core/include/fpdfdoc/fpdf_doc.h" | 12 #include "core/include/fpdfdoc/fpdf_doc.h" |
11 #include "core/include/fxcrt/fx_basic.h" | 13 #include "core/include/fxcrt/fx_basic.h" |
12 #include "fpdfsdk/include/fx_systemhandler.h" | 14 #include "fpdfsdk/include/fx_systemhandler.h" |
13 | 15 |
14 class CPWL_MsgControl; | 16 class CPWL_MsgControl; |
15 class CPWL_ScrollBar; | 17 class CPWL_ScrollBar; |
16 class CPWL_Timer; | 18 class CPWL_Timer; |
17 class CPWL_TimerHandler; | 19 class CPWL_TimerHandler; |
18 class CPWL_Wnd; | 20 class CPWL_Wnd; |
19 class IFX_Edit_FontMap; | 21 class IFX_Edit_FontMap; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 #define PWL_DEFAULT_LIGHTGRAYCOLOR CPWL_Color(COLORTYPE_GRAY, 0.75) | 166 #define PWL_DEFAULT_LIGHTGRAYCOLOR CPWL_Color(COLORTYPE_GRAY, 0.75) |
165 #define PWL_TRIANGLE_HALFLEN 2.0f | 167 #define PWL_TRIANGLE_HALFLEN 2.0f |
166 #define PWL_CBBUTTON_TRIANGLE_HALFLEN 3.0f | 168 #define PWL_CBBUTTON_TRIANGLE_HALFLEN 3.0f |
167 #define PWL_INVALIDATE_INFLATE 2 | 169 #define PWL_INVALIDATE_INFLATE 2 |
168 | 170 |
169 class IPWL_SpellCheck { | 171 class IPWL_SpellCheck { |
170 public: | 172 public: |
171 virtual ~IPWL_SpellCheck() {} | 173 virtual ~IPWL_SpellCheck() {} |
172 virtual FX_BOOL CheckWord(const FX_CHAR* sWord) = 0; | 174 virtual FX_BOOL CheckWord(const FX_CHAR* sWord) = 0; |
173 virtual void SuggestWords(const FX_CHAR* sWord, | 175 virtual void SuggestWords(const FX_CHAR* sWord, |
174 CFX_ByteStringArray& sSuggest) = 0; | 176 std::vector<CFX_ByteString>& sSuggest) = 0; |
175 }; | 177 }; |
176 | 178 |
177 class IPWL_Provider { | 179 class IPWL_Provider { |
178 public: | 180 public: |
179 virtual ~IPWL_Provider() {} | 181 virtual ~IPWL_Provider() {} |
180 | 182 |
181 // get a matrix which map user space to CWnd client space | 183 // get a matrix which map user space to CWnd client space |
182 virtual CFX_Matrix GetWindowMatrix(void* pAttachedData) = 0; | 184 virtual CFX_Matrix GetWindowMatrix(void* pAttachedData) = 0; |
183 | 185 |
184 /* | 186 /* |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 CPDF_Rect m_rcWindow; | 462 CPDF_Rect m_rcWindow; |
461 CPDF_Rect m_rcClip; | 463 CPDF_Rect m_rcClip; |
462 | 464 |
463 FX_BOOL m_bCreated; | 465 FX_BOOL m_bCreated; |
464 FX_BOOL m_bVisible; | 466 FX_BOOL m_bVisible; |
465 FX_BOOL m_bNotifying; | 467 FX_BOOL m_bNotifying; |
466 FX_BOOL m_bEnabled; | 468 FX_BOOL m_bEnabled; |
467 }; | 469 }; |
468 | 470 |
469 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 471 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
OLD | NEW |