| 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 <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "core/fpdfdoc/include/cpdf_formcontrol.h" | 13 #include "core/fpdfdoc/include/cpdf_formcontrol.h" |
| 14 #include "core/fxcrt/include/fx_basic.h" | 14 #include "core/fxcrt/include/fx_basic.h" |
| 15 #include "fpdfsdk/cfx_systemhandler.h" | 15 #include "fpdfsdk/cfx_systemhandler.h" |
| 16 | 16 |
| 17 class CPDFSDK_Widget; |
| 17 class CPWL_MsgControl; | 18 class CPWL_MsgControl; |
| 18 class CPWL_ScrollBar; | 19 class CPWL_ScrollBar; |
| 19 class CPWL_Timer; | 20 class CPWL_Timer; |
| 20 class CPWL_TimerHandler; | 21 class CPWL_TimerHandler; |
| 21 class CPWL_Wnd; | 22 class CPWL_Wnd; |
| 22 class CFX_SystemHandler; | 23 class CFX_SystemHandler; |
| 23 class IPVT_FontMap; | 24 class IPVT_FontMap; |
| 24 class IPWL_Provider; | 25 class IPWL_Provider; |
| 25 | 26 |
| 26 // window styles | 27 // window styles |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 PWL_CREATEPARAM(); | 191 PWL_CREATEPARAM(); |
| 191 PWL_CREATEPARAM(const PWL_CREATEPARAM& other); | 192 PWL_CREATEPARAM(const PWL_CREATEPARAM& other); |
| 192 | 193 |
| 193 CFX_FloatRect rcRectWnd; // required | 194 CFX_FloatRect rcRectWnd; // required |
| 194 CFX_SystemHandler* pSystemHandler; // required | 195 CFX_SystemHandler* pSystemHandler; // required |
| 195 IPVT_FontMap* pFontMap; // required for text window | 196 IPVT_FontMap* pFontMap; // required for text window |
| 196 IPWL_Provider* pProvider; // required for self coordinate | 197 IPWL_Provider* pProvider; // required for self coordinate |
| 197 IPWL_FocusHandler* pFocusHandler; // optional | 198 IPWL_FocusHandler* pFocusHandler; // optional |
| 198 uint32_t dwFlags; // optional | 199 uint32_t dwFlags; // optional |
| 199 CPWL_Color sBackgroundColor; // optional | 200 CPWL_Color sBackgroundColor; // optional |
| 200 FX_HWND hAttachedWnd; // required for no-reader framework | 201 CPDFSDK_Widget* pAttachedWidget; // required for no-reader framework |
| 201 BorderStyle nBorderStyle; // optional | 202 BorderStyle nBorderStyle; // optional |
| 202 int32_t dwBorderWidth; // optional | 203 int32_t dwBorderWidth; // optional |
| 203 CPWL_Color sBorderColor; // optional | 204 CPWL_Color sBorderColor; // optional |
| 204 CPWL_Color sTextColor; // optional | 205 CPWL_Color sTextColor; // optional |
| 205 CPWL_Color sTextStrokeColor; // optional | 206 CPWL_Color sTextStrokeColor; // optional |
| 206 int32_t nTransparency; // optional | 207 int32_t nTransparency; // optional |
| 207 FX_FLOAT fFontSize; // optional | 208 FX_FLOAT fFontSize; // optional |
| 208 CPWL_Dash sDash; // optional | 209 CPWL_Dash sDash; // optional |
| 209 void* pAttachedData; // optional | 210 void* pAttachedData; // optional |
| 210 CPWL_Wnd* pParentWnd; // ignore | 211 CPWL_Wnd* pParentWnd; // ignore |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 383 |
| 383 FX_BOOL IsValid() const; | 384 FX_BOOL IsValid() const; |
| 384 const PWL_CREATEPARAM& GetCreationParam() const; | 385 const PWL_CREATEPARAM& GetCreationParam() const; |
| 385 FX_BOOL IsNotifying() const { return m_bNotifying; } | 386 FX_BOOL IsNotifying() const { return m_bNotifying; } |
| 386 | 387 |
| 387 void InvalidateRectMove(const CFX_FloatRect& rcOld, | 388 void InvalidateRectMove(const CFX_FloatRect& rcOld, |
| 388 const CFX_FloatRect& rcNew); | 389 const CFX_FloatRect& rcNew); |
| 389 | 390 |
| 390 void PWLtoWnd(const CFX_FloatPoint& point, int32_t& x, int32_t& y) const; | 391 void PWLtoWnd(const CFX_FloatPoint& point, int32_t& x, int32_t& y) const; |
| 391 FX_RECT PWLtoWnd(const CFX_FloatRect& rect) const; | 392 FX_RECT PWLtoWnd(const CFX_FloatRect& rect) const; |
| 392 FX_HWND GetAttachedHWnd() const; | |
| 393 | 393 |
| 394 FX_BOOL IsWndCaptureMouse(const CPWL_Wnd* pWnd) const; | 394 FX_BOOL IsWndCaptureMouse(const CPWL_Wnd* pWnd) const; |
| 395 FX_BOOL IsWndCaptureKeyboard(const CPWL_Wnd* pWnd) const; | 395 FX_BOOL IsWndCaptureKeyboard(const CPWL_Wnd* pWnd) const; |
| 396 const CPWL_Wnd* GetRootWnd() const; | 396 const CPWL_Wnd* GetRootWnd() const; |
| 397 | 397 |
| 398 FX_BOOL IsCTRLpressed(uint32_t nFlag) const; | 398 FX_BOOL IsCTRLpressed(uint32_t nFlag) const; |
| 399 FX_BOOL IsSHIFTpressed(uint32_t nFlag) const; | 399 FX_BOOL IsSHIFTpressed(uint32_t nFlag) const; |
| 400 FX_BOOL IsALTpressed(uint32_t nFlag) const; | 400 FX_BOOL IsALTpressed(uint32_t nFlag) const; |
| 401 | 401 |
| 402 private: | 402 private: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 423 CFX_FloatRect m_rcWindow; | 423 CFX_FloatRect m_rcWindow; |
| 424 CFX_FloatRect m_rcClip; | 424 CFX_FloatRect m_rcClip; |
| 425 | 425 |
| 426 FX_BOOL m_bCreated; | 426 FX_BOOL m_bCreated; |
| 427 FX_BOOL m_bVisible; | 427 FX_BOOL m_bVisible; |
| 428 FX_BOOL m_bNotifying; | 428 FX_BOOL m_bNotifying; |
| 429 FX_BOOL m_bEnabled; | 429 FX_BOOL m_bEnabled; |
| 430 }; | 430 }; |
| 431 | 431 |
| 432 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_ | 432 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_ |
| OLD | NEW |