| 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_PDFWINDOW_PWL_WND_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_WND_H_ |
| 8 #define FPDFSDK_PDFWINDOW_PWL_WND_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_WND_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "core/fxcrt/include/fx_basic.h" | 12 #include "core/fxcrt/include/fx_basic.h" |
| 13 #include "core/include/fpdfdoc/fpdf_doc.h" | 13 #include "core/include/fpdfdoc/fpdf_doc.h" |
| 14 #include "fpdfsdk/include/fx_systemhandler.h" | 14 #include "fpdfsdk/include/fx_systemhandler.h" |
| 15 | 15 |
| 16 class CPWL_MsgControl; | 16 class CPWL_MsgControl; |
| 17 class CPWL_ScrollBar; | 17 class CPWL_ScrollBar; |
| 18 class CPWL_Timer; | 18 class CPWL_Timer; |
| 19 class CPWL_TimerHandler; | 19 class CPWL_TimerHandler; |
| 20 class CPWL_Wnd; | 20 class CPWL_Wnd; |
| 21 class IFX_Edit_FontMap; | 21 class IPVT_FontMap; |
| 22 class IFX_SystemHandler; | 22 class IFX_SystemHandler; |
| 23 class IPWL_Provider; | 23 class IPWL_Provider; |
| 24 class IPWL_SpellCheck; | 24 class IPWL_SpellCheck; |
| 25 | 25 |
| 26 // window styles | 26 // window styles |
| 27 #define PWS_CHILD 0x80000000L | 27 #define PWS_CHILD 0x80000000L |
| 28 #define PWS_BORDER 0x40000000L | 28 #define PWS_BORDER 0x40000000L |
| 29 #define PWS_BACKGROUND 0x20000000L | 29 #define PWS_BACKGROUND 0x20000000L |
| 30 #define PWS_HSCROLL 0x10000000L | 30 #define PWS_HSCROLL 0x10000000L |
| 31 #define PWS_VSCROLL 0x08000000L | 31 #define PWS_VSCROLL 0x08000000L |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 fFontSize(PWL_DEFAULT_FONTSIZE), | 223 fFontSize(PWL_DEFAULT_FONTSIZE), |
| 224 sDash(3, 0, 0), | 224 sDash(3, 0, 0), |
| 225 pAttachedData(NULL), | 225 pAttachedData(NULL), |
| 226 pParentWnd(NULL), | 226 pParentWnd(NULL), |
| 227 pMsgControl(NULL), | 227 pMsgControl(NULL), |
| 228 eCursorType(FXCT_ARROW), | 228 eCursorType(FXCT_ARROW), |
| 229 mtChild(1, 0, 0, 1, 0, 0) {} | 229 mtChild(1, 0, 0, 1, 0, 0) {} |
| 230 | 230 |
| 231 CFX_FloatRect rcRectWnd; // required | 231 CFX_FloatRect rcRectWnd; // required |
| 232 IFX_SystemHandler* pSystemHandler; // required | 232 IFX_SystemHandler* pSystemHandler; // required |
| 233 IFX_Edit_FontMap* pFontMap; // required for text window | 233 IPVT_FontMap* pFontMap; // required for text window |
| 234 IPWL_Provider* pProvider; // required for self coordinate | 234 IPWL_Provider* pProvider; // required for self coordinate |
| 235 IPWL_FocusHandler* pFocusHandler; // optional | 235 IPWL_FocusHandler* pFocusHandler; // optional |
| 236 uint32_t dwFlags; // optional | 236 uint32_t dwFlags; // optional |
| 237 CPWL_Color sBackgroundColor; // optional | 237 CPWL_Color sBackgroundColor; // optional |
| 238 FX_HWND hAttachedWnd; // required for no-reader framework | 238 FX_HWND hAttachedWnd; // required for no-reader framework |
| 239 IPWL_SpellCheck* pSpellCheck; // required for spellchecking | 239 IPWL_SpellCheck* pSpellCheck; // required for spellchecking |
| 240 int32_t nBorderStyle; // optional | 240 int32_t nBorderStyle; // optional |
| 241 int32_t dwBorderWidth; // optional | 241 int32_t dwBorderWidth; // optional |
| 242 CPWL_Color sBorderColor; // optional | 242 CPWL_Color sBorderColor; // optional |
| 243 CPWL_Color sTextColor; // optional | 243 CPWL_Color sTextColor; // optional |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 359 |
| 360 FX_BOOL WndHitTest(const CFX_FloatPoint& point) const; | 360 FX_BOOL WndHitTest(const CFX_FloatPoint& point) const; |
| 361 FX_BOOL ClientHitTest(const CFX_FloatPoint& point) const; | 361 FX_BOOL ClientHitTest(const CFX_FloatPoint& point) const; |
| 362 FX_BOOL IsCaptureMouse() const; | 362 FX_BOOL IsCaptureMouse() const; |
| 363 | 363 |
| 364 const CPWL_Wnd* GetFocused() const; | 364 const CPWL_Wnd* GetFocused() const; |
| 365 FX_BOOL IsFocused() const; | 365 FX_BOOL IsFocused() const; |
| 366 FX_BOOL IsReadOnly() const; | 366 FX_BOOL IsReadOnly() const; |
| 367 CPWL_ScrollBar* GetVScrollBar() const; | 367 CPWL_ScrollBar* GetVScrollBar() const; |
| 368 | 368 |
| 369 IFX_Edit_FontMap* GetFontMap() const; | 369 IPVT_FontMap* GetFontMap() const; |
| 370 IPWL_Provider* GetProvider() const; | 370 IPWL_Provider* GetProvider() const; |
| 371 IPWL_FocusHandler* GetFocusHandler() const; | 371 IPWL_FocusHandler* GetFocusHandler() const; |
| 372 | 372 |
| 373 int32_t GetTransparency(); | 373 int32_t GetTransparency(); |
| 374 void SetTransparency(int32_t nTransparency); | 374 void SetTransparency(int32_t nTransparency); |
| 375 | 375 |
| 376 CFX_Matrix GetChildToRoot() const; | 376 CFX_Matrix GetChildToRoot() const; |
| 377 CFX_Matrix GetChildMatrix() const; | 377 CFX_Matrix GetChildMatrix() const; |
| 378 void SetChildMatrix(const CFX_Matrix& mt); | 378 void SetChildMatrix(const CFX_Matrix& mt); |
| 379 CFX_Matrix GetWindowMatrix() const; | 379 CFX_Matrix GetWindowMatrix() const; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 CFX_FloatRect m_rcWindow; | 463 CFX_FloatRect m_rcWindow; |
| 464 CFX_FloatRect m_rcClip; | 464 CFX_FloatRect m_rcClip; |
| 465 | 465 |
| 466 FX_BOOL m_bCreated; | 466 FX_BOOL m_bCreated; |
| 467 FX_BOOL m_bVisible; | 467 FX_BOOL m_bVisible; |
| 468 FX_BOOL m_bNotifying; | 468 FX_BOOL m_bNotifying; |
| 469 FX_BOOL m_bEnabled; | 469 FX_BOOL m_bEnabled; |
| 470 }; | 470 }; |
| 471 | 471 |
| 472 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_ | 472 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_ |
| OLD | NEW |