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 "../../../core/include/fxcrt/fx_basic.h" | 10 #include "../../../core/include/fxcrt/fx_basic.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 sTextStrokeColor(), | 219 sTextStrokeColor(), |
220 nTransparency(255), | 220 nTransparency(255), |
221 fFontSize(PWL_DEFAULT_FONTSIZE), | 221 fFontSize(PWL_DEFAULT_FONTSIZE), |
222 sDash(3, 0, 0), | 222 sDash(3, 0, 0), |
223 pAttachedData(NULL), | 223 pAttachedData(NULL), |
224 pParentWnd(NULL), | 224 pParentWnd(NULL), |
225 pMsgControl(NULL), | 225 pMsgControl(NULL), |
226 eCursorType(FXCT_ARROW), | 226 eCursorType(FXCT_ARROW), |
227 mtChild(1, 0, 0, 1, 0, 0) {} | 227 mtChild(1, 0, 0, 1, 0, 0) {} |
228 | 228 |
229 CPDF_Rect rcRectWnd; // required | 229 CPDF_Rect rcRectWnd; // required |
230 IFX_SystemHandler* pSystemHandler; // required | 230 IFX_SystemHandler* pSystemHandler; // required |
231 IFX_Edit_FontMap* pFontMap; // required for text window | 231 IFX_Edit_FontMap* pFontMap; // required for text window |
232 IPWL_Provider* pProvider; // required for self coordinate | 232 IPWL_Provider* pProvider; // required for self coordinate |
233 IPWL_FocusHandler* pFocusHandler; // optional | 233 IPWL_FocusHandler* pFocusHandler; // optional |
234 FX_DWORD dwFlags; // optional | 234 FX_DWORD dwFlags; // optional |
235 CPWL_Color sBackgroundColor; // optional | 235 CPWL_Color sBackgroundColor; // optional |
236 FX_HWND hAttachedWnd; // required for no-reader framework | 236 FX_HWND hAttachedWnd; // required for no-reader framework |
237 IPWL_SpellCheck* pSpellCheck; // required for spellchecking | 237 IPWL_SpellCheck* pSpellCheck; // required for spellchecking |
238 int32_t nBorderStyle; // optional | 238 int32_t nBorderStyle; // optional |
239 int32_t dwBorderWidth; // optional | 239 int32_t dwBorderWidth; // optional |
240 CPWL_Color sBorderColor; // optional | 240 CPWL_Color sBorderColor; // optional |
241 CPWL_Color sTextColor; // optional | 241 CPWL_Color sTextColor; // optional |
242 CPWL_Color sTextStrokeColor; // optional | 242 CPWL_Color sTextStrokeColor; // optional |
243 int32_t nTransparency; // optional | 243 int32_t nTransparency; // optional |
244 FX_FLOAT fFontSize; // optional | 244 FX_FLOAT fFontSize; // optional |
245 CPWL_Dash sDash; // optional | 245 CPWL_Dash sDash; // optional |
246 void* pAttachedData; // optional | 246 void* pAttachedData; // optional |
247 CPWL_Wnd* pParentWnd; // ignore | 247 CPWL_Wnd* pParentWnd; // ignore |
248 CPWL_MsgControl* pMsgControl; // ignore | 248 CPWL_MsgControl* pMsgControl; // ignore |
249 int32_t eCursorType; // ignore | 249 int32_t eCursorType; // ignore |
250 CPDF_Matrix mtChild; // ignore | 250 CPDF_Matrix mtChild; // ignore |
251 }; | 251 }; |
252 | 252 |
253 class CPWL_Timer { | 253 class CPWL_Timer { |
254 public: | 254 public: |
255 CPWL_Timer(CPWL_TimerHandler* pAttached, IFX_SystemHandler* pSystemHandler); | 255 CPWL_Timer(CPWL_TimerHandler* pAttached, IFX_SystemHandler* pSystemHandler); |
256 virtual ~CPWL_Timer(); | 256 virtual ~CPWL_Timer(); |
257 | 257 |
258 int32_t SetPWLTimer(int32_t nElapse); | 258 int32_t SetPWLTimer(int32_t nElapse); |
259 void KillPWLTimer(); | 259 void KillPWLTimer(); |
260 static void TimerProc(int32_t idEvent); | 260 static void TimerProc(int32_t idEvent); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 CPDF_Rect m_rcWindow; | 466 CPDF_Rect m_rcWindow; |
467 CPDF_Rect m_rcClip; | 467 CPDF_Rect m_rcClip; |
468 | 468 |
469 FX_BOOL m_bCreated; | 469 FX_BOOL m_bCreated; |
470 FX_BOOL m_bVisible; | 470 FX_BOOL m_bVisible; |
471 FX_BOOL m_bNotifying; | 471 FX_BOOL m_bNotifying; |
472 FX_BOOL m_bEnabled; | 472 FX_BOOL m_bEnabled; |
473 }; | 473 }; |
474 | 474 |
475 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 475 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
OLD | NEW |